使用 tigervnc 将 ipad 连接到 ubuntu 桌面的问题

使用 tigervnc 将 ipad 连接到 ubuntu 桌面的问题

我已经在 Ubuntu 20.04.4 中安装了 tigervnc,但运行不佳。

我的单元文件如下(我想像服务一样运行):(/etc/systemd/system/vncserver.service -rw-r--r-- 1 root root 309 Mar 17 22:00 vncserver.service)

[Unit]
Description=TightVNC server
After=syslog.target network.target

[Service]
Type=forking
User=root
PAMName=login
PIDFile=/root/.vnc/%H:1.pid
ExecStartPre=-/usr/bin/vncserver -kill :1 > /dev/null 2>&1
ExecStart=/usr/bin/vncserver
ExecStop=/usr/bin/vncserver -kill :1

[Install]
WantedBy=multi-user.target

我运行以下命令:

sudo systemctl daemon-reload

sudo systemctl start vncserver.service
Job for vncserver.service failed because the control process exited with error code.
See "systemctl status vncserver.service" and "journalctl -xe" for details.

当我检查时,出现以下消息:

sudo systemctl status vncserver.service

● vncserver.service - TightVNC server
     Loaded: loaded (/etc/systemd/system/vncserver.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2022-03-18 08:54:17 UTC; 2min 7s ago
    Process: 40993 ExecStartPre=/usr/bin/vncserver -kill :1 > /dev/null 2>&1 (code=exited, status=0/SUCCESS)
    Process: 40999 ExecStart=/usr/bin/vncserver (code=exited, status=255/EXCEPTION)

Mar 18 08:54:17 ubuntu vncserver[41110]:  vncext:      Listening for VNC connections on local interface(s), port 5901
Mar 18 08:54:17 ubuntu vncserver[41110]:  vncext:      created VNC server for screen 0
Mar 18 08:54:17 ubuntu vncserver[41110]: X connection to :1 broken (explicit kill or server shutdown).
Mar 18 08:54:17 ubuntu vncserver[41110]: Fri Mar 18 08:54:16 2022
Mar 18 08:54:17 ubuntu vncserver[41110]:  ComparingUpdateTracker: 0 pixels in / 0 pixels out
Mar 18 08:54:17 ubuntu vncserver[41110]:  ComparingUpdateTracker: (1:-nan ratio)
Mar 18 08:54:17 ubuntu vncserver[41110]: Killing Xtigervnc process ID 41008... which seems to be deadlocked. Using SIGKILL!
Mar 18 08:54:17 ubuntu systemd[1]: vncserver.service: Control process exited, code=exited, status=255/EXCEPTION
Mar 18 08:54:17 ubuntu systemd[1]: vncserver.service: Failed with result 'exit-code'.
Mar 18 08:54:17 ubuntu systemd[1]: Failed to start TightVNC server.

我尝试使用 VNC Viewer 应用程序(从 iPad)访问,但出现以下错误消息:

VNC 查看器

错误信息

提前致谢!

相关内容