LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1817|回复: 5

startx问题[已解决]

[复制链接]
发表于 2006-3-17 02:52:55 | 显示全部楼层 |阅读模式
运行startx不成功:

root@xxxx:~# startx
bash: startx: command not found

然后:

root@xxxx:~# whereis startx
startx: /usr/X11R6/bin/startx /usr/bin/X11/startx

加上目录运行:

root@xxxx:~# /usr/X11R6/bin/startx

系统的出错信息:

/usr/X11R6/bin/startx: line 132: xauth: command not found
/usr/X11R6/bin/startx: line 133: xauth: command not found
/usr/X11R6/bin/startx: line 132: xauth: command not found
/usr/X11R6/bin/startx: line 133: xauth: command not found
/usr/X11R6/bin/startx: line 141: xinit: command not found
/usr/X11R6/bin/startx: line 144: xauth: command not found

是不是X.sh未起作用?

/etc/profile.d
/etc/profile.d/X.sh

的所有者是:root:root
权限是:0755

是不是pathappend未生效?
发表于 2006-3-17 02:55:14 | 显示全部楼层
echo $PATH 看看?
xauth 和 xinit 是否存在?

属于基础问题了。。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-17 03:15:55 | 显示全部楼层
Post by 终极幻想
echo $PATH 看看?
xauth 和 xinit 是否存在?

属于基础问题了。。。。


root@xxxx:/# echo $PATH
/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin
root@xxxx:/# whereis xauth xinit
xauth: /usr/X11R6/bin/xauth /usr/bin/X11/xauth
xinit: /usr/X11R6/bin/xinit /usr/bin/X11/xinit

似乎 path设置出问题了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-17 03:21:33 | 显示全部楼层
Post by 终极幻想
echo $PATH 看看?
xauth 和 xinit 是否存在?

属于基础问题了。。。。


运行X.sh:
root@xxxx:/etc/profile.d# ./X.sh
./X.sh: line 5: pathappend: command not found
回复 支持 反对

使用道具 举报

发表于 2006-3-17 05:07:45 | 显示全部楼层
/etc/profile.d 里边的东西不应该用来单独运行的。

source /etc/profile

PATH 都没设置对,BLFS 里边说了设置 PATH 的啊。仔细看书吧。:)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-17 21:01:42 | 显示全部楼层
Post by 终极幻想
/etc/profile.d 里边的东西不应该用来单独运行的。

source /etc/profile

PATH 都没设置对,BLFS 里边说了设置 PATH 的啊。仔细看书吧。:)


问题解决。是profile.d目录的设置有误。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表