我有两台运行 Linux Mint 19.3 的 Linux 机器。
我只是从 apt 在其中一个上安装了ightvnc 服务器。另一方面,我安装 remmina 和 remmina vnc 插件。
我在主机上运行 vncserver 并将其输出到控制台...
New 'X' desktop is scott-Z97-HD3:1
Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/scott/.vnc/scott-Z97-HD3:1.log
然后我使用 Remmina 上的另一台计算机连接到服务器。似乎连接正常并进入远程桌面视图。
不幸的是,所显示的只是一个黑暗的背景和一个显示文本的窗口框......
could not acquire name on session bus
当我单击唯一的“注销”按钮时,它只会注销并终止客户端会话。
我在这里缺少什么配置吗?
这是日志..
11/05/19 11:43:32 Xvnc version TightVNC-1.3.10
11/05/19 11:43:32 Copyright (C) 2000-2009 TightVNC Group
11/05/19 11:43:32 Copyright (C) 1999 AT&T Laboratories Cambridge
11/05/19 11:43:32 All Rights Reserved.
11/05/19 11:43:32 See http://www.tightvnc.com/ for information on TightVNC
11/05/19 11:43:32 Desktop name 'X' (scott-Z97-HD3:1)
11/05/19 11:43:32 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
11/05/19 11:43:32 Listening for VNC connections on TCP port 5901
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
No VNC extension on display :1
11/05/19 11:43:40 Got connection from client 192.168.100.102
11/05/19 11:43:40 Using protocol version 3.8
11/05/19 11:43:40 Full-control authentication passed by 192.168.100.102
11/05/19 11:43:40 Pixel format for client 192.168.100.102:
11/05/19 11:43:40 16 bpp, depth 16, little endian
11/05/19 11:43:40 true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0
11/05/19 11:43:40 Using tight encoding for client 192.168.100.102
11/05/19 11:43:40 rfbProcessClientNormalMessage: ignoring unknown encoding 16
11/05/19 11:43:40 rfbProcessClientNormalMessage: ignoring unknown encoding 9
11/05/19 11:43:40 rfbProcessClientNormalMessage: ignoring unknown encoding -65527
11/05/19 11:43:40 Using compression level 3 for client 192.168.100.102
11/05/19 11:43:40 Using image quality level 7 for client 192.168.100.102
11/05/19 11:43:40 Enabling X-style cursor updates for client 192.168.100.102
11/05/19 11:43:40 Enabling cursor position updates for client 192.168.100.102
11/05/19 11:43:40 rfbProcessClientNormalMessage: ignoring unknown encoding -131072
11/05/19 11:43:40 rfbProcessClientNormalMessage: ignoring unknown encoding -223
11/05/19 11:43:40 Enabling LastRect protocol extension for client 192.168.100.102
11/05/19 11:43:40 rfbProcessClientNormalMessage: ignoring unknown encoding -131071
11/05/19 11:43:40 rfbProcessClientNormalMessage: ignoring unknown encoding -131070
11/05/19 11:43:40 rfbProcessClientNormalMessage: ignoring unknown encoding -131069
11/05/19 11:43:40 rfbProcessClientNormalMessage: ignoring unknown encoding -309 Killing Xtightvnc process ID 14
答案1
解决方案1
DBUS_SESSION_BUS_ADDRESS
通过添加以下行来取消设置环境变量~/.vnc/xstartup
:
unset DBUS_SESSION_BUS_ADDRESS
如果这不起作用,您可能遇到了与上述相同的问题这里。将上面的行添加到/etc/sysconfig/desktop
文件中。
解决方案2
可能xinitrc
没有执行权限:
sudo chmod 755 /etc/X11/xinit/xinitrc
解决方案3
显然,它可能chrome-remote-desktop
已安装,这可能会导致问题:
sudo apt-get autoremove chrome-remote-desktop
答案2
尝试这个https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-debian-10
我遇到了类似的问题,并通过备份 xstartup 文件并创建一个新文件来解决:
~/.vnc/xstartup
文件内容
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
sudo chmod +x ~/.vnc/xstartup