未分類

VNC Server 安裝設定 for CentOS5

What is VNC?

VNC stands for Virtual Network Computing. It is remote control software which allows you to view and interact with one computer (the “server”) using a simple program (the “viewer”) on another computer anywhere on the Internet. The two computers don’t even have to be the same type, so for example you can use VNC to view an office Linux machine on your Windows PC at home. VNC is freely and publicly available and is in widespread active use by millions throughout industry, academia and privately.

For more information, please visit http://www.realvnc.com/

確定一下有沒有裝 vnc 跟 vnc-server 這兩個套件

# yum -y install vnc vnc-server

編輯 /etc/sysconfig/vncservers, 其中1,是port的最後一個數字, 如 5801, root 指 預設 vnc登入的身份

# vi /etc/sysconfig/vncservers
VNCSERVERS=”1:root”

設定登入的密碼
# vncpasswd
Password:
Verify:

# vi ~/.vnc/xstartup
解除註解以下兩行
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

重新啟動 VNC Server
# service vncserver restart

# netstat -lt
你可以看到以下就表示 vnc server 已經啟動了,它監聽5801, 所以要注意防火牆要打開
tcp        0      0 *:5801

接著你可以使用任何一台電腦使用瀏覽器(瀏覽器要支援java),輸入網址: http://IP:5801/ ,如 http://192.168.1.12:5801/

OK
 

輸入剛剛設定的密碼

畫質會比原來稍差,登入成功!

 

參考: http://fedoranews.org/tchung/vnc/index.shtml

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *