xterm 显示未设置

xterm 显示未设置

当我跑步时:

xterm

显示以下文本:

Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can't open display: %s
xterm: DISPLAY is not set`

我不知道问题出在哪里。你能帮忙解决这个问题吗?

答案1

您没有xterm在 GUI 下运行。GUI(X Window 系统、Wayland 等)将DISPLAY环境变量设置为指向活动显示。在DISPLAY未设置的文本终端中,没有 GUI,因此xterm无法工作。

相关内容