Thursday 25 November 2010

Tuesday 9 November 2010

ubuntu startup scripts.

What a mess. Try this:

Copy the script into /etc/init.d

Edit it to include the following header:

#! /bin/sh
### BEGIN INIT INFO
# Provides: scriptname
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO


Do:

$ sudo chmod +x scriptname

Run,

$ sudo update-rc.d scriptname defaults

`defaults' sets `scriptname' to run at runlevels 2,3,4,5
by creating links to the script in those levels; and
adds a link to the script to kill it at levels 0, 1, 6.

Remove the startup script via,

$ sudo update-rc.d -f scriptname remove

Correct display of aterm mutt mc finch etc

aterm displayed crappy characters with mc and mutt. This was fixed by calling them as,

$ LANG=C mutt

and

$ LANG=C mc


.bashrc now has aliases for mutt and mc as above.

Tidy up ubuntu, gnome

Ubuntu defaults to `pretty' borders, `nice' shadows and other bits of peripheral crap turned on; presumably to appeal to those using linux for prettyness rather than function.

To get rid of a few of them:

sudo apt-get install compizconfig-settings-manager

The executable is, ccsm

... and, it doesn't work. Making changes to ccsm has no effect on the display. Red herring.