Windows远程ubuntu18.04

参考原文:https://blog.****.net/qq_24815615/article/details/106752748

1. sudo apt install xrdp

2. sudo vim /etc/xrdp/startwm.sh 

把最下面的test和exec两行注释掉,添加一行

gnome-session

Windows远程ubuntu18.04

3. sudo apt-get install dconf-editor

4. dconf write /org/gnome/desktop/remote-access/require-encryption false

5. 启用屏幕共享

settings->Share->Screen Sharing

Windows远程ubuntu18.04

6. 重启ubuntu机器

7. windows远程桌面连接

Windows远程ubuntu18.04

Windows远程ubuntu18.04

【注】使用这种方法每次重启ubuntu机器后需要先在机器上登录一下,然后才能远程。解决方法可以将用户设置为自动登录,即机器重启后自动免密登录桌面,创建远程连接的session

sudo vi /etc/gdm3/custom.conf
Windows远程ubuntu18.04

 

另一种使用x11vnc的方法参考:https://blog.****.net/han609768249/article/details/78759590/