【踩坑】修复xrdp无法关闭Authentication Required验证窗口

转载请注明出处:小锋学长生活大爆炸[xfxuezhang.cn]

问题如下,时不时出现,有时还怎么都关不掉,很烦:

**解决方法一:**命令行输入

bash 复制代码
dbus-send --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:"global.reexec_self()"

**解决方法二:**命令行输入

bash 复制代码
killall -3 gnome-shell

解决方法三:彻底关闭验证窗口

编辑文件1:

bash 复制代码
sudo vim /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla

写入内容:

bash 复制代码
[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

编辑文件2:

bash 复制代码
sudo vim /etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla

写入内容:

bash 复制代码
[Allow Package Management all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=yes
ResultInactive=yes
ResultActive=yes

重新连接xrdp远程桌面即可。

相关推荐
川石课堂软件测试1 天前
Oracle 数据库如何查询列
linux·数据库·sql·功能测试·oracle·grafana·prometheus
光电的一只菜鸡1 天前
ubuntu之坑(十九)——VMware虚拟机扩容磁盘
linux·数据库·ubuntu
岚天start1 天前
网络计算工具ipcalc详解
linux·运维·网络·网关·广播地址·掩码·ipcalc
deeper_wind1 天前
Jenkins主机中安装ansible部署lnmp论坛(小白的”升级打怪“成长之路)
linux·ansible·jenkins
格林威1 天前
Linux使用-Linux系统管理
linux·运维·服务器·深度学习·ubuntu·计算机视觉
weixin_410413211 天前
Linux 无源码应用行为分析方法
linux·服务器·tomcat
网硕互联的小客服1 天前
如何配置安全的 SFTP 服务器?
运维·服务器·安全
柯南二号1 天前
【后端】Docker 常用命令详解
服务器·nginx·docker·容器
AI小小怪1 天前
在linux下使用MySQL常用的命令集合
linux·数据库·mysql·oracle
Gss7771 天前
Ansible 项目管理核心要点总结
linux·运维·ansible