分类: LINUX
2011-03-23 10:39:12
1. Change runlevel to 5
change the file /etc/inittab and set the initial runlevel to 5 as following:
id:5:initdefault:
And add one line after the file last line.
x:5:respawn:/usr/sbin/gdm
2. Enable XDMCP
For GDM:
Open /etc/gdm/custom.conf and set the Enable entry to 1 in the [xdmcp] section as following.
[security]
DisabllowTCP=false
AllowRemoteRoot=true //允许root登录
[xdmcp]
Enable=1 //开启
Port=177 //默认UDP端口:177
3. Firewall (TCP/UDP Ports) Configuration
Open UDP port 177 from the PC to the remote host direction.
Open incoming TCP ports 6000~6010 from the remote host to your PC.
Run the setup command in the xshell of xmanager tool.
Firewall config->Enable->Select ssh and type "6003:t177/udp" behind "other ports"
4. Reboot the remote host and start Xmanager
# init 3; init 5 或gdm-restart //重启桌面生效,不用重启计算机
说明:windows上xmanager监听6003端口