Category Archives: Linux

Siemens SE 587 Dynamic DNS Update script

Quick script I knocked up to update dynamic dns record at freedns.afraid.org, querying the router for its IP address. Uses expect to login via telnet to the router and curl to GET the http update url.
#!/bin/bash
# Siemens SE 587 freedns update script
# Jonathan Cutting mcmlxxii.co.uk
# 20/9/2009
# Config
router_login=”your_login_name”
router_password=”your_login_password”
router_address=”192.168.1.1″
afraid_url=”your_dynamic_dns_url”
afraid_update_url=”http://freedns.afraid.org/dynamic/update.php?YOUR_UPDATE_CODE”
# End config

dns_record=$(dig +short $afraid_url)
ip_address=$(expect -c ”
[...]

Turning Firefox into a web screensaver using a bash script

There’s a little program available for windows that lets you turn your browser into a screensaver, looping through various web content. However, there are 2 things wrong with it. Firstly it costs money. Secondly it doesn’t run on linux.
So what? – we have bash – and after a bit of digging around this morning and [...]

Gedit document words autocompletion plugin

I followed a submission to reddit the other day highlighting a few choice plugins for gedit, as I am fond of using the default GNOME text editor. One plugin in particular caught my eye, the document words autocompletion plugin, written by Perriman. Retyping my inventive variable names (not to mention the oft flowery default php [...]

PHP class using Imagick – resize, reflect or drop shadow

I’ve been spending a bit of time getting to know PHP classes over the Christmas holiday, and I’ve written a couple to test out my knowledge.
The first is an image uploading class, which checks for various problems with files prior to moving them to a destination directory. It checks:

that the file actually exists
the size to [...]

Nvidia 180 on Ubuntu Intrepid Ibex

EDIT: It seems the packages needed are in Intrepid updates now, so as long as they are enabled in System > Applications > Software Sources they should be installed with a simple sudo apt-get update && sudo apt-get install nvidia-glx-180
As a long-time (since Gutsy) follower of Ubuntu bug 99508, the one about the badly [...]

No! Please don’t do it!

There are some highly entertaining examples on the net of command line program output, but it’s great when you’re doing some system maintenance in Linux on your own machine and a gem unexpectedly crops up:
:~$ sudo /etc/init.d/dovecot restart
[sudo] password:
* Restarting IMAP/POP3 mail server dovecot
Warning: Last died with error (see error log for more information): [...]

Synaptics touchpad, SHMConfig, xorg.conf and Ubuntu Intrepid 8.10

EDIT – Please note that this post only refers to the 64 bit version of Ubuntu.
Some significant changes have been happening to the X server over the past couple of releases of Ubuntu. One of the most noticeable alterations has been the removal of the xorg.conf file from the default Ubuntu install (edit – it [...]

FirstClass. On 64 bit AMD64 Ubuntu.

For my OU course in Web Applications Development, I have to use a piece of software called FirstClass, from OpenText. Thankfully the nice people at OpenText have packaged up a version for Debian and Ubuntu, version 8.315-2 (one major release behind Windows admittedly, but perfectly usable). If you’re using a 32 bit version the install [...]

Amarok, Ubuntu Gutsy 7.10, Bluetooth and Sony MBR-100 Audio Receiver

As we all know Amarok is the best music player in the world, and it’s free. It’s only available on Linux at the moment but the devs are working hard to port it to Windows. Anyway I digress. I wanted to explain how I got Amarok playing on my laptop, accessing my music collection on [...]

RT73 on Ubuntu 8.10 Intrepid Ibex

If you’ve used the Ralink RT73 chipset under Ubuntu for any length of time, you’ll know that the default drivers aren’t yet perfect (some supporting evidence). Some may have had more success, but in my experience they drop out regularly and transfer rates are pretty mediocre. The modules used are the rt2×00usb and rt73usb. These [...]