2010年1月7日 星期四

CentOS 5 VNC Server

Step1. 確認是否有安裝 VNC Server 套件

#rpm -q vnc vnc-server
vnc-server-4.1.2-9.el5

Step2. 修改 vnc server 設定檔

#vi /etc/sysconfig/vncservers
VNCSERVERS="1:root" //
VNCSERVERARGS[1]="-geometry 1024x768"

Step3. 設定VNC密碼

#vncpasswd

Password: //輸入 VNC 密碼
Verify: //再輸入一次 VNC 密碼以確認

Step4. 修改 ~/.vnc/xstartup

#vi ~/.vnc/xstartup
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER //將此行 mark 拿掉
exec /etc/X11/xinit/xinitrc //將此行 mark 拿

Step5. 啟用VNC Server

#service vncserver start

沒有留言:

張貼留言