我正试图在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转发可能不起作用。