Xmanager远程连接centos6.9
1.安装gdm (若已安装则不需安装)yum -y install gdm
我们已经安装
[[email protected] serverdiag]$ yum list installed|grep gdm
gdm.x86_64 1:2.30.4-67.el6 @base
gdm-libs.x86_64 1:2.30.4-67.el6 @base
gdm-plugin-fingerprint.x86_64
gdm-user-switch-applet.x86_64
plymouth-gdm-hooks.x86_64
pulseaudio-gdm-hooks.x86_64
[[email protected] serverdiag]$ yum info gdm
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Installed Packages
Name : gdm
Arch : x86_64
Epoch : 1
Version : 2.30.4
Release : 67.el6
Size : 4.6 M
Repo : installed
From repo : base
Summary : The GNOME Display Manager
URL : http://download.gnome.org/sources/gdm
License : GPLv2+
Description : GDM provides the graphical login screen, shown shortly after boot up,
: log out, and when user-switching.
2.配置系统为图形模式,打开/etc/inittab,修改为id:5:initdefault: (若已为5则不需修改)
vi /etc/inittab
3.打开/etc/gdm/custom.conf,在[security]和[xdmcp]字段下分别添加如下内容:
[security]
AllowRemoteRoot=true
[xdmcp]
Port=177
Enable=1
4.关闭防火墙(service iptables stop)或在防火墙上打开udp 协议177 端口。默认是关闭的。
[[email protected] gdm]# /etc/init.d/iptables status
iptables: Firewall is not running.
5.重启机器
6.xmanger连接