출처: http://dri.sourceforge.net/doc/dri_control_flow.html


보통의 Linux에서 GUI를 구성하는 X Window의 어플들이 모니터 화면으로 보여주는 지(Rendering)에 대한 구조도입니다.

아래 그림에선 XFree86기준으로 설명하였지만 X-org도 비슷한 구성을 합니다.


This low level diagram provide details not shown in the overview diagram.


자세한 설명은  http://dri.sourceforge.net/doc/dri_control_flow.html

그래픽 데이터가 하드웨어로 보내는 과정을 간략히 설명한 구조도 
Buy me a coffeeBuy me a coffee

Ubuntu 10.04를 쓰고 있다 외부 서버의 Xwindow를 봐야할 때가 있습니다.

그렇지만 보안상의 이유로 외부 서버의 Xserver접속을 차단해서 원격으로 Xwindow를 못보는 경우가 있습니다.

이 경우엔 아래와 같이 작업을 해주면 됩니다.


맨 처음 Xserver의 TCP 옵션에서 -nolisten으로 지정되어 있는지 확인을 해야합니다.

studioego@studioego-laptop:~$ ps -elf | grep X

4 S root       987   857  4  80   0 - 13318 poll_s Sep21 tty7     00:08:11 /usr/bin/X :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-pojawd/database -nolisten tcp vt7

studioego@studioego-laptop:~$ 


여기서 -nolistern option을 제거를 해야 외부 서버의 Xwindow 데이터를 받을수 있습니다.


맨 처음 

/etc/gdm/gdm.conf.dpkg-bak

에서 DisallowTCP=true --> true를 false로 바꿉니다.


DisallowTCP=false

로 변경

/etc/X11/xinit/xserverrc 

xserverrc 파일을 수정합니다.

#!/bin/sh

exec /usr/bin/X -nolisten tcp "$@"

-nolisten tcp 부분을 삭제합니다,

exec /usr/bin/X  "$@"

위와 같이 변경하시면 됩니다.


그 후 X server를 재시작을 합니다.


이후 Terminal에 접속할 IP주소를 control list에 추가를 해주시면 됩니다.

studioego@studioego-laptop:~$ xhost 127.0.0.1


이후엔 터미널에서 ssh접속을 한 후 Xwindow 응용 프로그램을 실행하면 원격 실행이 됩니다.

ssh -Y -l 접속할계정명 접속할서버 

접속할계정명@접속할서버's password: 

[studioego@localhost ~]$ xeye &


아래와 같이 실행이 됩니다.


Buy me a coffeeBuy me a coffee

+ Recent posts