在Debian上集成TigerVNC与其他服务,可参考以下步骤:
sudo apt install tigervnc-standalone-server tigervnc-common安装。vncpasswd命令,按提示输入并确认密码。~/.vnc/xstartup文件,添加启动桌面环境的命令,如startxfce4 &,并赋予文件执行权限。vncserver :1,也可将其设置为系统服务,创建/etc/systemd/system/vncserver@:1.service文件,配置相关参数后,运行sudo systemctl daemon - reload、sudo systemctl enable vncserver@:1.service和sudo systemctl start vncserver@:1.service。sudo ufw allow 5901/tcp开放VNC默认端口。ssh -L 5901:localhost:5901 user@server_ip命令,然后在VNC客户端中连接localhost:1。