TShopping

標題: Ubuntu 安裝遠端桌面VINO (VNC) [打印本頁]

作者: woff    時間: 2024-3-6 18:26
標題: Ubuntu 安裝遠端桌面VINO (VNC)
在Linux用遠端桌面很直覺得就是要用VNC,但目前非常多VNC server,裝了一輪下來遇到的坑還真多最後終於找到最無腦簡單的Vino VNC,以下是在Ubuntu 20.04環境安裝步驟。

先安裝ssh
  1. sudo apt-get install openssh-server
複製代碼


步驟一:在Ubuntu安裝Vino VNC
$ sudo apt install vino


步驟二:設定螢幕分享
登入到Ubuntu桌面後,點選設定的Screen Sharing,如下圖




ubuntu 20.04需關閉加密的連線(需在本機輸入),ubuntu 22.04則不用
  1. gsettings set org.gnome.Vino require-encryption false
複製代碼


ubuntu 20.04需打開防火牆,ubuntu 22.04則不用
  1. sudo ufw allow 5900
複製代碼


預設連接埠號碼為5900

用VNC連線即可

用Netstat查看Vino服務的Port有沒有起來
  1. $ netstat -tlnp | grep vino
複製代碼


開機要預設打開VIONO設置
預設登入使用者就可以了


參考文章
https://cspenpen.blogspot.com/2022/01/ubuntu-vnc.html
https://askubuntu.com/questions/12206/how-do-i-start-the-vnc-server
http://www.tshopping.com.tw/thread-264284-1-1.html






歡迎光臨 TShopping (http://www.tshopping.com.tw/) Powered by Discuz! X3.2