startx是否需要安装xterm

时间:2011-04-20 16:56:06

标签: ssh putty xterm xming

我链接到远程linux机器。我希望能够使用GUI查看此计算机上的文件/目录。我运行xming和ssh以及putty。然后我开始尝试启动Windows管理器。输出低于。

这里发生了什么,似乎xterm不可用。但我可以运行emacs,因此必须有一些Windows管理器。我可以改用它吗?

运行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.

1 个答案:

答案 0 :(得分:1)

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