ubuntu 18.04 使用xrdp

ubuntu 18.04 使用xrdp

1,添加国内镜像(可选项)
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe

2,更新清单(可选项)
sudo apt-get update

3,安装 xrdp、tightvncserver
sudo apt-get install tightvncserver xrdp

4,安装xubuntu-desktop
sudo apt-get install xubuntu-desktop

安装完后,执行以下指令
echo xfce4-session >~/.xsession
将xfce4-session写入到文件.xsession中

修改 /etc/xrdp/startwm.sh 文件
sudo gedit /etc/xrdp/startwm.sh
在. /etc/X11/Xsession 上边添加 xfce4-session

5,重新启动xrdp服务
sudo service xrdp restart


---------------------
作者:寻梦的瓦力
来源:CSDN
原文:https://blog.csdn.net/qq_25556149/article/details/82216190
版权声明:本文为博主原创文章,转载请附上博文链接!

posted on 2019-01-17 10:58  TDM  阅读(2132)  评论(0编辑  收藏  举报

导航