在Debian中配置TigerVNC可参考以下步骤:
sudo apt update和sudo apt install tigervnc-standalone-server tigervnc-common。vncpasswd,按提示输入并确认密码。~/.vnc/xstartup文件,根据桌面环境添加相应内容,如启动GNOME桌面环境可添加exec gnome-session等。也可创建或编辑/etc/systemd/system/vncserver@.service文件,设置用户、显示号、分辨率等参数。vncserver :1,其中:1是显示编号,可根据需要更改。sudo systemctl daemon-reload、sudo systemctl enable vncserver@1.service和sudo systemctl start vncserver@1.service。sudo ufw allow 5901/tcp,其中5901是显示号为1时的默认端口。