当前位置: 首页 > news >正文

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

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

文章目录

  • 一、网络篇
  • 二、Ubuntu远程联机一段时间后莫名奇妙断开
    • Ubuntu20.04禁用休眠配置
    • 禁用挂起配置
  • 三、refresh界面频繁刷新
  • 四、Authentication is required to create a color profile
  • 参考文章
  • 总结


一、网络篇

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


总结

http://www.lryc.cn/news/483040.html

相关文章:

  • 【电脑】解决DiskGenius调整分区大小时报错“文件使用的簇被标记为空闲或与其它文件有交叉”
  • IDC机房服务器托管的费用组成
  • Halcon深度学习网络模型简介
  • ROM修改进阶教程------安卓14 安卓15去除app签名验证的几种操作步骤 详细图文解析
  • 基于集成Whisper 与 Pepper-GPT改进人机交互体验并实现顺畅通信
  • C++设计模式精选面试题及参考答案
  • Linux下的vim和gdb
  • (蓝桥杯C/C++)——搜索
  • 【网页设计】HTML5 和 CSS3 提高
  • FastGPT部署通义千问Qwen和智谱glm模型|OneAPI配置免费的第三方API
  • https网站 请求http图片报错:net::ERR_SSL_PROTOCOL_ERROR
  • 攻防世界38-FlatScience-CTFWeb
  • 探索 JNI - Rust 与 Java 互调实战
  • 网络安全-Linux基础(bash脚本)
  • Lucene 和 Elasticsearch 中更好的二进制量化 (BBQ)
  • jmeter基础05_第1个http请求
  • C++builder中的人工智能(25):AI中的C++多线程std::thread
  • RestSharp基本使用方法
  • MySQL与Oracle对比及区别
  • NCC前端调用查询弹框
  • 【高中生讲机器学习】25. AdaBoost 算法详解+推导来啦!
  • 第三十七章 Vue之编程式导航及跳转传参
  • vue 版本升级
  • 探索Copier:Python项目模板的革命者
  • 云原生后端深度解析
  • 本地 SSL 证书生成神器,自己创建SSL
  • HCIP-快速生成树RSTP
  • 企业级RAG(检索增强生成)系统构建研究
  • MATLAB基础应用精讲-【数模应用】Google Caffeine算法
  • 第十九届中国国际中小企业博览会将在粤开展