martes, diciembre 05, 2006

Afinando el sistema

Sólo nos queda configurar un poco nuestro linux para que tenga mejor aspecto.

Configuración general, para todos los usuarios:
/etc/profile:
# Begin /etc/profile

export LANG=es_ES.utf8
export INPUTRC=/etc/inputrc

export PATH=/bin:/usr/bin

if [ $EUID -eq 0 ] ; then
export PATH=$PATH:/sbin:/usr/sbin
unset HISTFILE
fi

# Setup some environment variables.
export HISTSIZE=1000
export HISTIGNORE="&:[bf]g:exit"
#export PS1="[\u@\h \w]\\$ "
export PS1='\u@\h:\w\$ '

# End /etc/profile

/etc/bashrc:
if [ -f "/etc/dircolors" ] ; then
eval $(dircolors -b /etc/dircolors)

if [ -f "$HOME/.dircolors" ] ; then
eval $(dircolors -b $HOME/.dircolors)
fi
fi
alias ls='ls --color=auto'


Configuración para root:
/root/.bash_profile:
if [ -f "$HOME/.bashrc" ] ; then
source $HOME/.bashrc
fi

/root/.bashrc:
if [ -f "/etc/bashrc" ] ; then
source /etc/bashrc
fi

Por último:
dircolors -p > /etc/dircolors

No hay comentarios: