没有设置X11Display变量,使用MobaXTerm从命令行安装netbeans



我正试图在suse enterprise上使用moaxterm从命令行安装netbeans。我在创建会话时设置了X11转发。然而,当我尝试运行下载的netbeans脚本时,我仍然会收到以下错误:

No X11 DISPLAY variable was set, but this program performed an operation which requires it.
Exception: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in thread "main"

我尝试过这个解决方案,但没有成功。

更新

我可以通过手动更改sshd_config:来解决这个问题

/etc/ssh/sshd_config

确保您有以下设置:

X11Forwarding yes
X11UseLocalhost no
PermitRootLogin yes

如何连接?

ssh -X susehost之后尝试echo $DISPLAY。根据连接到susehost的位置,X11转发可能不起作用。

最新更新