Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Linux Mint 17 Cinnamon 桌面共享設定:dconf-editor 啟用 Vino VNC 伺服器

編輯:關於 Linux

Linux Mint 17 Cinnamon 預設隱藏「桌面共享」選單,無法直接圖形化設定 vino-server。本文說明透過 dconf-editor 啟用桌面遠端存取、設定 VNC 密碼驗證、通知與提示權限等選項,並提供指令列快速啟用指令。

問題背景

  • Mint 17 Cinnamon 移除「桌面共享」選單項目。
  • vino-preferences 圖形工具不再預裝。
  • 但 vino-server 仍內建,可透過 dconf/gsettings 設定。

方法一:dconf-editor 圖形化設定

  1. 安裝:sudo apt-get install dconf-editor
  2. 啟動:dconf-editor
  3. 導航:org → gnome → desktop → remote-access
  4. 關鍵設定:
鍵值建議值說明
enabledtrue啟用桌面遠端存取 (核心開關)
authentication-methods['vnc']使用 VNC 密碼驗證
vnc-password'cGFzc3dvcmQ='密碼 Base64 編碼 (例: "password" → "cGFzc3dvcmQ=")
notify-on-connecttrue收到連線請求顯示桌面通知
prompt-enabledtrue遠端存取需桌面擁有者允許
view-onlyfalse允許遠端控制 (非唯讀)
lock-on-disconnecttrue斷線自動鎖定螢幕
icon-visibility'client'面板顯示狀態圖示

密碼 Base64 編碼快速取得


echo -n 'your_password' | base64
# 輸出填入 vnc-password (含單引號)

方法二:gsettings 指令列快速啟用


# 啟用服務
gsettings set org.gnome.Vino enabled true

# 設定 VNC 密碼
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password "$(echo -n 'your_password' | base64)"

# 其它選項
gsettings set org.gnome.Vino notify-on-connect true
gsettings set org.gnome.Vino prompt-enabled true
gsettings set org.gnome.Vino view-only false

疑難排解


# 啟動 vino-server 時報錯:
# (vino-server:4280): WARNING **: The desktop sharing service is not enabled, so it should not be run.
# 解決:確認 enabled=true (上述方法已處理)

# 連線失敗檢查:
# 1. 防火牆開放 5900 埠
sudo ufw allow 5900/tcp
# 2. 確認 vino-server 進程運行
ps aux | grep vino
# 3. VNC Viewer 連線測試
vncviewer localhost:5900

安全建議

  • **必須設定強密碼**,預設無密碼極度危險。
  • 啟用 prompt-enabled 要求本端確認,降低未授權存取風險。
  • 僅在信任區域網路使用,公網環境請透過 SSH Tunnel 轉發 5900 埠。
  • 考慮改用 x11vnc 或 tigervnc 獲得更穩定效能與加密支援。

dconf-editor remote-access 設定畫面

Copyright © Windows教程網 All Rights Reserved