如下操做步驟主要針對剛剛初始化的 CentOS 6.5 環境,安裝遠程桌面環境 VNC Server。 1、 安裝 GNOME 圖形化桌面
@required
#yum groupinstall -y "X Window System"
#yum groupinstall -y "Desktop"
#yum groupinstall -y "Chinese Support"session
@optional
#yum groupinstall -y "Desktop Platform"
#yum groupinstall -y "Desktop Platform Development"
#yum groupinstall -y "Fonts"
#yum groupinstall -y "Internet Browser"ui
2、 安裝 VNCSERVER & 配置 1. 安裝 vncserver
#yum install -y "tigervnc-server"spa
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
3、鏈接VNC client VNC : 172.16.30.25:1rest