簡體   English   中英

使用vnc連接ubuntu

[英]connecting ubuntu using vnc

我需要從另一台Ubuntu PC和Windows PC遠程連接到Ubuntu PC(需要查看UI)。 我知道我們可以使用VNC做到這一點。 誰能解釋我的步驟或給出一個有說明的正確鏈接。

我按照以下步驟操作:在我需要遠程訪問的Ubuntu機器上安裝vnc服務器。 我按照以下鏈接中的說明操作

http://www.ubuntu-unleashed.com/2007/10/setup-vnc-server-for-ubuntu-gutsy.html

當我做第4步時:

x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800

我明白了

20/12/2012 02:12:02 passing arg to libvncserver: -httpport

20/12/2012 02:12:02 passing arg to libvncserver: 5801

20/12/2012 02:12:02 -usepw: found /home/sjayara5/.vnc/passwd

20/12/2012 02:12:02 x11vnc version: 0.9.12 lastmod: 2010-09-09  pid: 4821

20/12/2012 02:12:02 XOpenDisplay("") failed.

20/12/2012 02:12:02 Trying again with XAUTHLOCALHOSTNAME=localhost ...

20/12/2012 02:12:02 

20/12/2012 02:12:02 *** XOpenDisplay failed. No -display or DISPLAY.

20/12/2012 02:12:02 *** Trying ":0" in 4 seconds.  Press Ctrl-C to abort.

20/12/2012 02:12:02 *** 1 2 3 4 

20/12/2012 02:12:06 XOpenDisplay(":0") failed.

20/12/2012 02:12:06 Trying again with XAUTHLOCALHOSTNAME=localhost ...

20/12/2012 02:12:06 XOpenDisplay(":0") failed.

20/12/2012 02:12:06 Trying again with unset XAUTHLOCALHOSTNAME ...

20/12/2012 02:12:06 



20/12/2012 02:12:06 ***************************************

20/12/2012 02:12:06 *** XOpenDisplay failed (:0)



*** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue.

*** There may be "Xlib:" error messages above with details about the failure.

一些提示和指南:

謝謝

閱讀您的錯誤消息! 由於未設置DISPLAY,因此從SSH會話或類似程序運行命令似乎相當清楚。 將其設置為正確的值(檢查/ tmp中的X11插槽;您可能需要“:0”)。

DISPLAY=":0"; export DISPLAY

您還需要設置XAUTHORITY,以便x11vnc可以連接! 杜佩這個問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM