標籤:centos release 6.4 (final) 安裝svn
一.安裝
[[email protected] ~]# yum install tigervnc-server
[[email protected] ~]# yum install -y tigervnc*
二.設定密碼
[[email protected] ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New ‘demo:1 (root)‘ desktop is demo:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/demo:1.log
三.編輯設定檔
[[email protected] ~]# vim ~/.vnc/xstartup
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/4D/E5/wKioL1RcOZvT6gckAAHmTc6AE6A174.jpg" title="1.png" alt="wKioL1RcOZvT6gckAAHmTc6AE6A174.jpg" />
[[email protected] ~]# vim /etc/sysconfig/vncservers
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/4D/E6/wKiom1RcOUTQYF_QAAFv6wCWuHY259.jpg" title="2.png" alt="wKiom1RcOUTQYF_QAAFv6wCWuHY259.jpg" />
四.啟動
[[email protected] ~]# service vncserver restart
關閉 VNC 伺服器:1:root [確定]
正在啟動 VNC 伺服器:1:root xauth: (stdin):1: bad display name "demo:1" in "add" command
New ‘demo:1 (root)‘ desktop is demo:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/demo:1.log
[確定]
串連我的伺服器
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/4D/E6/wKiom1RcO8Kw5p3-AACTFG-dF9k700.jpg" title="3.png" alt="wKiom1RcO8Kw5p3-AACTFG-dF9k700.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/4D/E5/wKioL1RcPGaDp6Z5AAB5ZpqtlWI895.jpg" title="4.png" alt="wKioL1RcPGaDp6Z5AAB5ZpqtlWI895.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/4D/E5/wKioL1RcPHHxbdm0AAMmK3ix-4s350.jpg" title="5.png" alt="wKioL1RcPHHxbdm0AAMmK3ix-4s350.jpg" />
安裝配置VNC過程中我遇到了問題如下:
VNC啟動時報“A VNC server is already running as :1”,是什麼問題?
答:說明已經有使用者啟動了vnc服務,你可以ps aux|grep vnc查看是否有vnc的進程,如果有表示有人正在:1案頭上啟用來vnc服務,如果沒有,說明上一次啟用到vnc服務沒有正常退出,可以刪除/tmp/.X11-unix下的X1,並重啟VNC服務。
在Linux伺服器上啟動VNC服務正常,但是用戶端無法串連報10061逾時是什麼問題?
答:應該是Linux伺服器防火牆的設定問題,請檢查防火牆的設定規則。
引用在Linux系統中安裝和使用VNC http://7056824.blog.51cto.com/69854/132836
本文出自 “8055082” 部落格,轉載請與作者聯絡!
CentOS release 6.4 (Final) 安裝svn