Linux端配置(红色部分为添加或者修改的内容)

  1. vim /etc/gdm/custom.conf

    [security]

    AllowRoot=true

    AllowRemoteRoot=true

    [xdmcp]

    Port=177

    Enable=ture

  2. vim /etc/inittab

    id:5:initdefault:     //修改成从图形终端启动系统

  3. vim /etc/X11/xdm/xdm-config

    ! DisplayManager.requestPort:   0     //最后一行打上注释,即!

  4. xdmcp服务默认使用udp177端口,防火墙需要添加以下规则

    iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT

    或者直接关闭防火墙

    /etc/init.d/iptables stop

    /etc/init.d/iptables save

  5. 重启系统

  6. 使用netstat -antpu |grep 177命令查看xdmcp服务是否启动:

使用xmanager在windows下远程桌面linux的配置_Linux

Xmanager端配置

  使用xmanager在windows下远程桌面linux的配置_Linux_02


Win7要关闭防火墙