Ubuntu的TigerVNC支持远程桌面。安装并配置TigerVNC后,可通过VNC客户端远程连接Ubuntu系统,操作步骤如下:
sudo apt update和sudo apt install tigervnc-standalone-server。vncpasswd命令,按提示输入并确认密码。~/.vnc/xstartup文件,添加启动桌面环境的命令,如#!/bin/sh exec /etc/X11/Xsession ubuntu-xsession(用于GNOME桌面)。chmod +x ~/.vnc/xstartup。vncserver :1(:1对应端口5901,可自定义)。sudo ufw allow 5901/tcp。