在Debian上迁移TigerVNC服务可按以下步骤操作:
~/.vnc目录下的xstartup等文件)。sudo systemctl stop vncserver@:*.service
sudo apt remove --purge tigervnc-standalone-server tigervnc-common
sudo apt update
sudo apt install tigervnc-standalone-server tigervnc-common
~/.vnc,直接复制到新版本对应路径(默认仍为~/.vnc)。/root/.vnc迁移到~/.config/tigervnc),手动移动文件并修改服务文件中的路径。/etc/systemd/system/vncserver@:1.service(若存在),更新ExecStart等参数以适配新版本需求。sudo systemctl daemon-reload
sudo systemctl restart vncserver@:1.service
sudo systemctl enable vncserver@:1.service
使用VNC客户端连接测试(IP:端口,如192.168.1.100:5901)。sudo ufw allow 5901
注意:若从旧版本(如vnc4server)迁移,需确认配置兼容性,部分旧配置可能需要手动调整。