Linux远程图形化界面出错:MoTTY X11 proxy: Unsupported authorisation protocol
报错如下:
MoTTY X11 proxy: Authorisation not recognised
In case you are trying to start a graphical application with "sudo", read this article in order to avoid this issue:
https://blog.mobatek.net/post/how-to-keep-X11-display-after-su-or-sudo/
qt.qpa.xcb: could not connect to display localhost:10.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.
已放弃
一般来说都是普通用户报错
普通用户报错,root用户不报错的解决方法:
cp /root/.Xauthority /home/ems/
普通用户不报错,root用户报错的解决方法:
cp /home/ems/.Xauthority /root/
还不行?那就把.Xauthority文件删掉,之后新建一个
rm ~/.Xauthority
touch ~/.Xauthority
chmod 600 ~/.Xauthority
sudo systemctl restart display-manager
还不行?
那就重启一下机器