以下是在Debian中实现TigerVNC远程控制的步骤:
sudo apt update
和sudo apt install tigervnc-standalone-server tigervnc-common
。vncpasswd
,按提示输入并确认密码。~/.vnc/xstartup
文件来指定桌面环境,如启动GNOME桌面,还需创建Systemd服务文件/etc/systemd/system/vncserver@.service
进行管理,设置用户、显示编号、分辨率等参数。sudo systemctl daemon - reload
、sudo systemctl start vncserver@:1.service
和sudo systemctl enable vncserver@:1.service
命令启动并设置开机自启。sudo ufw allow 5901/tcp
。