ubuntu安装解决xrdp问题记录总结黑屏远程桌面
详解如何在Ubuntu 20.04上安装Xrdp服务器(远程桌面)
解决Ubuntu远程桌面黑屏问题
xrdp远程桌面黑屏处理_ubuntu远程桌面黑屏
重新安装xrdp &所需的包:
$ sudo apt install xrdp
$ sudo apt install xserver-xorg-core
$ sudo apt install xserver-xorg-input-all
$ sudo apt install xorgxrdp
Unable to locate/open config file: "xrdp/xorg.conf"
xrdp unable to open display
sudo apt install xorgxrdp
xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
sudo chowm zengfr /dev/tty2
将xrdp设为开机启动
sudo systemctl enable xrdp
将xrdp用户添加进ssl-cert组,避免出现访问出错的问题
sudo adduser xrdp ssl-cert
sudo vim /etc/xrdp/startwm.sh
#vi /etc/xrdp/startwm.sh
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
/home/zengfr/.xsessionrc
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
sudo systemctl restart xrdp