我安装了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运行文本文件作为命令
文件太大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上
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。