一开始,我是根据这个教程进行操作的,改了设置为共享,安装xrdp等,一切都完成后,当进行连接时,也会出现那个xrdp连接界面,但只要一登陆,界面就一闪而过,然后就没有了然后。很郁闷,啥错误也不提示,就是连不上。后面就改用VNC了。
1、在ubuntu端安装VNC server,下载,注册一个账户,下载时注意版本的选择。
apt-get update && apt-get -f -y install
curl -O https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.4.1-Linux-x64.deb
dpkg -i VNC-Server-6.4.1-Linux-x64.deb
systemctl start vncserver-x11-serviced && systemctl enable vncserver-x11-serviced
#我是下载的安装包,手动装的
#然后登录账户
vnclicensewiz
正确安装,并启动后,桌面右上角会有VNC的图样。
2、在window端安装VNC viewer,登陆,连接
详情见:https://dev.idoseek.com/vncview-remote-desktop-to-ubuntu/
问题:如果连接时出现下列错误
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
解决方法:关闭encryption
在Ubuntu先安装系统配置图形软件dconf-editor。
sudo apt-get install dconf-editor
在应用程序列表找到dconf:
通过dconf去掉系统默认的“requlre-encryption”(路径:org > gnome > desktop > remote-access)
参考:https://dev.idoseek.com/vncview-remote-desktop-to-ubuntu/