首页 > 其他 > 详细

小鸟云服务器centos安装图形界面并远程连接

时间:2016-07-13 01:30:06      阅读:819      评论:0      收藏:0      [点我收藏+]

1、安装以下组件

# yum groupinstall -y "Desktop" "Desktop Platform" "Desktop Platform Development"  "Fonts"  "General Purpose Desktop"  "Graphical Administration Tools"  "Graphics Creation Tools"  "Input Methods"  "X Window System"  "Chinese Support [zh]" "Internet Browser"

2、安装xorg组件

# yum install xorg-x11*

3、安装tigervnc

#yum -y install vnc *vnc-server*

修改VNCServer主配置文件

#vim /etc/sysconfig/vncservers

复制最后两行并去掉行首注释符,然后修改为

VNCSERVERS="1:root"

VNCSERVERARGS[1]="-geometry 1024x768"

设置VNCServer远程连接密码

#vncpasswd

输入两次相同的密码

启动服务

# /etc/init.d/vncserver start
Starting VNC server: 1:root xauth:  file /root/.Xauthority does not exist

New ‘niaoyun47507:1 (root)‘ desktop is niaoyun47507:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/niaoyun47507:1.log

                                                           [  OK  ]

 

# vim /root/.vnc/xstartup

将最后一行改为

gnome &

 

开启防火墙VNCServer端口

#vim /etc/sysconfig/iptables

在“-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT”

下面添加一行-A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT

重启iptables服务

#service iptables restart

 
然后使用realvnc,http://www.realvnc.com/
输入“IP:1”
再输入密码即可

 

小鸟云服务器centos安装图形界面并远程连接

原文:http://www.cnblogs.com/senduy/p/5665418.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!