View Single Post
Old 18-04-2012, 22:33   #10
Gimli[2BV!2B]
Senior Member
 
L'Avatar di Gimli[2BV!2B]
 
Iscritto dal: Feb 2006
Cittā: Parma
Messaggi: 3008
Bel riassunto e bel confronto.

Personalmente, finita un'installazione, queste sono tra le prime modifiche che faccio:
  • /etc/inputrc
    Codice:
    # alternate mappings for "page up" and "page down" to search the history
    "\e[5~": history-search-backward
    "\e[6~": history-search-forward
  • /etc/bash.bashrc (PS1 con colorazione differente per ogni macchina)
    Codice:
    # set a fancy prompt
    if [ "`id -u`" -eq 0 ]; then
        PS1='${debian_chroot:+($debian_chroot)}\[\033[00;32m\]\u\[\033[01;37m\]@\[\033[00;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    else
        PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[01;37m\]@\[\033[01;31m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    fi
    
    # Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
    # If this is an xterm set the title to user@host:dir
    case ${TERM} in
        xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
            PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
        ;;
        screen)
            PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
            PS1="Screen->$PS1"
        ;;
    esac
  • Codice:
    > /etc/motd.tail
    Nelle mie macchine personali principali solitamente metto nel motd un ascii art che richiama l'hostname.
  • Codice:
    apt-get install syslog-ng deborphan htop
  • Prettifying Debian boot output
  • /etc/fstab
    Codice:
    /dev/sda1       /               ext4        errors=remount-ro,noatime 0       1
    /dev/sda6       /home           ext4        noatime         0       2
    se da battaglia
    Codice:
    /dev/sda1       /               ext4        errors=remount-ro,noatime,barrier=0 0       1
    /dev/sda6       /home           ext4        noatime,barrier=0         0       2
  • /etc/apt/apt.conf
    Codice:
    Acquire::Languages "en";
    Codice:
    rm /var/lib/apt/lists/*_i18n_Translation-*
    apt-get update
__________________
~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...)
Gimli[2BV!2B] č offline   Rispondi citando il messaggio o parte di esso