VncServer安装

以下操作步骤主要针对刚刚初始化的 CentOS 6.5 环境,安装远程桌面环境 VNC Server。 一、 安装 GNOME 图形化桌面
@required
#yum groupinstall -y "X Window System"
#yum groupinstall -y "Desktop"
#yum groupinstall -y "Chinese Support"

@optional
#yum groupinstall -y "Desktop Platform"
#yum groupinstall -y "Desktop Platform Development"
#yum groupinstall -y "Fonts"
#yum groupinstall -y "Internet Browser"

二、 安装 VNCSERVER & 配置 1. 安装 vncserver
#yum install -y "tigervnc-server"

2. 配置 vncserver
1) 把 vncserver 服务设置为开机自启动
    #chkconfig --level 345 vncserver on
2)  为 vncserver 设置远程登录密码
    #vncserver
    此处需要为 vncserver 远程登录设置密码  
    You will require a password to access your desktop.
    Password:****
    Verify:****
3) 配置为使用gnome桌面
    修改 /root/.vnc/xstartup文件,把最后的 twm & 删掉 加上 gnome-session &。
    #vi /root/.vnc/xstartup
4) 配置vncserver启动后监听端口和环境参数
    修改/etc/sysconfig/vncservers 文件添加以下内容
    #vi /etc/sysconfig/vncservers
    VNCSERVERS="1:root"
    # 桌面号:用户    监听 590* 端口
    VNCSERVERARGS[1]="-geometry 1200x800"
5) 重启vncserver服务
    #service vncserver restart

三、连接VNC client VNC : 172.16.30.25:1

原文地址:https://www.cnblogs.com/patrick0715/p/7743482.html