'프로그램 사용'에 해당되는 글 2183건

  1. 2016.06.08 make 기본셸
  2. 2016.06.04 makefile := = 차이점
  3. 2016.06.03 virtual box 하드 디스크 용량 늘리기
  4. 2016.06.03 virtual box 게스트 확장 삭제하기(리눅스) 2
  5. 2016.03.28 gcc dependency .d 파일?
  6. 2016.02.25 gcc -p -pg
  7. 2016.02.24 xrdp with pulseaudio
  8. 2016.02.23 xrdp의 장점 (vino/vnc 대비)
  9. 2016.02.17 svn merge... 두근두근 6
  10. 2016.02.16 xrdp.ini

SHELL 변수로 설정되지 않으면 /bin/sh가 되므로

bash에서 지원하는 popd pushd 등이 봉인..

환경 변수 등을 끌어 가지 않으므로.. 결론은 Makefile 별로 설정을 해주어야 한다.



5.3.2 Choosing the Shell

The program used as the shell is taken from the variable SHELL. If this variable is not set in your makefile, the program /bin/sh is used as the shell. The argument(s) passed to the shell are taken from the variable .SHELLFLAGS. The default value of .SHELLFLAGS is -c normally, or -ec in POSIX-conforming mode.

Unlike most variables, the variable SHELL is never set from the environment. This is because the SHELL environment variable is used to specify your personal choice of shell program for interactive use. It would be very bad for personal choices like this to affect the functioning of makefiles. See Variables from the Environment.

Furthermore, when you do set SHELL in your makefile that value is not exported in the environment to recipe lines that make invokes. Instead, the value inherited from the user’s environment, if any, is exported. You can override this behavior by explicitly exporting SHELL (see Communicating Variables to a Sub-make), forcing it to be passed in the environment to recipe lines.

