[root@localhost ~]# rpm -qa vnc*
vnc-server-4.1.2-9.fc6
vnc-4.1.2-9.fc6
可透過yum來安裝
[root@localhost ~]# yum -y install vnc-server vnc
修改vncserver密碼
[root@localhost ~]# vncpasswd
Password:
Verify:
修改登入後的圖形介面
[root@localhost ~]# vi ~/.vnc/xstartup
#!/bin/sh
/etc/X11/xinit/xstartup
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &
啟動vncserver
[root@localhost ~]# vncserver :1
檢視是否:
[root@localhost ~]# netstat -tlunpActive Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5801 0.0.0.0:* LISTEN 4995/Xvnc
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 4995/Xvnc
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 4995/Xvnc
tcp 0 0 :::6001 :::* LISTEN 4995/Xvnc
[分析]
port 說明 使用方法
5801 browser 使用的埠 http://host-ip:5801
5901 vncviewer 使用的埠 host-ip:5901
6001 X Server 使用的埠 N/A
遠端只需裝有vncviewer或是有裝sun java的瀏覽器便可以遠端操控了!!!
參考資料:
鳥哥的 Linux 私房菜
http://linux.vbird.org/linux_server/0310telnetssh.php
Jamyy's Weblog
http://cha.homeip.net/blog/archives/2005/08/realvnc_vs_linu.htm