1. X Window 원격 접속할 수 있는 프로그램
– VNC ( http://www.realvnc.com )
–
Xmanager ( http://www.netsarang.co.kr )
– cygwin ( http://www.cygwin.com/
)
– eXceed
…
2. Remote Sessions via XDMCP
Cygwin/X
can be used login to one or several remote sessions using XDMCP (X Display
Manager Control Protocol).
Start Cygwin/X with a command similar to the
following to login to a single remote session using XDMCP:
XWin.exe
-query remote_hostname_or_ip_address
You may login to several remote
sesstions with a single or multiple hosts using XDMCP. Each session will need a
seperate display number, specified by the :display_number parameter, such as :0.
A display number is not the same as a screen number, as a single display can
have multiple screens associated with it. Each display listens on a different
network port number, so each display can connect to multiple machines. Start
Cygwin/X with command lines similar to the following to login to several remote
sessions using XDMCP:
XWin.exe :0 -query
remote_hostname_or_ip_address_0
XWin.exe :1 -query
remote_hostname_or_ip_address_1
Note that the :display_number
parameter is a general X Server parameter, not specific to Cygwin/X. Further
documentation of the :display_number parameter can be found in the X Server
manual page. XDMCP is a complex system that is not specific to Cygwin/X; further
discussion of XDMCP is beyond the scope of this document. You may wish to read
the Linux XDMCP HOWTO or the X Server XDMCP Options for more
information.
예) XWin.exe :0 -query 192.168.0.200
※ root 사용자로
로그인 가능하게 하기.
/etc/X11/gdm/gdm-config 파일에서 [security] 섹션부분의
AllowRemoteRoot=false 를 true로 변경.
3. Displaying Remote
Clients
Displaying remote X clients with Cygwin/X is nearly identical
to displaying remote X clients with any other X Server. You may use the secure
ssh method, or the unsecure telnet method (not recommended).
Secure
ssh
On your Windows machine:
① Make sure you have the openssh
package installed.
② Launch Cygwin/X
③ Run the following in an X
terminal:
Username@CygwinHost ~
$ ssh -Y -l username
remote_hostname_or_ip_address
④ Enter your password when prompted by
ssh.
⑤ Your ssh session should now show you a shell prompt for your
remote machine.
⑥ You can now launch remote X clients in your ssh
session, for example, xterm& will launch an xterm running on your remote
host that will display on your Cygwin/X screen.
⑦ Launch other remote
clients in the same manner. I recommend starting the remote clients in the
background, by appending & to the command name, so that you don’t have to
open several ssh sessions.
※ 체크사항
서버의 /etc/ssh/sshd_config
파일에서
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost
yes
부분을 아래와 같이 변경.
X11Forwarding yes
X11DisplayOffset
10
X11UseLocalhost yes
Unsecure Telnet
On your Windows
machine:
① Make sure you have the inetutils package installed.
②
Launch Cygwin/X
③ In an X terminal type /usr/X11R6/bin/xhost
remote_hostname_or_ip_address
④ In an X terminal type
/usr/bin/telnet remote_hostname_or_ip_address. Use the explicit
path to ensure that Cygwin’s telnet is run instead of Microsoft’s
telnet; Microsoft’s telnet will crash on startup when run from
Cygwin/X.
⑤ Login to your remote machine via your telnet
session
⑥ In your telnet session type,
DISPLAY=windows_hostname_or_ip_address:0.0
⑦ In your telnet
session type, export DISPLAY
⑧ You can now launch remote X clients
in your telnet session, for example, xterm& will launch an
xterm running on your remote host that will display on your Cygwin/X
screen.
⑨ Launch other remote clients in the same manner; I recommend
starting the remote clients in the background, by appending & to the command
name, so that you don’t have to open several telnet
sessions.
4. Run gonme-session over ssh
XWin
&
export DISPLAY=:0
ssh -Y remoteserver -l user
gnome-session
5. Cygwin/X에서 원격 X Window 로그아웃이 너무
느리다.
Windows-XP SP2 방화벽 체크
(제어판->방화벽->예외 탭 에서 TCP 포트 7100을
추가한다)
6. 참고사이트
–
http://x.cygwin.com/docs/ug/using-remote-session.html
– Linux XDMCP HOWTO (
http://en.tldp.org/HOWTO/XDMCP-HOWTO )