【Ubuntu20.04】安装XRDP远程桌面服务
安装xrdp
c
sudo apt install xrdp
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp
黑屏解决
修改startwm.sh文件
c
sudo gedit /etc/xrdp/startwm.sh
在test -x /etc/X11/Xsession上一行添加
c
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
保存后退出,重启服务
c
sudo systemctl restart xrdp
反复登录验证问题
首先获取权限
c
su root
##如果是第一次使用先创建密码
sudo passwd
色彩管理设备"color managed device"弹窗
创建文件/etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla
写入内容
c
[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
刷新系统软件源"refresh the system repositories"弹窗
创建文件/etc/polkit-1/localauthority/50-local.d/46-allow-packagekit.pkla
写入内容
c
[Allow Refresh Repository all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=no
ResultInactive=no
ResultActive=yes