You are not logged in.

#1 2005-01-04 08:14:48

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,444

lost /etc/profile

Since one of the latest updates, it seems my system is a bit broken. Commands like startx fail, and I recieve masages that xauth, xinit and elf are commands that can't be found. I wanted to have a look at /etc/profile, to check patch declaration, and noticed the whole file is crappy. It now looks like

^?ELF^A^A^A^@^
fffuffffuffff^@^@
uffffd^G^F^H^ufff
fE^L^uffffD$^D^uf
....

Hm, mysterious. I would be glad if someone could post a standard profile set here to give me a template.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#2 2005-01-04 09:15:27

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 241

Re: lost /etc/profile

The original /etc/profile from bash package:

#
# /etc/profile
#

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

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

# Locale settings (find your locale with 'locale -a')
export LANG="en_US"
export LC_COLLATE="C"

export COLUMNS LINES

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

umask 022

if [ "$TERM" = "xterm" -o "$TERM" = "xterm-color" -o "$TERM" = "rxvt" ]; then
  PROMPT_COMMAND='echo -ne "33]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}07"'
fi

# 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
    . $profile
  fi
done
unset profile

# End of file

If you still have the packages cache, you could also see this file in /var/cache/pacman/pkg/bash-3.0-3.pkg.tar.gz

Offline

#3 2005-01-04 09:24:38

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,444

Re: lost /etc/profile

smile


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

Board footer

Powered by FluxBB