CentOS 安裝 VNC

LiuYinChina發表於2013-09-16
CentOS VNC伺服器

yum install tigervnc-server.i686                                         #安裝 vnc-server

vi ~/.vnc/xstartup
unset SESSION_MANAGER                                              #去除這行前的"#"
exec /etc/X11/xinit/xinitrc                                                      #去除這行前的"#"

vncpasswd                                                                            #設定密碼
chkconfig vncserver on                                                        #服務自啟動

vncserver                                                                                #啟動服務
New '*:1 (root)' desktop is *:1                                             #這是序號

iptables -A -I INPUT -m state --state NEW -m tcp -p tcp --dport 5901:5910 -j ACCEPT  #開放vncserver服務埠
service iptables save                                                           #儲存iptables配置

Windows VNC客戶端
http://sourceforge.net/projects/tigervnc/files/tigervnc/    #下載並安裝
執行 vncviewer.exe

VNC Server 填寫 IP:序號,連線成功!

相關文章