Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1445 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs

  [HELP] Gentoo et /etc/profile

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[HELP] Gentoo et /etc/profile

n°436572
docwario
Alea jacta est
Posté le 21-03-2004 à 01:22:14  profilanswer
 

Salut all,  
 
suite a une erreur de manip, je viens de faire sauter mon /etc/profile,
quelqu un pourrait me dire si il est vraiment important, et si oui,
quelqu un pourrait m envoyer le /etc/profile de gentoo, please ?
 
merci a tous.

mood
Publicité
Posté le 21-03-2004 à 01:22:14  profilanswer
 

n°436633
Profil sup​primé
Posté le 21-03-2004 à 11:02:11  answer
 

voici le mien (j'ai rajouté des trucs à la fin) :

# /etc/profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.23 2003/04/29 21:23:18 azarah Exp $
 
if [ -e "/etc/profile.env" ]
then
        . /etc/profile.env
fi
 
# 077 would be more secure, but 022 is generally quite realistic
umask 022
 
if [ `/usr/bin/whoami` = 'root' ]
then
        # Do not set PS1 for dumb terminals
        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
        then
                export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        fi
        export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
        # Do not set PS1 for dumb terminals
        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
        then
                export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        fi
        export PATH="/bin:/usr/bin:${PATH}"
fi
unset ROOTPATH
 
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]
then
        export INPUTRC="/etc/inputrc"
fi
 
# Extract the value of EDITOR
[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="/bin/nano"
export EDITOR
 
[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion
export UT_DATA_PATH=/opt/unreal-tournament/System
 
alias mon_ip="lynx -dump www.whatismyip.com | grep \"Your IP is\" | awk '{print \$4}'"
 
export WANT_AUTOCONF="2.5"
export LINGUAS="fr"
 
 
# Midnight Commander chdir enhancement
if [ -f /usr/share/mc/mc.gentoo ]; then
     . /usr/share/mc/mc.gentoo
fi


Il n'est pas vital, mais très utile...

n°437481
docwario
Alea jacta est
Posté le 22-03-2004 à 00:30:42  profilanswer
 

merci mais finalement j ai pu le recuperer a partir du stage3 a partir dukel j avais installer gentoo, mais merci kan mem


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs

  [HELP] Gentoo et /etc/profile

 

Sujets relatifs
helpHelp Help, install de linux qui fait foirer le reste... Urgent, merci
[Gentoo nvidia] nvidiaModuleData au démarrage de XfreeGentoo - compilation de Baselayout
[HELP] comment "Déplacer" une session ?[Gentoo] emerge xfree-drm ça installe tout xfree?
[GENTOO] Bringing eth0 up en background? (RESOLU)gentoo souris usb comment faire ( pas sur de moi la )
[Help] Pb Linux + LANmontrez vos cflags sous gentoo !!
Plus de sujets relatifs à : [HELP] Gentoo et /etc/profile


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR