centos 6.3 vnc串連—— catalog is not properly configured, attem

來源:互聯網
上載者:User

centos 6.3 vnc串連—— catalog is not properly configured, attempting to determine an appropriate font p 摘要:linux環境下,利用VNC串連遠端桌面是經常用到的。這裡,我們介紹centos上,利用VNC串連遠端桌面的方法和常見的兩個問題的解決方案1)由於字型問題,導致VNCserver無法啟動 2)由於防火牆問題,導致開啟VNCserver以後,無法在VNCviewer串連過來。 一、查看是否安裝 VNC [root@xen ~]# rpm -qa|grep tigervnctigervnc-1.0.90-0.17.20110314svn4359.el6.x86_64tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64 如果沒有就安裝下了  [root@xen ~]# yum install tigervnc tigervnc-server 添加啟動項 [root@xen ~]# chkconfig --add vncserver[root@xen ~]# chkconfig vncserver on  二、設定 VNC 密碼   [root@xen ~]# vncserverCreating default startup script /root/.vnc/xstartupStarting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/xen:1.log 會在目前使用者主目錄下 產生 .vnc  目錄和設定檔 [root@xen ~]# vncpasswd Password:Verify: 設定的密碼儲存在  /root/.vnc/passwd   三、VNC 配置   修改 xstartup 檔案 把最後的 twm & 刪掉 加上 gnome-session & 編輯/root/.vnc/xstartup, vi /root/.vnc/xstartup  如果直接 啟動[root@xen .vnc]# /etc/init.d/vncserver start正在啟動 VNC 伺服器:no displays configured                [失敗] 所以要修改  /etc/sysconfig/vncservers 檔案添加以下內容VNCSERVERS="2:root"# 案頭號:使用者    監聽 590* 連接埠VNCSERVERARGS[2]="-geometry 800x600" 這樣修改後,就算 /etc/inittab 啟動模式為 3  也可以正常進入圖形介面 啟動 vncserver[root@xen ~]# /etc/init.d/vncserver start正在啟動 VNC 伺服器:2:root xauth: (stdin):1:  bad display name "xen:2" in "add" command New 'xen:2 (root)' desktop is xen:2 Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/xen:2.log 四、常見問題 1)由於防火牆,導致外部無法串連遠端桌面解決方案:啟動完畢後使用netstat -nat查看監聽連接埠(預設為5901,5902,5903等),如果開啟了防火牆,則需要配置規則允許對應連接埠tcp包通過。iptables -I INPUT 1 -p tcp --dport 5901 -j ACCEPT(其中-I INPUT 1代表插入一條規則,這條規則的位置是1,詳情請查閱iptables相關配置)2)字型問題導致無法啟動vncserver出錯提示:WARNING: the first attempt to star Xvnc failed,possibly because the font catalog is not properly configured, attempting to determine an appropriate font path for this system and restart Xvnc using that font path ...解決方案:a.查看需要更新的字型:yum list updates | grep fontb.將上一步中需要更新的字型都安裝 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.