[링크 : https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html]

    [링크 : https://www.gnu.org/software/make/manual/html_node/Variables_002fRecursion.html]

'프로그램 사용 > make, configure' 카테고리의 다른 글

make order  (0) 2016.06.16
make /bin/sh: 1: pushd: not found 에러  (0) 2016.06.08
makefile := = 차이점  (0) 2016.06.04
make 의존성 파일?  (0) 2015.12.18
make 암시적 룰  (0) 2015.12.18
Posted by 구차니


 In short, variables defined with := are expanded once, but variables defined with = are expanded whenever they are used.

[링크 : http://stackoverflow.com/.../whats-the-difference-between-and-in-makefile]


Simply expanded variables are defined by lines using ‘:=’ or ‘::=’ (see Setting Variables). Both forms are equivalent in GNU make; however only the ‘::=’ form is described by the POSIX standard (support for ‘::=’ was added to the POSIX standard in 2012, so older versions of make won’t accept this form either).

[링크 : http://www.gnu.org/software/make/manual/html_node/Flavors.html#Flavors]


https://www.gnu.org/software/make/manual/html_node/Setting.html#Setting


'프로그램 사용 > make, configure' 카테고리의 다른 글

make /bin/sh: 1: pushd: not found 에러  (0) 2016.06.08
make 기본셸  (0) 2016.06.08
make 의존성 파일?  (0) 2015.12.18
make 암시적 룰  (0) 2015.12.18
make jobserver unavailable  (0) 2015.12.16
Posted by 구차니

80기가로 늘리기


C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyhd image.vdi --resize 81920


[링크 : http://www.howtogeek.com/.../how-to-enlarge-a-virtual-machines-disk-in-virtualbox-or-vmware/]


+ 2020.09.11

고정일경우 에러가 나서 되지 않으니

clonehd를 이용해서 동적으로 복사한후 늘리면 된다.


[링크 : https://m.blog.naver.com/r2adne/220239005520]

[링크 : https://stackoverflow.com/questions/50772789/]

Posted by 구차니

기분인진 모르겠으나, 게스트 확장 깔고 나서

ls 만 실행해도 상당히 느리게 반응하는 느낌이라.

그리고 창크기 변화하는게 그리 유용하진 않은지라 삭제!


/opt/VBoxGuestAdditions-5.0.20$ ll

합계 76

drwxr-xr-x 9 root root  4096  6월  2 17:26 ./

drwxr-xr-x 3 root root  4096  6월  2 17:26 ../

-rw-r--r-- 1 root root 20516  4월 28 22:22 LICENSE

drwxr-xr-x 2 root root  4096  4월 28 22:22 bin/

drwxr-xr-x 2 root root  4096  4월 28 22:22 init/

drwxr-xr-x 2 root root  4096  6월  2 17:26 installer/

drwxr-xr-x 3 root root  4096  4월 28 22:22 lib/

-rwxr-xr-x 1 root root 11319  6월  2 17:26 routines.sh*

drwxr-xr-x 2 root root  4096  4월 28 22:22 sbin/

drwxr-xr-x 3 root root  4096  4월 28 22:22 share/

drwxr-xr-x 3 root root  4096  4월 28 22:22 src/

-rwxr-xr-x 1 root root  2948  6월  2 17:26 uninstall.sh*


/opt/VBoxGuestAdditions-5.0.20$ sudo ./uninstall.sh
Removing installed version 5.0.20 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules ...done.


Besides the unistall

/opt/[VboxAddonsFolder]/uninstall.sh

I also had to remove /etc/X11/xorg.conf


[링크 : https://forums.virtualbox.org/viewtopic.php?t=7839


Posted by 구차니
프로그램 사용/gcc2016. 3. 28. 20:21

쓰는 법은 좀 나중에 읽어 봐야지...

make + gcc에서

컴파일시 의존성을 자동으로 끌어가기 위해

(make 쪽에서 파일 의존성 체크 하니까)

gcc를 이용하여 해당 소스에서 요구하는 헤더들의 목록을 .d 파일로 빼내는 기능


-MM 등의 옵션이 있나 보다..


[링크 : https://latedev.wordpress.com/2014/11/08/generic-makefiles-with-gcc-and-gnu-make/]

[링크 : http://scottmcpeak.com/autodepend/autodepend.html]

[링크 : https://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Preprocessor-Options.html]

'프로그램 사용 > gcc' 카테고리의 다른 글

gcc make CFLAGS=-D 관련  (0) 2016.11.17
gcc -fPIC  (0) 2016.06.22
gcc -M -MM  (0) 2015.12.17
gcc 초기화 관련  (0) 2015.10.21
precompiled header on GCC (라즈베리로 테스트)  (2) 2015.07.30
Posted by 구차니

-p는 prof용

-pggprof용


$ man gcc

       -p  Generate extra code to write profile information suitable for the analysis program prof.  You must

           use this option when compiling the source files you want data about, and you must also use it when

           linking.


       -pg Generate extra code to write profile information suitable for the analysis program gprof.  You

           must use this option when compiling the source files you want data about, and you must also use it

           when linking.



Unlike prof, gprof is capable of limited call graph collecting and printing.

[링크 : https://en.wikipedia.org/wiki/Gprof]


gprof was invented specifically because prof only gives you "self time"

[링크 : http://stackoverflow.com/questions/17612370/whats-the-difference-between-prof-and-gprof]


위키 내용은 prof가 나은거 같지만..

prof는 self time만 잴수 있다는 단점? 머.. 일장일단 정도일려나?


---


$ prof

The program 'prof' is currently not installed. You can install it by typing:

sudo apt-get install profphd


$ man prof
 prof - secondary structure and solvent accessibility predictor

얘는 다른앤가?


'프로그램 사용 > gcov, gprof' 카테고리의 다른 글

gcov와 gcovr  (0) 2023.07.20
gcovr - gocv 를 html로  (0) 2023.07.10
gprof gui  (0) 2023.07.10
gprof flat view 이해하기  (0) 2010.01.24
gcov, gprof  (0) 2010.01.23
Posted by 구차니
프로그램 사용/xrdp2016. 2. 24. 17:30

음.. 시도 해봐야 하나?


직접 빌드해서 올리는걸 봐서는.. 웬지 우분투 15.10에 있는 xrdp는

pulseaudio가 미진할때라 제외되지 않았을까 싶은데



[링크 : https://241931348f64b1d1.wordpress.com/.../how-to-compile-xrdpx11rdp-on-ubuntu/]


일주일 전 글이 검색되었는데 흐음...

막 개발중인건가? 해당 내용은?

[링크 : https://github.com/neutrinolabs/xrdp/issues/321]



동적 링크된 녀석중에 libpulse가 없는 걸 봐서는...

$ sudo find / -iname "libpulse*"

/usr/lib/libpulsecore-6.0.so

/usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0

/usr/lib/x86_64-linux-gnu/libpulse-simple.so.0

/usr/lib/x86_64-linux-gnu/libpulse-simple.so.0.1.0

/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so

/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-6.0.so

/usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0.0.5

/usr/lib/x86_64-linux-gnu/libpulse.so.0

/usr/lib/x86_64-linux-gnu/libpulse.so.0.18.0


/usr/sbin$ ldd xrdp

        linux-vdso.so.1 =>  (0x00007ffea089b000)

        libcommon.so.0 => /usr/lib/xrdp/libcommon.so.0 (0x00007f182f55a000)

        libxrdp.so.0 => /usr/lib/xrdp/libxrdp.so.0 (0x00007f182f343000)

        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f182ef5f000)

        libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f182eb1d000)

        libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f182e8b4000)

        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f182e695000)

        /lib64/ld-linux-x86-64.so.2 (0x00005631793e4000)

        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f182e491000)


/usr/sbin$ ldd xrdp-sesman

        linux-vdso.so.1 =>  (0x00007ffc3e926000)

        libcommon.so.0 => /usr/lib/xrdp/libcommon.so.0 (0x00007f143c16b000)

        libscp.so.0 => /usr/lib/xrdp/libscp.so.0 (0x00007f143bf60000)

        libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f143bd36000)

        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f143bb18000)

        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f143b74e000)

        libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f143b30b000)

        libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f143b0a2000)

        libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007f143ae7d000)

        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f143ac78000)

        /lib64/ld-linux-x86-64.so.2 (0x0000560a20b43000)



'프로그램 사용 > xrdp' 카테고리의 다른 글

xrdp의 장점 (vino/vnc 대비)  (0) 2016.02.23
xrdp.ini  (0) 2016.02.16
xrdp 구조?  (0) 2016.02.16
xrdp 3389 / lxde  (0) 2016.02.15
xrdp.. 사용가능한 세션 종류  (0) 2016.02.14
Posted by 구차니
프로그램 사용/xrdp2016. 2. 23. 15:18
빠르다

- xrdp에 vino를 붙이면 vnc로 로컬에서 하는 수준?


견고하다(?)
- 딱히 vnc 처럼 깨지는건 못 본 듯


ctrl-c,v가 된다

- vnc는 되다 안되다.. xming 쓰면 절대 안됨


물론 업로드 속도가 된다는 가정하겠지만

xrdp 설정해두고 보니 만세! 임


vino를 통해서 xrdp를 쓰면 로컬에서 하는거니까

chrome 등에서도 openGL 가속받을 수 있고 여러모로 유리함



---

음.. mplayer나 gstramer를 통해서 오디오는 전송이 안되네.. 설정이 누락된게 있나...

아니면.. session으로 한게 아니라 그런가? vino 니까?


lxde 세션이던 gnome vino던 둘다 안되네...

xrdp를 위해 pulseaudio로 뻘짓을 해야하는 건가?

'프로그램 사용 > xrdp' 카테고리의 다른 글

xrdp with pulseaudio  (0) 2016.02.24
xrdp.ini  (0) 2016.02.16
xrdp 구조?  (0) 2016.02.16
xrdp 3389 / lxde  (0) 2016.02.15
xrdp.. 사용가능한 세션 종류  (0) 2016.02.14
Posted by 구차니

겁내면서 해봤는데 막상 해보니 별거 없...네?


일단 꼬부기로 시도.

귀찮(?)으니 위에 기본값으로 도전

현재는 머지 되어야 할 head에서 merge를 누름 (branch에서 수정한 내용을 head로 병합)


일단 from 이니까.. branch의 경로를 입력해주고 log를 보고 합칠 범위를 고르면 된다.

한번 밖에 수정안해서.. 그냥 마지막 녀석 하나만 병합


귀찮으니 기본값...


겁나니까 Test merge도 해보고


문제 없으니 Merge를 과감하게 클릭!


그러고 나서 확인해보니..

working copy가 바뀌었네?


merge를 commit 하기 전인데


commit 하니 그냥 하나 추가..

닫히는(?) 선으로 연결될줄 알았더니 시무룩..


음.. 잘못한건 아니겠지? ㅠㅠ

auto merge라는 개념으로는 머.. 서버에 바로 적용되거나 하는건 아닐려나..

'프로그램 사용 > Version Control' 카테고리의 다른 글

svn 콘솔 에디터(주석)  (0) 2016.06.21
svn relocate / ubuntu  (0) 2016.06.21
tortoiseSVN merge 페이지 번역  (0) 2015.12.02
svnadmin dump로 덤프/합치기  (0) 2015.11.26
svn merge  (0) 2015.08.19
Posted by 구차니
프로그램 사용/xrdp2016. 2. 16. 09:49

현재 사용중인 설정파일

희한하게.. xrdp1와 xrdp2를 순서 바꾸면 안된다.. 머지 -ㅁ-???

globals의 내용이라던가 이런거 넣어줘도 안되고

port=3350 해줘도 안되고.. 미스테리네


/etc/xrdp$ cat xrdp.ini

[globals]

bitmap_cache=yes

bitmap_compression=yes

port=3389

crypt_level=low

channel_code=1

max_bpp=24

#black=000000

#grey=d6d3ce

#dark_grey=808080

#blue=08246b

#dark_blue=08246b

#white=ffffff

#red=ff0000

#green=00ff00

#background=626c72


[xrdp1]

name=sesman-Xvnc

lib=libvnc.so

username=ask

password=ask

ip=127.0.0.1

port=-1


[xrdp2]

name=Vino-Session

lib=libvnc.so

username=-1

password=ask

ip=127.0.0.1

port=5900 


---

/etc/xrdp$ cat xrdp.ini

[globals]

bitmap_cache=yes

bitmap_compression=yes

port=3389

crypt_level=low

channel_code=1

max_bpp=24

#black=000000

#grey=d6d3ce

#dark_grey=808080

#blue=08246b

#dark_blue=08246b

#white=ffffff

#red=ff0000

#green=00ff00

#background=626c72


[xrdp1]

name=sesman-Xvnc

lib=libvnc.so

username=ask

password=ask

ip=127.0.0.1

port=-1


[xrdp2]

name=console

lib=libvnc.so

ip=127.0.0.1

port=5900

username=na

password=ask


[xrdp3]

name=vnc-any

lib=libvnc.so

ip=ask

port=ask5900

username=na

password=ask


[xrdp4]

name=sesman-any

lib=libvnc.so

ip=ask

port=-1

username=ask

password=ask


[xrdp5]

name=rdp-any

lib=librdp.so

ip=ask

port=ask3389


[xrdp6]

name=freerdp-any

lib=libxrdpfreerdp1.so

ip=ask

port=ask3389

username=ask

password=ask


[xrdp7]

name=sesman-X11rdp

lib=libxup.so

username=ask

password=ask

ip=127.0.0.1

port=-1

xserverbpp=24 


[xrdp8]

name=Vino-Session

lib=libvnc.so

username=ask

password=ask

ip=127.0.0.1

port=5900


단, vino-session은
dconf-editor에서 enryption을 꺼줘야 함


'프로그램 사용 > xrdp' 카테고리의 다른 글

xrdp with pulseaudio  (0) 2016.02.24
xrdp의 장점 (vino/vnc 대비)  (0) 2016.02.23
xrdp 구조?  (0) 2016.02.16
xrdp 3389 / lxde  (0) 2016.02.15
xrdp.. 사용가능한 세션 종류  (0) 2016.02.14
Posted by 구차니