![使用 tigervnc 将 ipad 连接到 ubuntu 桌面的问题](https://linux22.com/image/945450/%E4%BD%BF%E7%94%A8%20tigervnc%20%E5%B0%86%20ipad%20%E8%BF%9E%E6%8E%A5%E5%88%B0%20ubuntu%20%E6%A1%8C%E9%9D%A2%E7%9A%84%E9%97%AE%E9%A2%98.png)
我已经在 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)访问,但出现以下错误消息:
提前致谢!