![无法通过 VNC(本地网络)连接到两台不同的 Linux 计算机](https://linux22.com/image/630261/%E6%97%A0%E6%B3%95%E9%80%9A%E8%BF%87%20VNC%EF%BC%88%E6%9C%AC%E5%9C%B0%E7%BD%91%E7%BB%9C%EF%BC%89%E8%BF%9E%E6%8E%A5%E5%88%B0%E4%B8%A4%E5%8F%B0%E4%B8%8D%E5%90%8C%E7%9A%84%20Linux%20%E8%AE%A1%E7%AE%97%E6%9C%BA.png)
我在使用 2 台运行 Xubuntu 的 Linux 计算机连接 Vino VNC 服务器时遇到了问题。
这些计算机基于 ARM 的 ODroid U3 芯片。当两个 ODroid 都在同一网络上时,VNC 会失效,当我关闭其中一个时,我可以连接到另一个,因为 VNC 是这些计算机的主要显示器,所以这一点很重要。
这是 ODroid1(旧 ODroid U3)的 IFConfig
eth0 Link encap:Ethernet HWaddr 1e:f6:d7:be:00:ad
inet addr:192.168.1.62 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::1cf6:d7ff:febe:ad/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3261 errors:0 dropped:0 overruns:0 frame:0
TX packets:3286 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:578475 (578.4 KB) TX bytes:1550098 (1.5 MB)
这是 ODroid2(新 ODroid U3)的 IFConfig
eth0 Link encap:Ethernet HWaddr 1e:f6:d7:be:00:ae
inet addr:192.168.1.64 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::1cf6:d7ff:febe:ae/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:146660 errors:0 dropped:0 overruns:0 frame:0
TX packets:174482 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:104504282 (104.5 MB) TX bytes:112083194 (112.0 MB)
从我的经验来看,如果我打开旧的 ODroid,然后连接新的,我可以重新连接旧的,并花几分钟通过 VNC 连接到两者,但这最终会失败并出现相同的错误...这是我在两个 Odroid 都在线并且我尝试连接新的时通过 VNC 收到的错误:
03/04/2014 01:33:11 AM Pixel format for client tzvi-lap-linux.local:
03/04/2014 01:33:11 AM 16 bpp, depth 16, little endian
03/04/2014 01:33:11 AM true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0
03/04/2014 01:33:11 AM rfbProcessClientNormalMessage: ignoring unknown encoding type -131072
03/04/2014 01:33:11 AM Enabling NewFBSize protocol extension for client tzvi-lap-linux.local
03/04/2014 01:33:11 AM rfbProcessClientNormalMessage: ignoring unknown encoding type -131071
03/04/2014 01:33:11 AM rfbProcessClientNormalMessage: ignoring unknown encoding type -131070
03/04/2014 01:33:11 AM rfbProcessClientNormalMessage: ignoring unknown encoding type -131069
03/04/2014 01:33:11 AM rfbProcessClientNormalMessage: ignoring unknown encoding type -309
03/04/2014 01:33:11 AM Enabling cursor position and shape (rich encoding) updates for client tzvi-lap-linux.local
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
vino-server: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)
odroid@odroid-office:~$
请帮我在同一个网络上通过 VNC 连接两者?
答案1
该问题不会发生在 X11VNC 上,我已在其中一台计算机上切换了 VNC 服务器,问题不再出现。