#vncserver
第一次設定會要求設定密碼
#vi /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
然後還要設定家目錄下的隱藏目錄 xstartup 這個檔案
編輯檔案 /root/.vnc/xstartup
把兩個註解移除後存檔
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
編輯檔案 /root/.vnc/xstartup
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
設定好 :wq 存檔離開後重開vncserver



沒有留言:
張貼留言