Tag Archives: linux

Colourful boot messages

The functions used for the status messages upon boot are defined in /lib/lsb/init-functions and may be overwritten in /etc/lsb-base-logging.sh. To add colours, in that init-functions file find the function log_use_fancy_output() and below the fi add the lines After that, edit the lsb-base-logging.sh and change e.g. the output of log_end_msg(): Your next boot will look like… Read More: Colourful boot messages »

Optimizing Linux

At Ubuntu Unleashed you can find a document about different settings to optimize startup times of the system and applications itself. The noatime and nodiratime settings are unneccessary in Hardy as the default option relatime only updates the access time if the file has been modified after the last access timestamp. You can enable the… Read More: Optimizing Linux »

bash Tips & Tricks

Bourne Again Shell. bash magic Some handy bash magic. sudo last command If you forgot sudo after executing your 3-lines-command, sudo bang! bang! will repeat the last entered command with sudo prefixed. More parameter magic bang Expands to !$ last argument of previous command !$:p just show last argument of previous command, don’t add to… Read More: bash Tips & Tricks »

event.d/init.d script

event.d script This is an event.d-script for the new Ubuntu Upstart. The event gets started/respawned on runlevels 2-5. If you change to level 0, 1 or 6, the process gets stopped/killed.Manual start/stop works through the same commands start and stop. With status you can check the status. init.d script This does the same using the… Read More: event.d/init.d script »