TigerVNC 是開源免費的 VNC 客戶端/伺服端套件,支援 Windows 連線 Linux 圖形化桌面。本文涵蓋 Windows 客戶端安裝、Linux 伺服端部署(含 systemd 服務設定)、防火牆規則、連線驗證全流程。
tigervnc-2.30.exe(或最新版)。D:\Program Files\TigerVNC),保持預設元件勾選,完成安裝。









# 1. 安裝套件
yum install -y tigervnc tigervnc-server
# 2. 設定 VNC 密碼(將建立 ~/.vnc/passwd)
vncserver
# 3. 編輯服務設定
vim /etc/sysconfig/vncservers
# 取消最後兩行註解並修改為:
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1280x800 -depth 24"
# 4. 重啟服務並設定開機自啟
systemctl daemon-reload
systemctl restart vncserver@:1.service
systemctl enable vncserver@:1.service

setenforce 0 並修改 /etc/selinux/config 設 SELINUX=disabled(需重啟)。firewall-cmd --permanent --add-port=5901/tcp && firewall-cmd --reloadvncviewer.exe(安裝目錄下)。Linux伺服器IP:1(對應 display :1)。

完成部署後,即可在 Windows 上流暢操作 Linux 圖形介面,適合伺服器維護、圖形化應用遠端執行等場景。