【Ubuntu20.04】安装XRDP远程桌面服务

【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
相关推荐
潘yi.9 分钟前
ELK1日志分析系统
linux·elk
자신을 변화시키다37 分钟前
磁盘配额管理
linux·运维·服务器·ubuntu·磁盘管理
两斤半1 小时前
Linux配置go环境
linux·golang
国际云,接待1 小时前
AWS S3:云存储的“超级基石”
服务器·网络·人工智能·github·aws·亚马逊
IU宝1 小时前
文件系统1(Linux中)
linux·运维·服务器
小Tomkk1 小时前
Linux 系统设置时区
linux·运维·服务器
yang_xiao_wu_1 小时前
Linux
linux·运维·服务器
星哥说事1 小时前
Rocky Linux 9 系统安装配置图解教程并做简单配置
linux·运维·服务器
法迪1 小时前
linux thermal framework(3)_thermal cooling device
linux·运维·服务器
呆呆的小鳄鱼1 小时前
如何刷新缓冲区(c++、c、linux)
linux·c语言·c++