October 28, 2011

Raspberry Pi. An ARM GNU/Linux box for $25/$35.

Writing about web page http://www.raspberrypi.org/

About the size of a credit card. $35 for the model with Ethernet. 1080p H264 video playback. Negligible power draw. Powered via 5v micro USB. If you want a tiny low power device that's a 'proper' computer rather than a hacked router or similar, this is probably it. Hopefully you'll be able to buy one soon.


July 27, 2011

Nothing says I Love you like…

...a fridge magnet bearing the University Crest with 'I Love you' written underneath.

Nothing says I love you like

Yours for only ${price} at the University bookshop. They also sell things the existence of which makes some kind of sense.


June 29, 2011

Update a driver in an initrd file

Recently I found myself wanting to put SUSE Linux Enterprise Desktop 11 SP1 on to machine with a Sandybridge chipset. This was a problem as the e1000e driver in SLED 11 SP1 isn't new enough to support the network card in the machine. Having found an updated driver I still had the problem that I wanted to be able to do installations over the network with AutoYaST and PXE boot. That didn't work because the initrd file being used for PXE boot didn't have the new e1000e driver in. So the install failed almost immediately due to the absence of a network connection.

The solution is to make a new initrd file containing the new e1000e driver. It's far from obvious how to do this but I found the solution at http://www.sharms.org/blog/2007/11/howto-add-updated-e1000-driver-to-sled-10-sp1/ This post is basically just me duplicating the information because you can never have such information in too many places. Also I've expanded it a little bit to include instructions on how to do some bits that I had to work out. You can of course adapt the following for whatever module you might find the need to update.

First of all, make a new directory and unpack the current initrd in to it

$ mkdir -p updated_initrd/initrd_unpack
$ cd updated_initrd/initrd_unpack
$ gunzip -dc /path/to/initrd | cpio -idmuv

Now get the new version of the e1000e module. I found this in an rpm on Novell's website which I needed to download and unpack to get the driver out of it.

$ cd ..
$ wget http://drivers.suse.com/driver-process/pub/update/Intel/sle11sp1/common/i586/intel-e1000e-kmp-pae-1.2.20_2.6.32.12_0.7-1.i586.rpm
$ mkdir rpmcontents
$ cd rpmcontents
$ rpm2cpio ../intel-e1000e-kmp-pae-1.2.20_2.6.32.12_0.7-1.i586.rpm | cpio -idv

Next copy the new driver over in to where you unpacked the initrd

$ cp lib/modules/2.6.32.12-0.7-pae/updates/e1000e.ko ../initrd_unpack/modules/
cp: overwrite `../initrd/modules/e1000e.ko'? y

Now you need to update files called modules.alias and modules.pcimap using information that you get from the depmod command. You can get the information to put in modules.alias with

$ /sbin/depmod -n $(pwd)/lib/modules/2.6.32.12-0.7-pae/updates/e1000e.ko | grep ^alias > /tmp/newaliases

Then I made a copy of the modules.alias file with the information for e1000e removed from it

$ grep  -v ' e1000e$' ../initrd_unpack/lib/modules/2.6.32.12-0.7-default/modules.alias > /tmp/modules.alias

Add the new information to that file

$ cat  /tmp/newaliases >>  /tmp/modules.alias

And then replace the original file

$ cp /tmp/modules.alias  ../initrd_unpack/lib/modules/2.6.32.12-0.7-default/modules.alias
cp: overwrite `../initrd_unpack/lib/modules/2.6.32.12-0.7-default/modules.alias'? y

The process is the same for the modules.pcimap file

$ /sbin/depmod -n $(pwd)/lib/modules/2.6.32.12-0.7-pae/updates/e1000e.ko | grep '^e1000e ' > /tmp/newpcimap
$ grep -v '^e1000e ' ../initrd_unpack/lib/modules/2.6.32.12-0.7-default/modules.pcimap > /tmp/modules.pcimap
$ cat /tmp/newpcimap >> /tmp/modules.pcimap
$ cp /tmp/modules.pcimap ../initrd_unpack/lib/modules/2.6.32.12-0.7-default/modules.pcimap
cp: overwrite `../initrd_unpack/lib/modules/2.6.32.12-0.7-default/modules.pcimap'? y

Finally, make the new initrd file

$ cd ../initrd_unpack
$ find . | cpio --quiet -o -H newc > ../initrd
$ cd ..
$ gzip -v9c initrd > initrd.gz
$ mv initrd.gz initrd
mv: overwrite `initrd'? y
$ file initrd
initrd: gzip compressed data, was "initrd", from Unix, last modified: Wed Jun 29 12:31:49 2011, max compression

March 25, 2011

SFTP access to My.Files

If you’ve ever wanted to be able to access your 'H drive' or your department shared volumes from a non-IT Services managed computer, or from you phone, or whatever device you have in mind, via an interface that's slicker than using a web page, you may wish to sign up for the access to My.Files via SFTP pilot. For details of how to participate see

http://go.warwick.ac.uk/its/servicessupport/datastorage/myfiles

