x11vnc xopendisplay失败

x11vnc xopendisplay失败,第1张

概述x11vnc xopendisplay失败

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

以下是错误消息

$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.

我怎样才能解决这个错误?

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

GTK +编译未定义的参考C

AVR ISP MKII,avrdude,Ubuntu 11.10

Ubuntu从文本文件中得到句子的最后一个单词

ubuntu运行文本文件作为命令

文件太大python

$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)

安装PCRE时出错

如何在ubuntu上configurationtesting成功后才能重新启动Nginx?

如何查看node.Js npm服务器上的socket.io版本

错误:无法启动Rubymine。 找不到JDK。 JDK版本? +桌面链接

使用非root用户帐户安装Git

您尚未提供X11服务器来处理图形窗口。 下面按照完整的说明来安装你想要的任何配置的vnc / remote desktop,并从任何 *** 作系统连接到它。

远程桌面之间的任何 *** 作系统的分步指南

我 。 windows到/从windows:

使用windows远程桌面软件

二 。 linux / Unix从/到任何地方

首先在您要通过远程桌面连接的服务器计算机上执行以下 *** 作:

- Allow other users to vIEw your desktop - Best to require a password - service ssh status - To allow computers to connect with X11 graphics system capabilitIEs as well,you need to install an X11 server on the computer that is trying to connect (clIEnt). So * for a windows computer use XMing * for a linux Ubuntu computer use XQuartz

IIa 。 从终端windows到linux的图形支持

- Launch XMing on windows clIEnt - Launch Putty * Fill in basic options * Connection -> SSH -> X11 -> Enable X11 forwarding -> X display location = :0.0 -> MIT-Magic-cookie-1 -> X authority file for local display = point to the Xming.exe executable

IIb 。 (b为更好)windows到linux完全的GUI支持。 这是你们大多数人想要的。

- install xrdp which uses the remote desktop protocol to present a GUI to the user. It can provIDe a fully functional linux terminal server,capable of accepting connections from rdesktop,freerdp,and Microsoft's own terminal server / remote desktop clIEnts. xrdp is the daemon that handles RDP remote desktop access from windows machines to linux - edit the "/etc/xrdp/xrdp.ini" file to include the line: address=0.0.0.0 right under #background=626x72 line. 0.0.0.0 is the local server address of xrdp - Restart xrdp service - allow xrdp port (probably 3389) through firewall - We also need a VNC server. Install tightvncserver on linux server machine. - run tightvncserver (no need to create a vIEw-only password) - "netstat -lvp | grep vnc" to check out the ports that tightvnc is Listening on for connections - allow the vncserver port from the firewall: sudo ufw allow # - allow the xrdp server - Install xfce4 desktop environment an update to xfce,minimaListic faster and lightweight sudo apt-get install xfce4 - sudo apt-get install xfce4-terminal : way better than xterm - sudo apt-get install gnome-icon-theme-full tango-icon-theme : installs icon sets - Now we modify 2 files to make sure xrdp uses xfce4 * echo xfce4-session >~/.xsession * secondly we modify startup file for xRDP located at /etc/xrdp/startwm.sh so it will start xfce4. Replace the last line with startxfce4 (before it had something which started with a .,but no matter whatever it is,just replace the last line) * restart xrdp service: sudo service xrdp restart - Now you are ready to log into the computer from clIEnt using Remote Desktop (mstsc.exe). Just supply the ipv4 or hostname of the VNC server.

三 。 * nix到/从* nix

- ssh -X [preferedUsername]@[targetIpv4Address] : -X flag enales X11 forwarding - accept security certificates from trusted hosts when prompted

四 。 确保连接安全(可选步骤 – 适用于任何配置)

VNC&xrdp协议不安全,这意味着它们没有被加密。

要使连接安全,请编辑/etc/xrdp/xrdp.ini文件,使地址变为127.0.0.1。 这将是ssh服务器的本地主机地址。 SSH加密将在下面使用隧道的VNC流量。

- sudo service xrdp restart - sudo service ssh restart - pkill Xtightvnc - tightvncserver - putty -> Connection -> SSH -> Tunnels * Source port: 5555 * Destination: localhost:3389

如果以上不起作用:

您可能需要重启两台电脑,

禁用服务器pc上的防火墙( sudo ufw disable ),然后重新检查(甚至可能需要重新启动)。

如果上述不起作用,那么通过安装冲突的软件包已经搞糟了你的系统。 您必须对此进行手动故障排除(如果您正确地按照说明 *** 作,则不太可能达到此步骤)。

祝你好运。

资料来源:

YouTube上的“danscourses”频道出色的4个视频系列

https://www.tweaking4all.com/software/linux-software/use-xrdp-remote-access-ubuntu-14-04/

还写在askUbuntu上

总结

以上是内存溢出为你收集整理的x11vnc xopendisplay失败全部内容,希望文章能够帮你解决x11vnc xopendisplay失败所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1257085.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-07
下一篇 2022-06-07

发表评论

登录后才能评论

评论列表(0条)

保存