VNC安裝,

來源:互聯網
上載者:User

VNC安裝,

服務端環境:CentOS 6.7
用戶端環境:Windows 7

1.伺服器安裝VNC服務端

可以直接rpm安裝vnc的服務端:

rpm -ivh tigervnc-server-1.1.0-16.el6.x86_64.rpm

如果rpm安裝時發現有依賴,建議直接使用yum安裝,輕鬆解決依賴問題:

yum install tigervnc-server

如果系統安裝時並沒有安裝案頭選項,那麼就還需要用yum安裝一下案頭:

yum groupinstall "X Window System" "Desktop"
2.編輯vnc設定檔

編輯/etc/sysconfig/vncservers,
添加以下內容:

VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 800x600 -alwaysshared -depth 24"

註:解析度可以根據實際情況調整,解析度不合適可能導致vnc串連顯示黑屏的現象。

3.設定VNC的密碼

vncserver
第一次輸入提示需要設定VNC的密碼:

[root@JY-DB ~]# vncserver   You will require a password to access your desktops.  Password: Verify: xauth:  creating new authority file /root/.Xauthority  New 'JY-DB:1 (root)' desktop is JY-DB:1  Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/JY-DB:1.log  [root@JY-DB ~]# 

後期若想修改vnc使用者密碼,可使用vncpasswd命令修改

[root@JY-DB ~]# vncpasswd Password: Verify:
4.查看vnc的會話資訊

重啟vncserver服務:

/etc/init.d/vncserver restart

查看vnc的會話資訊:

vncserver -list
5.用戶端測試vnc串連

用戶端是vncviewer,我這裡是Windows系統,下載對應的vnc安裝包HA-vnc-4.0-x86_win32-KC.exe
安裝選擇只安裝VNC Viewer即可。

輸入192.168.56.102:1,

確定之後,提示輸入密碼,這裡的密碼是指vnc的密碼,

確定後,即可通過vnc串連到服務端的案頭環境了。

註:這裡的"192.168.56.102"是服務端的IP地址,而":1"對應的是VNCSERVERS的配置,這裡就是root使用者。

個人認為VNC的最大優勢是:網路突然斷開,也不會影響之前正在做的操作。

搜尋

複製

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.