Xmanager远程连接centOS6.5进行的配置

1.未安装图形化界面

  yum groupinstall "Desktop"
  yum groupinstall "X Window System"
  yum groupinstall "Chinese Support"

2.修改/etc/inittab    5

备份:修改配置文件最好先备份!!!

       cp filename filename_2018--  文件
       cp -rf filename filename_2018--  文件夹

3.编辑/etc/gdm/custom.conf
  [security] 

  AllowRemoteRoot=true   #允许root用户远程登录 

  [xdmcp] 

  Enable=true   #允许远程登录本地
  Port=177      #xdmcp默认端口177,此处没有显示的加入

注意:#为注释,将前面的空格去掉,否则不会生效

4.开启udp 177端口
  /sbin/iptables -I INPUT -p udp --dport 177 -j ACCEPT
  /etc/init.d/iptables save
  /etc/init.d/iptables restart

5.重启reboot

6.查看177端口是否开启netstat -tulnp  

以上参考多方博文的个人总结!

猜你喜欢

转载自blog.csdn.net/xz812964793/article/details/81220861