Monthly Archives: July 2005

Xorg config for mouse buttons.

Now I haven’t actually checked this but trying to get some of the buttons in the infernal GAMBIT meshing program is quite tricky. If you’ve never used GAMBIT try not to.

Anyway to get some of the buttons to work you appear to need a mouse button six or seven to function. Add this to your xorg config file somewhere to make your scroll wheel return those buttons.

Section "InputDevice"
Driver "mouse"
Identifier "Mouse[3]"
Option "Device" "/dev/input/mice"
Option "InputFashion" "Mouse"
Option "Name" "USB-Mouse;IMPS/2 on USB"
Option "Protocol" "imps/2"
Option "ZAxisMapping" "6 7"

Now bear in mind I haven’t tried this but it may be of use to you….


Using GNU tar

Another tool that is quite useful but that I have to look up the syntax is GNU tar. In short:

To create an archive: tar -cvf files.tar fred joe simon will put the files fred, joe and simon into a tar file called files.tar.

To extract an archive tar -xvf files.tar will extract, tar -xf files.tar will extract them without telling you lots about it. Finally tar -zxf files.tar.gz will uncompress a gzipped file.

Using GNU find

Unix has a long history, this means that stuff if sometimes a little arcane. Anyway to find a file using GNU file by name:

find /usr/local/doc -name '*.texi'

Which finds files with “.texi” in their names in /usr/local/doc

Getting checkinstall to work on Mandriva Limited Edition 2005

Many thanks to Mandrakeclub member tecnico for this little tip that I found.

To get checkinstall working on Mandriva Limited Edition 2005, you need to add a couple of lines to an rpm configuration file. The file is /etc/rpm/macros and the lines you need to add are:

%_unpackaged_files_terminate_build 0
%_missing_doc_files_terminate_build 0

More details on the Old Mandrake Forums

New Job!

Well I appear to have a new job! Coming this September I will be joining the School of Engineering at Durham University.

I’m very excited. This is what people say about new products – we are very excited about our new range of paving slabs you can have them in all sorts of colours and several different shapes. But really I’m very pleased!

I’m also very lucky to have such a job, it’s a real honour and I’m not really sure I deserve it. But I’m really really looking forward to it.

ssh access.

In a fit of security concious activity I decided to have along and somewhat complicated ssh passphrase for accessing remote servers etc. This means that typing it in twice without making a mistake is – virtually impossible! So I’ve painted it in 6 feet high letters on the building opposite.

If you want to avoid the scaffolding costs and you know how hard it is to find a decent painter these days you can use a piece of software that makes entering ssh keys easy. At your UNIX command prompt:

ssh-agent $SHELL

This then starts a commnand shell with ssh-agent running, to actually add keys into memory you need to:


More useful information is found at a useful tutorial