2012-12-20 2 views
3

다른 Ubuntu PC 및 Windows PC에서 Ubuntu PC에 원격 연결 (UI 필요)이 필요합니다. 나는 우리가 VNC를 사용하여 그것을 할 수 있다는 것을 안다. 누구든지 단계를 설명하거나 지침이있는 적절한 링크를 제공 할 수 있습니까?vbc를 사용하여 우분투 연결

다음 단계를 수행했습니다. 원격 액세스를 수행해야하는 Ubuntu 머신에 vnc 서버를 설치했습니다.

:

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. 

몇 가지 팁과 가이드 라인을 얻을 : 나는 4 단계 작업을 수행 할 때

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

아래 링크의 지침에 따라 감사합니다

답변

1

오류 메시지를 읽으십시오! DISPLAY가 설정되지 않았으므로 SSH 세션이나 그와 비슷한 명령을 실행하는 것이 매우 분명합니다. 올바른 값으로 설정하십시오 (어떤 X11 소켓이/tmp에 있는지 확인하십시오 : 아마도 ": 0"을 원할 것입니다).

DISPLAY=":0"; export DISPLAY 

x11vnc를 연결할 수 있도록 XAUTHORITY도 설정해야합니다. Dupe of this 질문입니다.