在Linux用遠端桌面很直覺得就是要用VNC,但目前非常多VNC server,裝了一輪下來遇到的坑還真多最後終於找到最無腦簡單的Vino VNC,以下是在Ubuntu 20.04環境安裝步驟。
步驟一:在Ubuntu安裝Vino VNC
$ sudo apt install vino
步驟二:設定螢幕分享
登入到Ubuntu桌面後,點選設定的Screen Sharing,如下圖
進去後如下圖,主要是左上角的按鈕要打開,其他設定就看自己偏好。
輸入IP後按Enter就可以連線,不用做特別設定。
步驟五:連線出現Unable to connect to VNC Server using your chosen security setting. Either upgrade VNC Server to a more recent version from RealVNC, or select a weaker level of encryption錯誤訊息
如果出現下面錯誤訊息,那還需要加一個設定。
Unable to connect to VNC Server using your chosen security setting. Either upgrade VNC Server to a more recent version from RealVNC, or select a weaker level of encryption.
將加密關掉,要在桌面的Terminal輸入下面指令後,重新連線應該就成功了。
$ sudo gsettings set org.gnome.Vino require-encryption false
或是不用在桌面下直接在ssh中輸入
$ sudo dbus-launch gsettings set org.gnome.Vino require-encryption false
步驟六:連入後遇到黑螢幕Black screen
輸入下方指令
$ sudo dbus-launch gsettings set org.gnome.Vino prompt-enabled false
步驟六:簡單Debug
用Netstat查看Vino服務的Port有沒有起來
$ netstat -tlnp | grep vino (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 4999/vino-server tcp6 0 0 :::5900 :::* LISTEN 4999/vino-server
沒有留言:
張貼留言