【Xrdp联机Ubuntu20.04实用知识点补充】

简单归纳了Xrdp远程连接可能会出现的问题

文章目录


一、网络篇

ip addr show

eth0接口的IP地址

直接显示IP

hostname -I

ifconfig(Ubuntu使用该命令需要配置)

hostname查询主机名称(window&ubuntu通用)

Ubuntu20.04截图快捷键(24版本按PS键即可)

CTRL+SHIFT+PS自由选区截图

PS全屏截图

二、Ubuntu远程联机一段时间后莫名奇妙断开

Ubuntu20.04禁用休眠配置

创建如下配置文件

sudo touch /etc/polkit-1/localauthority/90-mandatory.d/disable-hibernate.pkla

sudo vim /etc/polkit-1/localauthority/90-mandatory.d/disable-hibernate.pkla

添加如下配置

Disable hibernate (upower)

Identity=unix-user:*

Action=org.freedesktop.upower.hibernate

ResultActive=no

ResultInactive=no

ResultAny=no

Disable hibernate (logind)

Identity=unix-user:*

Action=org.freedesktop.login1.hibernate

ResultActive=no

Disable hibernate for all sessions (logind)

Identity=unix-user:*

Action=org.freedesktop.login1.hibernate-multiple-sessions

ResultActive=no

禁用挂起配置

sudo touch /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend.pkla

sudo vim /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend.pkla

Disable suspend (upower)

Identity=unix-user:*

Action=org.freedesktop.upower.suspend

ResultActive=no

ResultInactive=no

ResultAny=no

Disable suspend (logind)

Identity=unix-user:*

Action=org.freedesktop.login1.suspend

ResultActive=no

Disable suspend for all sessions (logind)

Identity=unix-user:*

Action=org.freedesktop.login1.suspend-multiple-sessions

ResultActive=no

重启

sudo reboot

三、refresh界面频繁刷新

解决"刷新系统软件源需要认证" / "refresh the system repositories" 弹窗

创建文件 /etc/polkit-1/localauthority/50-local.d/46-allow-packagekit.pkla 并写入内容:(sudo vim)

sudo vim /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

四、Authentication is required to create a color profile

创建一个配置文件

sudo vim /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

按键:wq退出

参考文章

https://blog.csdn.net/qq_38329811/article/details/121142402


总结

相关推荐
下一页盛夏花开9 小时前
ubuntu 20中安装QT以后出现红色空心断点
linux·运维·ubuntu
拾贰_C14 小时前
【OpenClaw | openai | QQ】 配置QQ qot机器人
运维·人工智能·ubuntu·面试·prompt
郝亚军15 小时前
ubuntu 22.04如何安装libmodbus
运维·服务器·ubuntu
乌恩大侠15 小时前
【AI-RAN】在空ubuntu服务器安装环境和生成TV,高达430G文件
服务器·人工智能·ubuntu·fpga开发·o-ru
Hello.Reader16 小时前
Ubuntu 上正确安装 Kali 虚拟机、Docker 与 kail 工具指南
linux·ubuntu·docker
一袋米扛几楼9816 小时前
【报错问题】解决 Vercel 部署报错:Express 类型失效与 TypeScript 2349/2339/2769 错误排查
ubuntu·typescript·express
MIXLLRED17 小时前
Ubuntu22.04 + ROS2 Humble + RealSense D435i 部署VINS-Fusion视觉惯性SLAM
ubuntu·slam·d435i·ros2·humble·vins
Gary Studio18 小时前
ubuntu 16.04一键换源
linux·运维·ubuntu
拾贰_C19 小时前
【node.js | Ubuntu | update】如何升级旧的nodejs本版至最新;如何升级npm
ubuntu·npm·node.js
有谁看见我的剑了?20 小时前
ubuntu 22.04 /etc/fstab 文件修改有误导致无法进入系统处理
linux·运维·ubuntu