Linux personalization

I like to customize my Linux environment as follows (applies to Ubuntu distros):

* Set-up logging display on tty9-tty12:
Add to /etc/rc.local:

tail -f /var/log/syslog >/dev/tty9 &
tail -f /var/log/auth.log >/dev/tty10 &
# Display tcp dump on tty11
tcpdump >/dev/tty11
# Start top on tty12 (need to declare TERM b/c it is undeclared
# when rc.local is run in the boot process
# Running top on tty12 is a security risk as any non-logged in
# user can kill processes.
export TERM=linux
sudo openvt -c 12 top &

* Set-up bash prompt to display current time
NOTE: This mod allows one to easily tell how long a process took to complete.

Add to the PS1 declaration in .bashrc for the current user the following “\D{%F %T}”. Such that the new PS1 becomes:

PS1=’${debian_chroot:+($debian_chroot)}\u@\h:\w \D{%F %T}\n\$ ‘

There’s two PS1 declarations add it to both.

The full list of prompt options is detailed in the man bash, at the section PROMPTING.