QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2221|回复: 5

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

[复制链接]
发表于 2006-6-4 21:34:39 | 显示全部楼层 |阅读模式
登陆后 root (我只用 root)的提示符是 -bash-3.1#  
而且很多设置也没了。

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

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

我把它 mv 到别的地方,重新 env-update 也不能生成?!
发表于 2006-6-5 14:33:04 | 显示全部楼层
找个stage1包,
# cd /
# tar xjvf /path/to/stage1-x86-2006.0.tar.bz2 ./etc/profile
试试。
回复

使用道具 举报

发表于 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试试看看。
回复

使用道具 举报

发表于 2006-6-5 22:31:25 | 显示全部楼层
那应该是bash_profile吧?
回复

使用道具 举报

 楼主| 发表于 2006-6-7 22:45:59 | 显示全部楼层
不知道是那个的问题,反正 /etc/profile 里都是 fglrx 的东西。
root 登陆后是 bash#
但如果 su 一下 root 。
就恢复正常了,不过我还没看 export 里的东西都对不对。

谁能给我一份最新的 /etc 里全部的东西?
回复

使用道具 举报

发表于 2006-6-8 19:19:23 | 显示全部楼层
[quote:b97bd5f4e1="jiangtao9999"]root 登陆后是 bash# [/quote][code:1]When  bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes  commands  from  the file /etc/profile, if that file exists.  After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in  that order, and reads and executes commands from the first one that exists and is readable.[/code:1][quote:b97bd5f4e1="jiangtao9999"]但如果 su 一下 root 。
就恢复正常了,不过我还没看 export 里的东西都对不对。[/quote][code:1]When an interactive shell that is not a login shell  is  started,  bash reads  and executes commands from ~/.bashrc, if that file exists.[/code:1][code:1]# /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[/code:1]
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-7-1 15:36 , Processed in 0.042761 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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