当前位置:网站首页>Error Putty X11 proxy: Authorisation not recognised
Error Putty X11 proxy: Authorisation not recognised
2022-04-22 05:46:00 【xkxsxkx】
original text
The original text is written by myself python Script myscript when , There was this mistake
sudo python myscript.py
This error occurred when I was running my own running program , But the solution is consistent
If you are using linux when , Encountered the following error
Putty X11 proxy: Authorisation not recognised
(Imagen Combinada:3642) : Gtk-Warning **: cannot open display: localhost:10.0
resolvent
1. Method 1
sudo -E python myscript.py
Add -E Load after root In the user environment ~/.Xauthority
However, this method has certain security risks and is not recommended
2. Method 2
pi@RPi-Dev:~$ xauth list
RPi-Dev/unix:10 MIT-MAGIC-COOKIE-1 5cxxxxxxxxxxxxxxxxxxxxxxxxxxx3d3
pi@RPi-Dev:~$ sudo -s
root@RPi-Dev:/home/pi# xauth add RPi-Dev/unix:10 MIT-MAGIC-COOKIE-1 5c5cxxxxxxxxxxxxxxxxxxxxxxxxxxxd3
First use xauth list List all forwarding ports
Switch to a root user
Reuse xauth add Add the required ports
Because the error reported above is localhost:10.0, So what's added here is RPi-Dev/unix:10
Gtk-Warning **: cannot open display: localhost:10.0
After adding, you can not add -E The direct operation succeeded
版权声明
本文为[xkxsxkx]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220535349483.html
边栏推荐
猜你喜欢
随机推荐
LeetCode 589. N 叉树的前序遍历
3.连续整数Consecutive Integer
opencv 使用 forEach 像素遍历(pixel 和 const int* position参数都有介绍)
Strong connected component of "tarjan" digraph
最长上升子序列(lis)
Force buckle 19 Delete the penultimate node of the linked list
Data mining -- data preprocessing
AcWing 836. 合并集合(并查集)
使用高德地图API进行坐标转换:WGS84→GCJ02
torch 循环神经网络torch.nn.RNN()和 torch.nn.RNNCell()
通过设置关联菜单建立excel记账本
数据挖掘——聚类
九宫幻方-第八届蓝桥省赛-C组(DFS和对比所有幻方种类)
可重入锁卖票示例
stl alloc 空间分配器 代码解析
导弹拦截问题(dp,dilworth定理)
mysql建表最佳实践
数据挖掘——认识数据
《PyTorch深度学习实践》Lecture_10 卷积神经网络基础 CNN
Read write separation of MYCAT









