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

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

安装xrdp

sudo apt install xrdp
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp

黑屏解决

修改startwm.sh文件

sudo gedit /etc/xrdp/startwm.sh

在test -x /etc/X11/Xsession上一行添加

unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR

保存后退出,重启服务

sudo systemctl restart xrdp

反复登录验证问题

首先获取权限

su root
##如果是第一次使用先创建密码
sudo passwd

色彩管理设备“color managed device”弹窗

创建文件/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

刷新系统软件源“refresh the system repositories”弹窗

创建文件/etc/polkit-1/localauthority/50-local.d/46-allow-packagekit.pkla

写入内容

[Allow Refresh Repository all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=no
ResultInactive=no
ResultActive=yes

相关推荐

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

    2024-06-16 09:22:03       31 阅读
  2. Ubuntu 使用 XRDP 实现远程桌面连接

    2024-06-16 09:22:03       41 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-16 09:22:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-16 09:22:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-16 09:22:03       82 阅读
  4. Python语言-面向对象

    2024-06-16 09:22:03       91 阅读

热门阅读

  1. 【LC刷题】DAY08:151 55 28 459

    2024-06-16 09:22:03       36 阅读
  2. C++中的堆和栈内存定义以及区别

    2024-06-16 09:22:03       29 阅读
  3. 【DPDK学习路径】七、创建RX/TX队列

    2024-06-16 09:22:03       38 阅读
  4. 一网双引擎的定义和优势

    2024-06-16 09:22:03       29 阅读
  5. R 绘图 - 条形图

    2024-06-16 09:22:03       30 阅读
  6. 面试题——Redis

    2024-06-16 09:22:03       29 阅读
  7. RPC协议

    RPC协议

    2024-06-16 09:22:03      38 阅读