標籤:style blog color os io ar art div log
[[email protected] .ssh]# yum -y install tigervnc-server vnc-server
[[email protected] .vnc]# vi /etc/sysconfig/vncservers # VNCSERVERS="2:myusername"# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"VNCSERVERS="1:root 2:shylock"VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp"VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp"
[[email protected] .vnc]# pwd/root/.vnc
[[email protected] .vnc]# vi xstartup #在最後修改twm為gnome-session 或者startkde
#twm &
gnome-session &
#startkde &
然後設定賬戶密碼
分別登入root和shylock[[email protected] .vnc]# vncpasswd[[email protected] ~]$ vncpasswd根據提示輸入密碼
啟動vncServer
[[email protected] .vnc]# /sbin/service vncserver start
解釋: 1:root 表示VNC登入使用者為 root VNC串連連接埠為 5901,為什麼是5901?是 5900+1, 5900 是VNC的開始端點口;
下載VNC-Viewer
VNC Server:192.168.1.131::5901 (ip:1 ip:5901)
點擊connect,輸入設定的密碼,然後圖形化介面就出現了!!!
Centos 6.5 安裝VNC Server 圖形化