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.

Wednesday, 27 October 2010

rip iso dvd

sudo apt-get install lsdvd gddrescue
lsdvd /dev/dvd
ddrescue /dev/dvd image.iso dvd.log

playback
sudo apt-get install vlc fuseiso
sudo adduser your_user_name fuse (close and reopen the terminal to update your group status)
sudo mkdir /media/fuseiso (create mount point)

Sunday, 17 October 2010

sshfs sluggish?

Run like this:

-o ServerAliveInterval=15 -o cache_timeout=600

Saturday, 16 October 2010

flash playback.

Finally, Adobe .... never mind. I get bored of saying the same stuff over and over.

Download:

http://labs.adobe.com/downloads/flashplayer10.html

Extract:

tar xvzf flashplayer_square_p1_64bit_linux_091510.tar.gz

Copy:

mkdir -p .mozilla/plugins
mv libflashplayer.so .mozilla/plugins

Run firefox and check it's found it:
about:plugins

This file is present on Dani's machine.