摘要:
写着这篇文章源于,之前总是用teamview进行wondow远程ubuntu,带来很多不稳定,账号失效等等一些问题,所以寻找一个比较好用的方式,就出现这篇文章。记录的原因也在于自己遇到了一些坑。
一、ubuntu18.04系统
1.安装xrdp,并配置环境
sudo apt install xrdp
sudo gedit /etc/xrdp/startwm.sh # 配置环境
把最下面的test和exec两行注释掉,添加一行 gnome-session
2.安装cconf-editor,并 dconf-editor配置
sudo apt-get install dconf-editor
# dconf-editor配置
dconf write /org/gnome/desktop/remote-access/require-encryption false
3. 重启屏幕共享
settings-> Sharing->Screen Sharing,设置:
4.以防wondows远程连接出现蓝屏
http://www.c-nergy.be/downloads/install-xrdp-3.0.zip
cd downloads
unzip install-xrdp-3.0.zip
chmod 777 Install-xrdp-3.0.sh
./Install-xrdp-3.0.sh
界面如下,说明安装成功
二、windows远程桌面连接
1. windows打开远程桌面输入ubuntu主机ip或者主机名
在开始菜单搜素“远程”,弹出一下界面,选有“远程桌面连接”
2. 选择xorg,输入用户名密码
usename:输入ubuntu的用户名;password:密码,最后选择ok,
便可以进入ubuntu系统界面,界面如下:
如果出现蓝屏,进入不了之上界面,到ubuntu系统操作如下:
http://www.c-nergy.be/downloads/install-xrdp-3.0.zip
cd downloads
unzip install-xrdp-3.0.zip
chmod 777 Install-xrdp-3.0.sh
./Install-xrdp-3.0.sh
再次在wondows系统上远程连接ubuntu桌面,应该就没有问题了