x11vnc xopendisplay失败 [英] x11vnc xopendisplay failed

查看:3504
本文介绍了x11vnc xopendisplay失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了x11vnc,然后执行x11vnc,但失败了

I installed x11vnc and then execute x11vnc but failed

以下是错误消息

$x11vnc -display :0
08/05/2017 19:18:22 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 7572
08/05/2017 19:18:22 XOpenDisplay(":0") failed.
08/05/2017 19:18:22 Trying again with XAUTHLOCALHOSTNAME=localhost ...

08/05/2017 19:18:22 ***************************************
08/05/2017 19:18:22 *** 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.

我该如何解决该错误?

||我不知道以下内容是否对您有帮助,但我希望如此

|| I don't know if followings are helpful but I hope so

$ps wwwaux | grep auth
root      5276  0.0  0.0 119472  8532 tty7     Ss+  18:26   0:00 /usr/lib/xorg/Xorg -core :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt7 -novtswitch
user1    7731  0.0  0.0  15504  1016 pts/3    S+   19:21   0:00 grep --color=auto auth
user2 25420  0.0  0.0 115960 17532 ?        S     4월26   0:13 Xvnc4 :10000 -desktop quad:10000 (user2) -auth /home/user2/.Xauthority -geometry 1920x1080 -depth 16 -rfbwait 30000 -rfbauth /home/user2/.vnc/passwd -rfbport 15900 -pn -fp /usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb

$ls /etc/X11
app-defaults  cursors  default-display-manager  fonts  rgb.txt  xinit  xkb  xorg.conf.failsafe  Xreset  Xreset.d  Xresources  Xsession  Xsession.d  Xsession.options  xsm

我正在使用远程服务器(Ubuntu 16.04)

I am using the remote server(Ubuntu 16.04)

推荐答案

/usr/lib/xorg/Xorg -core:1

/usr/lib/xorg/Xorg -core :1

您的X在:1显示器上运行,因此您需要告诉x11vnc:

Your X is running on :1 display, so you need to tell x11vnc that:

$ x11vnc -display:1

$ x11vnc -display :1

我认为您也可以-find尝试自动查找用户的显示.

I think you can also do -find to try to find the user's display automatically.

这篇关于x11vnc xopendisplay失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