saintshakajin Posté(e) le 21 janvier 2005 Posté(e) le 21 janvier 2005 Bon, voilà, j'ai installé une gentoo toute fraiche et là, je sèche sur le /etc/profile et le ~/.bashrc. Le problème étant, qu'à l'invite en console, tout est parfait, mais une fois que je fais un startx pour lancer kde, ce qui apparait dans mes consoles non plus rien à voir Voilà ce que j'ai pour un user normal et root (sauf que le $ est un #) bash-2.05b$ Vais pas aller loin avec la version du bash... bash-2.05b$ cat .bashrc# /etc/skel/.bashrc: # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 2003/02/28 15:45:35 azarah Exp $ # This file is sourced by all *interactive* bash shells on startup. This # file *should generate no output* or it will break the scp and rcp commands. # colors for ls, etc. eval `dircolors -b /etc/DIR_COLORS` alias d="ls --color" alias ls="ls --color=auto" alias ll="ls --color -l" # Change the window title of X terminals case $TERM in xterm*|rxvt|Eterm|eterm) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' ;; screen) PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"' ;; esac ##uncomment the following to activate bash-completion: [ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion bash-2.05b$ cat /etc/profile# /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
saintshakajin Posté(e) le 21 janvier 2005 Auteur Posté(e) le 21 janvier 2005 en mettant "source /etc/profile" dans mon .bashrc ça a l'air de marcher, mais bon, je vois pas réellement pourquoi?
Messages recommandés
Archivé
Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.