startx需要安装xterm吗

发布于 2024-11-02 16:31:58 字数 3309 浏览 1 评论 0原文

我正在链接到远程 Linux 机器。我希望能够使用 GUI 查看该计算机上的文件/目录。我运行 xming、ssh 和 putty。然后我尝试启动 Windows 管理器。输出如下。

这里发生了什么,看起来 xterm 不可用。但我可以运行 emacs,所以一定有一些窗口管理器存在。我可以用它代替吗?

运行 startx --help

[root@foo ~]# startx --help
xauth:  creating new authority file /root/.serverauth.6094


X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-194.11.1.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux ten2 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64
Build Date: 01 September 2010
Build ID: xorg-x11-server 1.1.1-48.76.el5_5.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 20 18:57:05 2011
(==) Using config file: "/etc/X11/xorg.conf"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <I5F>
>                   Using XF86Sleep, ignoring XF86Standby
> Warning:          Symbol map for key <I5F> redefined
>                   Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server
xinit:  No such file or directory (errno 2):  no program named "xterm" in PATH

Specify a program on the command line or make sure that /usr/bin
is in your path.


waiting for X server to shut down FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.

运行不带帮助标志的 startx 会导致不同的错误消息。这是为什么呢?

运行startx

[root@foo ~]# startx
xauth:  creating new authority file /root/.serverauth.5375


X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-194.11.1.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux foo 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64
Build Date: 01 September 2010
Build ID: xorg-x11-server 1.1.1-48.76.el5_5.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 20 18:39:23 2011
(==) Using config file: "/etc/X11/xorg.conf"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <I5F>
>                   Using XF86Sleep, ignoring XF86Standby
> Warning:          Symbol map for key <I5F> redefined
>                   Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server
localuser:root being added to access control list
No profile for user 'root' found

waiting for X server to shut down FreeFontPath: FPE "unix/:7100" refcount is 2, should    be 1; fixing.

Im linking to a remote linux machine. I want to be able to view the files/ directories on this machine using a GUI. I run xming and ssh and putty.I then stried to start the windows manager. THe output is below.

What is happening here, it seems xterm is not available. But I can run emacs so there must be some windows manager present. Can I use that instead?

Running startx --help

[root@foo ~]# startx --help
xauth:  creating new authority file /root/.serverauth.6094


X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-194.11.1.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux ten2 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64
Build Date: 01 September 2010
Build ID: xorg-x11-server 1.1.1-48.76.el5_5.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 20 18:57:05 2011
(==) Using config file: "/etc/X11/xorg.conf"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <I5F>
>                   Using XF86Sleep, ignoring XF86Standby
> Warning:          Symbol map for key <I5F> redefined
>                   Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server
xinit:  No such file or directory (errno 2):  no program named "xterm" in PATH

Specify a program on the command line or make sure that /usr/bin
is in your path.


waiting for X server to shut down FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.

Running startx without the help flag results in a different error message. Why is this?

Running startx

[root@foo ~]# startx
xauth:  creating new authority file /root/.serverauth.5375


X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-194.11.1.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux foo 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64
Build Date: 01 September 2010
Build ID: xorg-x11-server 1.1.1-48.76.el5_5.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 20 18:39:23 2011
(==) Using config file: "/etc/X11/xorg.conf"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <I5F>
>                   Using XF86Sleep, ignoring XF86Standby
> Warning:          Symbol map for key <I5F> redefined
>                   Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server
localuser:root being added to access control list
No profile for user 'root' found

waiting for X server to shut down FreeFontPath: FPE "unix/:7100" refcount is 2, should    be 1; fixing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枯叶蝶 2024-11-09 16:31:58

这可能是因为 .xinitrc 中的 xterm 命令 - 该文件包含应使用 X 服务器启动的应用程序,通常有命令启动窗口管理器或桌面环境(如 KDE 或 Gnome)。但通常它默认为 twm + xterm。

That's probably because of xterm command in .xinitrc - this file contains application which should be started with X server, typically there are commands there to start window manager or desktop environment like KDE or Gnome. But often it defaults to twm + xterm.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文