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

  1. 2016.02.03 XDMCP over SSH ? / xnest
  2. 2016.02.03 ssh X11 forwarding 속도 향상.. 2?
  3. 2016.02.02 xming / xdmcp 성공
  4. 2015.12.18 make 의존성 파일?
  5. 2015.12.18 make 암시적 룰
  6. 2015.12.17 gcc -M -MM
  7. 2015.12.16 make jobserver unavailable
  8. 2015.12.14 make 아카이브
  9. 2015.12.14 make 매크로
  10. 2015.12.08 삼바 휴지통 vfs_object



$ sudo apt-get install xnest

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will be installed:

  xnest

0 upgraded, 1 newly installed, 0 to remove and 147 not upgraded.

Need to get 785 kB of archives.

After this operation, 1,930 kB of additional disk space will be used.

Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main xnest amd64 2:1.11.4-0ubuntu10.17 [785 kB]

Fetched 785 kB in 2s (356 kB/s)

Selecting previously unselected package xnest.

(Reading database ... 215036 files and directories currently installed.)

Unpacking xnest (from .../xnest_2%3a1.11.4-0ubuntu10.17_amd64.deb) ...

Processing triggers for man-db ...

Setting up xnest (2:1.11.4-0ubuntu10.17) ...


$ ssh -Y remote_hostname_or_ip_address Xnest :1 -query localhost

