jiangtao9999 发表于 2006-6-4 21:34:39

我的 Gentoo 似乎 /etc/profile有问题了?

登陆后 root (我只用 root)的提示符是 -bash-3.1#8O
而且很多设置也没了。

env-update ;source /etc/profile 不起作用。
怎么回事?

/etc/profile 里面东西全变了,似乎是 fglrx 驱动改的…………

我把它 mv 到别的地方,重新 env-update 也不能生成?!
:(

Hauser 发表于 2006-6-5 14:33:04

找个stage1包,
# cd /
# tar xjvf /path/to/stage1-x86-2006.0.tar.bz2 ./etc/profile
试试。

wall_john 发表于 2006-6-5 22:00:48

把/etc/env.d/09ati改成:
wj@gentoo_wj ~ $ cat /etc/env.d/09ati
PATH=/opt/ati/bin
ROOTPATH=/opt/ati/bin
LIBGL_DRIVERS_PATH="/usr/lib/xorg/modules/dri"

然后env-update试试看看。

linky_fan 发表于 2006-6-5 22:31:25

那应该是bash_profile吧?

jiangtao9999 发表于 2006-6-7 22:45:59

不知道是那个的问题,反正 /etc/profile 里都是 fglrx 的东西。
root 登陆后是 bash#
但如果 su 一下 root 。
就恢复正常了,不过我还没看 export 里的东西都对不对。
:shock:
谁能给我一份最新的 /etc 里全部的东西?

herngwah 发表于 2006-6-8 19:19:23

root 登陆后是 bash# Whenbash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executescommandsfromthe file /etc/profile, if that file exists.After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, inthat order, and reads and executes commands from the first one that exists and is readable.但如果 su 一下 root 。
就恢复正常了,不过我还没看 export 里的东西都对不对。When an interactive shell that is not a login shellisstarted,bash readsand executes commands from ~/.bashrc, if that file exists.# /etc/skel/.bash_profile:
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/dot-bash_profile,v 1.1 2005/04/30 00:08:01 vapier Exp $

# This file is sourced by bash for login shells.The following line
# runs your .bashrc and is recommended by the bash info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc
页: [1]
查看完整版本: 我的 Gentoo 似乎 /etc/profile有问题了?