[GH-ISSUE #2869] X11无法正常使用 #1883

Closed
opened 2026-02-27 00:05:12 +03:00 by kerem · 8 comments
Owner

Originally created by @helloworld288 on GitHub (Jun 30, 2023).
Original GitHub issue: https://github.com/electerm/electerm/issues/2869

electerm-1.26.2-win-x64-installer.exe

windows 11

已经下载了xming,并且在其他软件比如putty上可以运行良好。

在electerm上设置启动X11后,每次登录都会报错:
/usr/bin/xauth: file /home/username/.Xauthority does not exist
/usr/bin/xauth: (stdin):2: bad "add" command line

并且在服务器节点切换过程中,使用srun -x11时,会报告:
srun: error: x11_get_xauth: Could not retrieve magic cookie. Cannot use X11 forwarding.

并不确定这个问题是否是软件的问题,但还是希望能够得到解决,这对经常画图的科研狗会起到很大帮助。泪目~拜托啦~~~

Originally created by @helloworld288 on GitHub (Jun 30, 2023). Original GitHub issue: https://github.com/electerm/electerm/issues/2869 electerm-1.26.2-win-x64-installer.exe windows 11 已经下载了xming,并且在其他软件比如putty上可以运行良好。 在electerm上设置启动X11后,每次登录都会报错: /usr/bin/xauth: file /home/username/.Xauthority does not exist /usr/bin/xauth: (stdin):2: bad "add" command line 并且在服务器节点切换过程中,使用srun -x11时,会报告: srun: error: x11_get_xauth: Could not retrieve magic cookie. Cannot use X11 forwarding. 并不确定这个问题是否是软件的问题,但还是希望能够得到解决,这对经常画图的科研狗会起到很大帮助。泪目~拜托啦~~~
kerem closed this issue 2026-02-27 00:05:12 +03:00
Author
Owner

@zxdong262 commented on GitHub (Jun 30, 2023):

之前的测试,打开 Mobaxterm's x11 窗口才可以

<!-- gh-comment-id:1614434256 --> @zxdong262 commented on GitHub (Jun 30, 2023): 之前的测试,打开 Mobaxterm's x11 窗口才可以
Author
Owner

@helloworld288 commented on GitHub (Jul 1, 2023):

具体是什么原因呀?因为如果这样的话,我要是图方便就直接用Mobaxterm了。(没别的意思哈,就是想让electerm功能更完善)

<!-- gh-comment-id:1615359191 --> @helloworld288 commented on GitHub (Jul 1, 2023): > 具体是什么原因呀?因为如果这样的话,我要是图方便就直接用Mobaxterm了。(没别的意思哈,就是想让electerm功能更完善)
Author
Owner

@zxdong262 commented on GitHub (Jul 1, 2023):

具体是什么原因呀?因为如果这样的话,我要是图方便就直接用Mobaxterm了。(没别的意思哈,就是想让electerm功能更完善)

几年前我挨个验证的,也许现在不同了,有空我试试看是不是有其他的选项。

<!-- gh-comment-id:1615402607 --> @zxdong262 commented on GitHub (Jul 1, 2023): > > > > 具体是什么原因呀?因为如果这样的话,我要是图方便就直接用Mobaxterm了。(没别的意思哈,就是想让electerm功能更完善) 几年前我挨个验证的,也许现在不同了,有空我试试看是不是有其他的选项。
Author
Owner

@helloworld288 commented on GitHub (Jul 1, 2023):

谢谢,麻烦您了

<!-- gh-comment-id:1615404982 --> @helloworld288 commented on GitHub (Jul 1, 2023): 谢谢,麻烦您了
Author
Owner

@xiekunwhy commented on GitHub (Jul 1, 2023):

xming好像也连接不了,有什么办法可以直接打开服务器上的png或者html吗(xshell可以分别使用display和Firefox查看)?

image

<!-- gh-comment-id:1615660703 --> @xiekunwhy commented on GitHub (Jul 1, 2023): xming好像也连接不了,有什么办法可以直接打开服务器上的png或者html吗(xshell可以分别使用display和Firefox查看)? ![image](https://github.com/electerm/electerm/assets/17738229/7ebf1753-8cc6-42ef-b7fe-75e6909f28bf)
Author
Owner

@xiekunwhy commented on GitHub (Jul 1, 2023):

可以了,在连接的设置里打开x11
image

<!-- gh-comment-id:1615676597 --> @xiekunwhy commented on GitHub (Jul 1, 2023): 可以了,在连接的设置里打开x11 ![image](https://github.com/electerm/electerm/assets/17738229/83323628-eaa3-41ab-a98f-b8d70a381636)
Author
Owner

@zxdong262 commented on GitHub (Jul 1, 2023):

xming好像也连接不了,有什么办法可以直接打开服务器上的png或者html吗(xshell可以分别使用display和Firefox查看)?

image

你用xming连接成功的吗?

<!-- gh-comment-id:1615794482 --> @zxdong262 commented on GitHub (Jul 1, 2023): > xming好像也连接不了,有什么办法可以直接打开服务器上的png或者html吗(xshell可以分别使用display和Firefox查看)? > > ![image](https://user-images.githubusercontent.com/17738229/250259137-7ebf1753-8cc6-42ef-b7fe-75e6909f28bf.png) 你用xming连接成功的吗?
Author
Owner

@xiekunwhy commented on GitHub (Jul 1, 2023):

是的,xming连接的,在书签里对具体的连接打开x11,然后运行xming就可以了

<!-- gh-comment-id:1615831545 --> @xiekunwhy commented on GitHub (Jul 1, 2023): > 是的,xming连接的,在书签里对具体的连接打开x11,然后运行xming就可以了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1883
No description provided.