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
-
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