The pilot’s been going a while but I kept forgetting to blog it. The documentation is all about using the ExpanDrive client, but any SFTP client should work. If you use GNOME/KDE then Nautilus/Dolphin both have built in SFTP support.


December 13, 2010

White to black

Follow-up to Red to green. from Mike's blag

I acquired a lid from an iBook G3 which, unlike my G4, has a clear plastic case with paint on the inside. So I striped the paint off and re-sprayed it. I chose black. Partly because the G4 iBook has a grey strip around the middle of the case, so the result is a case that is white on the bottom, grey in the middle and black on top. (The photo below totally fails to show the grey.) Largely because I had a can of black paint. Though said can turned out to contain only enough paint to cover about a third of the lid, so I ended up having to buy another can.

The result is this:

Black iBook

The new lid is a bit beat up, but no more so than one would expect. It's also currently held on with only three screws, the forth having fallen in to the sofa. I can't figure out how to retrieve it at the moment.

Not sure if it the result was really worth the effort, but one has to try such things sometimes.


November 18, 2010

Harry Potter film excerpt leaked online

Writing about web page http://www.bbc.co.uk/news/entertainment-arts-11783413

Warner Bros said it was "working actively" to remove the video, which it said was "stolen and illegally posted" on file-sharing websites on Tuesday.

"We are vigorously investigating this matter and will prosecute those involved to the full extent of the law," it added in a statement.

I look at this story and think that maybe Warner Bros should save themselves the effort. It's not the entire film that's been leaked.  No one is going to think, "I was going to go see the new Harry Potter film at the cinema but now that the first 36 minutes of it are available on the Internet I'll just watch that instead." On the other hand some people who are unsure about whether or not they want to go to the effort and expense of going to see the film in the cinema might see the first 36 minutes of it and subsequently go see the film at the cinema. The leak could in fact be beneficial for Warner Bros.

It won't be long before the entire film is available for free online via torrents and the like and being burnt on to DVDs slapped in a box with some dodgy cover art (E.g.) to be sold dirt cheap on market stalls in the far east. Consider that along with the above described possible benefit of the leak and I have to wonder, is it worth a lot of time and money, and it won' t just be Warner Bros' time and money but also that of various law enforcement agencies, being spent to "vigorously investigating" the leak of a 36 minute segment?

Warner Bros also say

"We are working actively to restrict and/or remove copies that may be available,"

Anyone with a passing familiarity of the Internet ought to realise this is futile. They'll never find all the sources because new sources will keep appearing.



October 12, 2010

Orange–Mobile

Orange and T-Mobile merged a while back although they've kept the branding. One result of the merger is that last week they enabled roaming between the networks. So if you're on Orange and you're somewhere there's no Orange signal but there is a T-Mobile signal, your phone will automatically use T-Mobile without incuring extra charges. It works the other way too. It needs a SIM update to make it work so you have to get your network to send you that.

If you're on Orange go to http://orange.co.uk/share if you're on T-Mobile go to http://t-mobile.co.uk/share

It seems to work. The Orange signal at my desk isn't great and earlier on I noticed my phone said it was using 'T-Mobile UK Orange'.




October 07, 2010

Where am I?

Writing about web page http://go.warwick.ac.uk/vpn

If you are one of those people who might be able to tell where I was when I posted this by looking at logs, you'd think I was on campus because of the IP address. Except I'm not. I'm at home. Magic? No, it is of course merely sufficiently advanced technology in the form of a VPN.

The System Requirements for Linux machines for some reason single out two distributions, presumably those known to meet the requirements listed afterword. I'm using openSUSE 11.3 which isn't on the list but it seems to work fine. The only glitch I've seen is that when the client install finished it told me "If you have GTK 2.10.0 or later, look for the icon in the notification area:" and there was no such icon, even though a quick visit to whatismyip showed the connection had worked. Selecting the Cisco client from the Application Browser resulted in the icon appearing as expected though.

One very minor gripe I have is that the client installation process doesn't bother to tell you what it's installing or where it's installing it. A quick bit of detective work reveals it puts stuff in /opt/cisco (and a .desktop file in /usr/share/applications) and there's a script called vpn_uninstall.sh in there.


October 03, 2010

Blitz: The Bombing of Coventry

Writing about web page http://www.bbc.co.uk/iplayer/episode/b00n7xky/Blitz_The_Bombing_of_Coventry/

An interesting programme about the bombing of Coventry on the night of 14th November 1940. Available until the 9th of this month.

The raid destroyed half of the homes in the city, one third of the factories and three quarters of the buildings in the city centre. In one night.

Only a couple of years ago a World War 2 bomb was unexpectedly dug up in the city centre. (BBC News)


September 23, 2010

Need a bigger square

Because Maths related humour seems to be a trend at the moment

Calvin and Hobbes maths strip

Calvin and Hobbes


Blah twit blah Go to 'Twitter / 6byNine'

Search this blog

Tags

RSS2.0 Atom
Not signed in
Sign in

Powered by BlogBuilder
© MMXII