以下是利用Debian上的TigerVNC進行遠程桌面管理的步驟:
sudo apt update
和sudo apt install tigervnc-standalone-server tigervnc-common
。vncpasswd
設置密碼,然后創建或編輯~/.vnc/xstartup
文件,添加啟動桌面環境的命令,如#!/bin/sh exec startxfce4
,并賦予執行權限chmod +x ~/.vnc/xstartup
。/etc/systemd/system/vncserver@.service
文件,添加相關配置內容,替換<USER>
為實際用戶名,然后執行sudo systemctl daemon-reload
、sudo systemctl enable vncserver@1.service
和sudo systemctl start vncserver@1.service
。sudo ufw allow 5901/tcp
開放端口。