1.连接工具
Xmanager4
2.安装图形界面Gnome
yum groupinstall "Desktop"
yum groupinstall "X Window System"
yum groupinstall "Chinese Support"
3.修改/etc/X11/xdm/Xaccess
如果没有此目录须先安装
yum install xdm
然后vi /etc/X11/xdm/Xaccess
将#* *any host can get a login window这一行#去掉
保存退出
4.修改/etc/gdm/custom.conf
vi /etc/gdm/custom.conf
[daemon]
[security]
AllowRemoteRoot=true //添加1
[xdmcp]
Port=177 //添加2
Enable=1 添加3
[gui]
[greeter]
[chooser]
[debug]
保存退出
5.使用Xmanager连接
使用Xstart
command选择Gnome,点击run连接
6.报错处理
如果连接中报错:
Sent password.
Sent password.
Access granted.
Sent X11 forwarding request...
failed.
然后vi /etc/ssh/sshd_config
#X11Forwarding no
修改为:X11Forwarding yes
然后重启sshd服务
service sshd restart