ubuntu 22.04远程桌面xrdp打开黑屏
安装xrdp
apt install xrdp service xrdp start
安装xrdp以后可以自行选择配置xrdp打开的桌面,有些教程推荐xfce,但在这里仍使用ubuntu-desktop自带的gnome桌面
vim /etc/xrdp/startwm.sh
添加两行unset,完成以后可以尝试重连一下,如果还不行,注释两行test和exec,再添加一行 gnome-session,如下图所示
unset DBUS_SESSION_BUS_ADDRESS # 新增 unset XDG_RUNTIME_DIR # 新增 if test -r /etc/profile; then . /etc/profile fi #test -x /etc/X11/Xsession && exec /etc/X11/Xsession # 注释 #exec /bin/sh /etc/X11/Xsession # 注释 gnome-session # 新增
service xrdp restart
sudo vim /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla
[Allow Colord all Users] Identity=unix-user:* Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile ResultAny=no ResultInactive=no ResultActive=yes
service xrdp restart
本文链接:https://blog.runxinyun.com/post/383.html 转载需授权!
留言0