[링크 : http://x.cygwin.com/docs/ug/using-remote-session.html] 


암호화 지원하지 않아 안전하지 않다라...


XDMCP is inherently insecure as it does not encrypt your traffic. XDMCP is analogous to telnet, and therefore they share the same security issues. 

[링크 : https://wiki.ubuntu.com/xdmcp]


netsarang의 Xmanager는 XDMCP를 자체 지원하는데..

2단계 거쳐서 하라는거 보면 putty의 X11 포워딩 삘이..

[링크 : https://www.netsarang.com/tutorial/xmanager/3270/title]




아무튼 실험해보니..

putty + Xming으로

arcfour 설정해주니 썩 나쁘지 않은 속도로 반응



+

스트림 사이퍼.. 블록이 아니라 더 빠르게 응답하는 걸려나?

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


Update: Ben Harris has written an Internet-Draft (draft-harris-ssh-arcfour-fixes, now RFC 4345) describing a way of using Arcfour reasonably securely with SSH-2, and PuTTY now implements this. Note that this document defines the "arcfour256" and "arcfour128" ciphers; PuTTY still does not support the less secure "arcfour" cipher, and we have no plans to make it do so.


(Support was first added in 2005-04-22, but uonly under private names defined in an earlier draft: "arcfour256-draft-00@putty.projects.tartarus.org" and so on. Only from 2005-09-04 do we support the IETF names, which also appear in OpenSSH from 4.2.)

[링크 : http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/arcfour.html]



+

엥 다시 실행해보니..

XDMCP 보다 오히려 arcfour가 빠른 느낌이다 ㄷㄷ




+

[링크 : http://linux.die.net/man/1/xnest]

[링크 : http://www.x.org/archive/X11R7.5/doc/man/man1/Xnest.1.html]

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




+

xnest의 사용법의 예제...?

일종의 vm 처럼 보이는 기분 ㅋㅋㅋ


$ Xnest :1 -query localhost -geometry 1024x768 


[링크 : http://www.idevelopment.info/data/Unix/Linux/LINUX_ConfiguringXDMCPRedHatLinux.shtml]

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

VcXsrv - Xming 대체 프로그램  (0) 2017.10.07
cygwin/X XDMCP  (0) 2016.02.12
xming / xdmcp 성공  (0) 2016.02.02
cygwin bash 쉘 시작 위치 지정하기  (0) 2015.12.02
Xwin DISPLAY 고찰(?)  (0) 2015.08.13
Posted by 구차니
프로그램 사용/Putty2016. 2. 3. 09:36

속도까지 잰건 아니지만

아무튼.. putty - X11 forwarding - Xming

을 통해서 


Xnest :1 -query localhost

명령 수행시 화면 로딩 속도를 보면


DES, ARCFOUR > AES > 3DES > blowfish

정도의 느낌?


putty에서는 AES가 기본이긴 한데

보안을 희생하고 속도를 올리려면..

ARCFOUR 정도가 무난할지도?



일단 벤치상으로는 arcfour가 가장 빠르고 blowfish가 그걸 뒤따르는데

체감이랑은 좀 많이 다른 듯..



[링크 : http://xmodulo.com/how-to-speed-up-x11-forwarding-in-ssh.html]

2015/09/24 - [프로그램 사용/ssh / scp / sftp] - ssh X11 forwarding 속도 향상


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

putty - CR+LF 전송하기 불가?  (0) 2015.07.14
putty chrome socks5 / dns remote  (0) 2014.12.18
putty로 proxy 설정하기 (socks5 + firefox)  (0) 2014.12.17
linux용 putty  (2) 2011.09.21
putty를 이용한 vnc 터널링  (1) 2011.06.21
Posted by 구차니

Ubuntu 12.04 LTS 서버측 설정

$ sudo vi /etc/lightdm/lightdm.conf

[SeatDefaults]

autologin-guest=false

autologin-user=cynix

autologin-user-timeout=0

autologin-session=lightdm-autologin

greeter-session=unity-greeter

user-session=ubuntu


[XDMCPServer]

enabled=true


$ sudo service lightdm restart

[링크 : https://wiki.ubuntu.com/xdmcp]


xming 클라이언트 설정(윈도우)







VNC보단 확실히 빠른느낌이다.


나중에 로컬이 아닌 외부에서 시도해봐야지..

XDMCP protocol on port 177/UDP. But the actual X11 protocol connections will be made to the local port 6000+n /TCP, where n is the display-number.

[링크 : http://www.straightrunning.com/XmingNotes/IDH_XDMCP.htm]


Open up TCP port 6000-6005 (plus X-Win32’s base display number) in both directions

Open up UDP port 177 to accept incomming connections from any port.

[링크 : https://www.starnet.com/xwin32kb/what-ports-need-to-be-opened-for-xdmcp/]


2009/04/10 - [프로그램 사용/cygwin / Xming] - Xming XDMCP 관련 도움말

2009/05/19 - [프로그램 사용/cygwin / Xming] - Xming --help


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

cygwin/X XDMCP  (0) 2016.02.12
XDMCP over SSH ? / xnest  (0) 2016.02.03
cygwin bash 쉘 시작 위치 지정하기  (0) 2015.12.02
Xwin DISPLAY 고찰(?)  (0) 2015.08.13
Xming vs cygwin/x  (0) 2012.01.25
Posted by 구차니

gcc -M을 통해서 해당 소스가 끌어와야 하는 헤더들의 목록을 얻어낼수 있다.

이걸 이용하여 역으로

make 파일에서 사용해야 하는 헤더들의 목록을 생성해 낼 수 있고

이걸 make dep나 make depend를 통해서 수행하게 된다.


생각해보니.. ifdef로 된거.. option 파일이 아닌

-D 인자를 통해서 gcc -M -Dflag 해주면... 외부에서 소스변경없이 구현이 가능해져서 더 편하려나?


[링크 : http://developinghappiness.com/?p=174]

    [링크 : http://developinghappiness.com/?page_id=222]


[링크 : http://linux.die.net/man/1/gccmakedep]

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

make 기본셸  (0) 2016.06.08
makefile := = 차이점  (0) 2016.06.04
make 암시적 룰  (0) 2015.12.18
make jobserver unavailable  (0) 2015.12.16
make 아카이브  (0) 2015.12.14
Posted by 구차니

타겟을 만들지 않아도 컴파일 되는 이유... 라고 해야하나?

*.c는 $(CC)를

*.cc나 *.C는 $(CXX)를 이용해서 컴파일 하는데


$(CPPFLAGS) 와 $(CFLAGS)를 인자로 받으니..

여기에 헤더와 링커 경로를 넣어주면 자동으로 알아서 작동하는 마법!


Compiling C programs

n.o is made automatically from n.c with a recipe of the form ‘$(CC) $(CPPFLAGS) $(CFLAGS) -c’.


Compiling C++ programs

n.o is made automatically from n.cc, n.cpp, or n.C with a recipe of the form ‘$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c’. We encourage you to use the suffix ‘.cc’ for C++ source files instead of ‘.C’.


[링크 : http://www.gnu.org/software/make/manual/make.html#Catalogue-of-Rules] 

[링크 : http://korea.gnu.org/manual/4check/make-3.77/ko/make_10.html#SEC91]


패턴 규칙 예제(Pattern Rule Examples)


다음은 make에 의해서 실제로 미리 정의된 패턴 규칙들의 몇가지 예제들이다. 먼저 `.c' 파일들을 `.o' 로 컴파일하는 규칙은:


%.o : %.c

        $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@


[링크 : http://korea.gnu.org/manual/4check/make-3.77/ko/make_10.html#SEC96] 


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

makefile := = 차이점  (0) 2016.06.04
make 의존성 파일?  (0) 2015.12.18
make jobserver unavailable  (0) 2015.12.16
make 아카이브  (0) 2015.12.14
make 매크로  (0) 2015.12.14
Posted by 구차니
프로그램 사용/gcc2015. 12. 17. 17:13

-E는 프리프로세서를 거친 결과를 뽑아준다면..

-M은 확장된 헤더의 목록만 빼준다.


-E

Stop after the preprocessing stage; do not run the compiler proper. The output is in the form of preprocessed source code, which is sent to the standard output.


-M

Instead of outputting the result of preprocessing, output a rule suitable for make describing the dependencies of the main source file. The preprocessor outputs one make rule containing the object file name for that source file, a colon, and the names of all the included files, including those coming from -include or -imacros command line options.


Unless specified explicitly (with -MT or -MQ), the object file name consists of the name of the source file with any suffix replaced with object file suffix and with any leading directory parts removed. If there are many included files then the rule is split into several lines using \-newline. The rule has no commands.

This option does not suppress the preprocessor's debug output, such as -dM. To avoid mixing such debug output with the dependency rules you should explicitly specify the dependency output file with -MF, or use an environment variable like DEPENDENCIES_OUTPUT . Debug output will still be sent to the regular output stream as normal.


Passing -M to the driver implies -E, and suppresses warnings with an implicit -w.


-MM

Like -M but do not mention header files that are found in system header directories, nor header files that are included, directly or indirectly, from such a header.


This implies that the choice of angle brackets or double quotes in an #include directive does not in itself determine whether that header will appear in -MM dependency output. This is a slight change in semantics from GCC versions 3.0 and earlier.


[링크 : http://linux.die.net/man/1/gcc]

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

gcc -fPIC  (0) 2016.06.22
gcc dependency .d 파일?  (0) 2016.03.28
gcc 초기화 관련  (0) 2015.10.21
precompiled header on GCC (라즈베리로 테스트)  (2) 2015.07.30
gcc에서 precompiled header 사용하기  (0) 2015.07.29
Posted by 구차니

‘warning: jobserver unavailable: using -j1. Add `+' to parent make rule.’


In order for make processes to communicate, the parent will pass information to the child. Since this could result in problems if the child process isn’t actually a make, the parent will only do this if it thinks the child is a make. The parent uses the normal algorithms to determine this (see How the MAKE Variable Works). If the makefile is constructed such that the parent doesn’t know the child is a make process, then the child will receive only part of the information necessary. In this case, the child will generate this warning message and proceed with its build in a sequential manner.


make 프로세스가 통신을 하기 위해서, 부모는 자식에게 정보를 넘겨줄 것이다. 자식 프로세스가 실제로 make를 하지 못하는 문제가 발생하기 전까지, 부모는 자식이 make를 진행 중이라고 생각을 할 것이다. 부모는 이것을 결정하기 위한 일반적인 알고리즘을 사용한다(How the MAKE Variable Works를 볼 것). 만약 makefile이 부모가 자식이 make 프로세스란걸 알지 못 하는 것과 같은 구조로 짜여있을 경우, 자식은 필요한 정보의 일부분만 받게 될 것이다. 이경우, 자식은 이 경고 메시지를 생성하고 자신의 빌드를 순차적인 방법으로 진행할 것이다.


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


Recursive make commands should always use the variable MAKE, not the explicit command name ‘make’, as shown here:


subsystem:

        cd subdir && $(MAKE)

[링크 : https://www.gnu.org/software/make/manual/html_node/MAKE-Variable.html#MAKE-Variable]



한줄 요약하자면..

병렬 구조로 안짜여졌으니 병렬로 안하겠어! 라는 의미


해결책은..

make -c ... 

이런거 대신

$(MAKE) -c ...

이런식으로 MAKE 변수를 써라.. 인가?



+

Only certain flags go into $(MAKEFLAGS).  -j isn't included because the sub-makes communicate with each other to ensure the appropriate number of jobs are occuring


Also, you should use $(MAKE) instead of make, since $(MAKE) will always evaluate to the correct executable name (which might not be make).

[링크 : http://stackoverflow.com/questions/9147196/makefile-pass-jobs-param-to-sub-makefiles]



The ‘-j’ option is a special case (see Parallel Execution). If you set it to some numeric value ‘N’ and your operating system supports it (most any UNIX system will; others typically won’t), the parent make and all the sub-makes will communicate to ensure that there are only ‘N’ jobs running at the same time between them all. Note that any job that is marked recursive (see Instead of Executing Recipes) doesn’t count against the total jobs (otherwise we could get ‘N’ sub-makes running and have no slots left over for any real work!)


If your operating system doesn’t support the above communication, then ‘-j 1’ is always put into MAKEFLAGS instead of the value you specified. This is because if the ‘-j’ option were passed down to sub-makes, you would get many more jobs running in parallel than you asked for. If you give ‘-j’ with no numeric argument, meaning to run as many jobs as possible in parallel, this is passed down, since multiple infinities are no more than one.


If you do not want to pass the other flags down, you must change the value of MAKEFLAGS, like this:


subsystem:

        cd subdir && $(MAKE) MAKEFLAGS=

The command line variable definitions really appear in the variable MAKEOVERRIDES, and MAKEFLAGS contains a reference to this variable. If you do want to pass flags down normally, but don’t want to pass down the command line variable definitions, you can reset MAKEOVERRIDES to empty, like this:


MAKEOVERRIDES =

This is not usually useful to do. However, some systems have a small fixed limit on the size of the environment, and putting so much information into the value of MAKEFLAGS can exceed it. If you see the error message ‘Arg list too long’, this may be the problem. (For strict compliance with POSIX.2, changing MAKEOVERRIDES does not affect MAKEFLAGS if the special target ‘.POSIX’ appears in the makefile. You probably do not care about this.)


A similar variable MFLAGS exists also, for historical compatibility. It has the same value as MAKEFLAGS except that it does not contain the command line variable definitions, and it always begins with a hyphen unless it is empty (MAKEFLAGS begins with a hyphen only when it begins with an option that has no single-letter version, such as ‘--warn-undefined-variables’). MFLAGS was traditionally used explicitly in the recursive make command, like this:


subsystem:

        cd subdir && $(MAKE) $(MFLAGS)

but now MAKEFLAGS makes this usage redundant. If you want your makefiles to be compatible with old make programs, use this technique; it will work fine with more modern make versions too.


[링크 : https://www.gnu.org/.../html_node/Options_002fRecursion.html#Options_002fRecursion]



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

make 의존성 파일?  (0) 2015.12.18
make 암시적 룰  (0) 2015.12.18
make 아카이브  (0) 2015.12.14
make 매크로  (0) 2015.12.14
make -j -l  (0) 2015.11.30
Posted by 구차니


archive(member)


foolib(hack.o) : hack.o

        ar cr foolib hack.o



[링크 : http://www.viper.pe.kr/docs/make-ko/make-ko_11.html#SEC104]

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


c

Create the archive.


r

Insert the files member... into archive (with replacement).


[링크 : http://linux.die.net/man/1/ar]

[링크 : ]

[링크 : ]

[링크 : ]

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

make 암시적 룰  (0) 2015.12.18
make jobserver unavailable  (0) 2015.12.16
make 매크로  (0) 2015.12.14
make -j -l  (0) 2015.11.30
makefile 병렬 대비하기  (0) 2015.11.30
Posted by 구차니


$* <- 확장자가 없는 현재의 목표 파일(Target)

$@ <- 현재의 목표 파일(Target)

$< <- 현재의 목표 파일(Target)보다 더 최근에 갱신된 파일 이름

$? <- 현재의 목표 파일(Target)보다 더 최근에 갱신된 파일이름


[링크 : https://wiki.kldp.org/KoreanDoc/html/GNU-Make/GNU-Make-3.html]


$@

규칙에 있는 타겟의 파일 이름. 타겟이 아카이브 멤버이면 `$@'는 아카이브 파일의 이름이다. 여러개의 타겟들(see section 패턴 규칙에 대한 소개(Introduction to Pattern Rules))을 가지고 있는 패턴 규칙에서 `$@'는 규칙의 명령이 실행되도록 만든 타겟이면 무엇이든 이 타겟의 이름이 된다.

$%

타겟이 아카이브 멤버(See section 아카이브 파일을 갱신하기 위해서 make 사용하기(Using make to Update Archive Files))일 때, 타겟 멤버 이름. 예를 들어서 타겟이 `foo.a(bar.o)'이면 `$%'는 `bar.o'이고 `$@'는 `foo.a'이다. 타겟이 아카이브 멤버가 아니면 `$%'는 빈 것이 된다.

$<

첫번째 종속물의 이름. 타겟이 묵시적 규칙으로부터 그의 명령들을 얻었다면 이것은 묵시적 규칙에 의해서 추가된 첫번째 종속물이 될 것이다 (see section 묵시적 규칙(Using Implicit Rules)).

$?

타겟보다 더 새로운 모든 종속물들의 이름들. 이들 사이에는 스페이스들이 들어간다. 아카이브 멤버들인 종속물들에 대해서 이름이 있는 멤버만이 사용된다 (see section 아카이브 파일을 갱신하기 위해서 make 사용하기(Using make to Update Archive Files)).

$^

모든 종속물들의 이름. 이들 사이에는 스페이스들이 들어간다. 아카이브 멤버인 종속물들에 대해서 이름있는(지정된?) 멤버만이 사용된다 (see section 아카이브 파일을 갱신하기 위해서 make 사용하기(Using make to Update Archive Files)). 타겟은 이것이 의존하는 다른 각 파일들에 대해서 각 파일이 종속물 리스트에서 몇번이나 나왔는가에 상관없이, 딱 한번만 사용한다. 그래서 어떤 타겟을 위해서 한번 이상 종속물을 사용한다면 $^ 의 값은 그 이름을 딱 한번 담고 있는 형태가 된다.

$+

이것은 `$^' 와 비슷하다. 그러나 종속물들이 makefile 에서 리스트된 순서와 나타난 대로 중복되었다고 해도 한번 이상 리스트된다. 이것은 특별한 순서로 라이브러리 파일 이름들을 반복하는 것이 의미가 있는 링크 명령들 안에서 주로 유용하다.

$*

묵시적 규칙이 일치하는 (see section 패턴 비교 방법(How Patterns Match)) 대상 줄기(stem). 타겟이 `dir/a.foo.b' 이고 타겟 패턴이 `a.%.b' 이라면 줄기는 `dir/foo' 이다. 줄기는 관련된 파일들의 이름을 만들때 유용하다. 정적 패턴 규칙에서 줄기는 타겟 패턴에서 `%' 과 일치한, 파일 이름의 일부분을 말한다. 명시적 규칙에서는 줄기가 없다; 그래서 `$*' 는 그런식으로 결정될 수 없다. 대신에 타겟 이름이 인식된 접미사로 끝난다면 (see section 구닥다리 접미사 규칙(Old-Fashioned Suffix Rules)), `$*' 는 타겟 이름 빼기 접미사로 설정된다. 예를 들어서, 타겟 이름이 `foo.c' 이라면, `$*' 는 `foo' 로 설정된다, 왜냐면 `.c' 가 접미사이기 때문이다. GNU make 는 다른 make 구현물과의 호환성을 위해서만 이런 괴기스런 일을 한다. 일반적으로 묵시적 규칙들이나 정적 패턴 규칙들을 제외하고는 `$*' 를 쓰지 않도록 해야 할 것이다. 명시적 규칙 안의 타겟 이름이 인식된 접미사로 끝나지 않는다면 `$*' 는 그 규칙에 대해서 빈 문자열로 설정된다.

[링크 : http://korea.gnu.org/manual/4check/make-3.77/ko/make_10.html#SEC97]



.PHONY는 지원하지 않는 버전도 있음

 .PHONY: clean

clean:

        rm *.o temp


clean: FORCE

        rm $(objects)

FORCE: 


[링크 : http://pinocc.tistory.com/131]

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

make jobserver unavailable  (0) 2015.12.16
make 아카이브  (0) 2015.12.14
make -j -l  (0) 2015.11.30
makefile 병렬 대비하기  (0) 2015.11.30
make burn 0.0.0 ???  (0) 2014.11.11
Posted by 구차니

vfs objects = recycle


위의 항목을 이용하면 vfs module을 통해서

휴지통 기능을 지원한다고 한다.

synology에서 이 기능으로 삼바 휴지통을 구현한걸려나?


[링크 : http://unix.stackexchange.com/.../how-can-i-have-a-trash-recycle-bin-for-my-samba-shares]

[링크 : http://forums.openmediavault.org/index.php/Thread/3098-RESOLVED-Recycle-bin-for-SMB-CIFS/]


EXAMPLES

Move files "deleted" on share to /data/share/.recycle instead of deleting them:

      [share]

path = /data/share

vfs objects = recycle

recycle:repository = .recycle

recycle:keeptree = yes

recycle:versions = yes


VERSION

This man page is correct for version 3.0.25 of the Samba suite.


[링크 : https://www.samba.org/samba/docs/man/manpages/vfs_recycle.8.html


'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

어라.. samba swat 사라졌네  (0) 2017.01.03
wins를 이용한 ubuntu에서 samba host 이름 resolve하기  (0) 2016.09.10
samba - nfs - samba 0x80070021 오류  (0) 2015.11.09
smbpasswd의 hash generator  (0) 2014.09.22
SMB2  (0) 2013.09.13
Posted by 구차니