【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
相关推荐
likfishdn17 分钟前
Linux的文件与目录管理
linux·运维·服务器
渲染101专业云渲染19 分钟前
川翔云电脑优势总结
服务器·3d·电脑·blender·maya
chian-ocean37 分钟前
Linux 文件缓冲区:高效数据访问的幕后推手
linux·运维·服务器
加油=^_^=38 分钟前
【Linux】进程优先级 | 进程调度(三)
linux·运维·服务器
若云止水1 小时前
Ubuntu 下 nginx-1.24.0 源码分析 - ngx_init_cycle 函数 - 详解(4)
数据库·nginx·ubuntu
橘子味的茶二1 小时前
高级系统架构师--第十章:计算机网络
服务器·计算机网络·系统架构
吃汤圆的抹香鲸1 小时前
GoLand 安装包 绿色版 Win,Mac,Linux 包含IntelliJ全家桶 专为Go语言设计的集成开发环境(IDE)
linux·windows·macos·go·intellij-idea·go1.19
紫菜(Nori)1 小时前
短连接服务器压测-wrk
服务器·压力测试
追寻光1 小时前
Cannot find a valid baseurl for repo: base/7/x86_64
linux
元气满满的热码式1 小时前
Docker数据卷操作实战
linux·运维·docker·云原生·容器