【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
相关推荐
IP管家7 分钟前
企业级IP代理解决方案:负载均衡与API接口集成实践
服务器·网络·数据库·网络协议·tcp/ip·容器·负载均衡
YOYO--小天11 分钟前
4G和5G模块的使用
linux·嵌入式硬件·5g
愚润求学13 分钟前
【Linux】进程间通信(一):认识管道
linux·运维·服务器·开发语言·c++·笔记
持之以恒的天秤28 分钟前
多线程与线程互斥
linux
专注VB编程开发20年31 分钟前
asp.net IHttpHandler 对分块传输编码的支持,IIs web服务器后端技术
服务器·前端·asp.net
光不度AoKaNa36 分钟前
计算机操作系统概要
linux·运维·服务器
Clownseven41 分钟前
[IP地址科普] 服务器公网IP、私网IP、弹性IP是什么?区别与应用场景详解
服务器·网络协议·tcp/ip
晚秋大魔王41 分钟前
OpenHarmony 开源鸿蒙南向开发——linux下使用make交叉编译第三方库——wget
java·linux·运维·开发语言·华为·harmonyos
Zenexus1 小时前
Linux系统启动相关:vmlinux、vmlinuz、zImage,和initrd 、 initramfs,以及SystemV 和 SystemD
linux
孤的心了不冷1 小时前
【Linux】Linux安装并配置MongoDB
linux·运维·mongodb·容器