【发布时间】:2019-04-13 12:05:09
【问题描述】:
我正在尝试在 suse enterprise 上使用 mobaxterm 从命令行安装 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"
我尝试了this 解决方案,但没有成功。
更新
我可以通过手动更改 sshd_config 来解决这个问题:
下
/etc/ssh/sshd_config
确保您有以下设置:
X11Forwarding yes
X11UseLocalhost no
PermitRootLogin yes
【问题讨论】:
标签: netbeans installation sh suse x11-forwarding