Ubuntu18.04使用xrdp xfce4桌面/Microsoft Remote Desktop远程桌面

511 阅读1分钟

安装xrdp

sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04
sudo apt-get update 
sudo apt-get install xrdp xorg  
sudo adduser xrdp ssl-cert 

重启配置ubunut桌面xfce4(gnome为默认桌面,xfce4为蓝色的小老鼠轻量级,我这里用gnome黑屏无法使用)

sudo reboot  
sudo apt-get install xfce4  
echo xfce4-session > ~/.xsession
sudo systemctl enable xrdp  
sudo service xrdp restart  

sudo sh -c 'cat /dev/null > /etc/xrdp/startwm.sh'最后一行不记得是否用了

Edit the file -> /etc/xrdp/startwm.sh
sudo vi /etc/xrdp/startwm.sh

Only the following code should be in there (notice a new line after startxfce4 and the 2 tildas):

#!/bin/sh
if [ -r /etc/default/locale ]; then
  . /etc/default/locale
  export LANG LANGUAGE
fi

startxfce4

~
~

Restart xrdp -> sudo service xrdp restart
Allow port thru firewall -> sudo ufw allow 3389
Thanks a lot for all your help you guys!!

mac可用xrdp的客户端

在mac上安装微软远程桌面

到这里桌面会是蓝色,但是可以用

image.png

除了如下方式安装xrdp还有个脚本可以使用 c-nergy.be/blog/?p=179…

下面的帖子包含桌面优化使用gnome,但我优化完了黑屏了。 zhuanlan.zhihu.com/p/519648451

这个帖子是体验画面卡顿优化,我这里有一定效果。 blog.csdn.net/wu_weijie/a…


github.com/neutrinolab…