前提:1、安装完成Xmanager
2、安装完成Linux
3、安装linux时一定要选上 xwindow,这是最基本的前提,不安装它,是绝对没有图形界面的
查看 linux 是否已安装 xwindow:
# rpm -qa gnome-desktop
如果打印出结果,说明已安装
1、编辑 /etc/gdm/custom.conf
首先备份custom.conf 文件
# cd /etc/gdm
# cp custom.conf custom.conf.backup.old
编辑此文件,添加如下内容(红色字为要添加的内容)
# GDM configuration storage
[daemon]
[security]
AllowRemoteRoot=yes
[xdmcp]
Enable=true
[greeter]
[chooser]
[debug]
2、编辑 /usr/share/config/kdm/Xaccess
首先备份 Xaccess 文件
# cd /usr/share/config/kdm
# cp Xaccess Xaccess.backup.old
编辑此文件,找到下面这行
#* #any host can get a login window
把前面的 # 去掉,改成下面这样就可以了
* #any host can get a login window
修改上面的文件后,reboot机器
3、设置防火墙,打开 177 端口
在终端输入命令:
iptables -A INPUT -p udp --dport 177 -j ACCEPT
service iptables save
service iptables restart
4、运行 Xmanager --> Xstart
配置session名称、ip、端口、注意command要选择gnome
点击“Run”就可以了!!