You are not logged in.

#1 2003-08-15 05:41:47

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

/etc/profile problems

OK, so for some reason, half of my /etc/profile dissapeared. I cant explain it, but it looks like only the compiler settings disappeared.

Could someone post what the default /etc/profile looks like.


Jeez, things have been going wrong since I upgraded the GCC. wink


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#2 2003-08-15 08:16:20

orelien
Forum Fellow
From: France
Registered: 2002-12-05
Posts: 220
Website

Re: /etc/profile problems

pacman -S bash

Offline

#3 2003-08-15 09:42:03

miro
Member
From: Bulgaria
Registered: 2003-07-26
Posts: 10
Website

Re: /etc/profile problems

That's *almost* the default /etc/profile

#
# /etc/profile
#

export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin"

export MANPATH="/usr/man:/usr/X11R6/man"
export LESSCHARSET="latin1"
export INPUTRC="/etc/inputrc"
export LESS="-R"

export PS1='[u@h W]$ '

# not in default profile
#export PS1='e[0;34m[e[0;32mue[0;31m@e[0;32mh e[0;33mWe[0;34m]$e[0;39m '
#export PS1='[e[0;32mbash-v e[0;33mwe[0;39m]$e[0;39m '

export PS2='> '

umask 022

# not in default profile
eval `dircolors -b`


# load profiles from /etc/profile.d
#  (to disable a profile, just remove execute permission on it)
for profile in /etc/profile.d/*.sh; do
  if [ -x $profile ]; then
    source $profile
  fi
done
unset profile

if [ -f $HOME/.bash_profile ]; then
  . $HOME/.bash_profile
fi

# End of file

Offline

#4 2003-08-15 09:45:15

miro
Member
From: Bulgaria
Registered: 2003-07-26
Posts: 10
Website

Re: /etc/profile problems

I forget:

everything is OK for me after GCC upgrade.

Offline

#5 2003-08-15 18:23:49

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: /etc/profile problems

Thats what my profile looks like.  sad

Some package upgrade must have changed it. Im not having any problems, so I guess thats how its suppose to be.


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#6 2003-08-15 18:32:21

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: /etc/profile problems

Only the bash package should change /etc/profile.  That's the point of having the drop-in /etc/profile.d/ directory.

Offline

#7 2003-08-15 18:57:49

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: /etc/profile problems

Yeah, the profile.d is great. It makes things much easier. I didnt have that in Slackware. What package creates that?


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#8 2003-08-15 19:38:07

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: /etc/profile problems

/etc/profile.d is part of the filesystem package.

Offline

Board footer

Powered by FluxBB