错误详情
- 本体见【树莓派/入门】64位系统Manjaro-ARM-xfce试用(持续更新)
- 在
Raspberry Pi 4B
上使用manjaro-xfce aarch64
系统 - 使用
tigervnc
的vncserver
创建后连接,直接一片黑,此时未修改任何东西 - 查询一大堆资料后
- 修改
xstartup
为
后#!/bin/sh unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS xrdb $HOME/.Xresources startxfce4 &
连接时显示Fri Mar 13 21:05:46 2020 vncext: VNC extension running! vncext: Listening for VNC connections on all interface(s), port 5901 vncext: created VNC server for screen 0 The XKEYBOARD keymap compiler (xkbcomp) reports: > Internal error: Could not resolve keysym XF86FullScreen Errors from xkbcomp are not fatal to the X server /usr/bin/startxfce4: X server already running on display :1 Fri Mar 13 21:05:53 2020 Connections: accepted: 10.42.0.1::44264 SConnection: Client needs protocol version 3.8 SConnection: Client requests security type VeNCrypt(19) SVeNCrypt: Client requests security type TLSVnc (258) Fri Mar 13 21:06:00 2020 VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888 VNCSConnST: Client pixel format depth 8 (8bpp) bgr233 Fri Mar 13 21:06:43 2020 VNCSConnST: closing 10.42.0.1::44264: Clean disconnection EncodeManager: Framebuffer updates: 69 EncodeManager: Tight: EncodeManager: Solid: 14 rects, 804.537 kpixels EncodeManager: 196 B (1:4105.64 ratio) EncodeManager: Indexed RLE: 77 rects, 1.35396 Mpixels EncodeManager: 15.3564 KiB (1:86.1608 ratio) EncodeManager: Full Colour: 8 rects, 1.44 kpixels EncodeManager: 248 B (1:6.19355 ratio) EncodeManager: Total: 99 rects, 2.15993 Mpixels EncodeManager: 15.79 KiB (1:133.658 ratio) TLS: TLS session wasn't terminated gracefully TcpSocket: unable to get peer name for socket Connections: closed: ::0 ComparingUpdateTracker: 1.763 Mpixels in / 1.3735 Mpixels out ComparingUpdateTracker: (1:1.28358 ratio)
端口是开着的
玄学解决
-
将
xstartup
的内容修改为#!/bin/sh [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & startxfce4 &
再重启服务
sudo systemctl restart vncserver
或者kill掉再重新创建
vncserver -list # 假设结果为:1 vncserver -kill :1 vncserver :1
再连接(终于可以显示,虽然还有中文乱码)
-
2020/10/15补充
评论区大佬的补充,这里