远程登陆x桌面

服务器上操作:
------------------------
1. 修改 /etc/X11/xdm/Xaccess,将下面的行:
#* # any host can get a login window
改为:
* # any host can get a login window
------------------------
2. 修改/etc/X11/gdm/gdm.conf,找到下面的信息:
[xdmcp]
Enable=0 或Enable=false
修改为:
[xdmcp]
Enable=1 或Enable=true
并确保以下信息存在:
Port=177
------------------------
3: 修改/etc/inittab,将
id:3:initdefault:
修改为:
id:5:initdefault:
并将最后一行改为:
x:5:respawn:/usr/bin/gdm
-------------------------
4: 确保/etc/X11/xdm/Xservers的属性为444,/etc/X11/xdm/Xsetup_0的属性为755。
-------------------------

配置SSH客户端

对于SecureCRT,在Session Option -> X11,将Forward X11 Packets打上勾即可;
对于PieTTY,Change Settings… -> X11,将Enable X11 forwarding打上勾,然后选择XDM-Authorization-1;

DISPLAY=”192.168.1.100:0.0″
export DISPLAY

/etc/ssh/sshd_config
添加X11Forwarding yes并重启sshd

摘自http://blog.51766.com/page/zsc?entry=1148649782784

http://x.cygwin.com/docs/faq/cygwin-x-faq.html#xdmcp

Technorati : ,


相关文章

Speak Your Mind

If you want a pic to show with your comment, go get a gravatar!