Archive for the ‘Computing’ Category

Firewall stats

Saturday, December 22nd, 2007

Stealing the idea from Theory, I spent a little bit of time today hacking up some scripts to generate some nice graphs of my firewall statistics. The data is parsed out of ulog and fail2ban log files. Still could do with a bit of work, but overall I'm quite pleased with it.

I had originally planned on using the Google Charts API to draw all of the graphs, but it couldn't handle the pie charts; producing output with all of the labels cut off. Shame.

Code can be viewed here, and downloaded either at this tarball or by using darcs with darcs get http://darcs.orangesquash.org.uk/darcs/firewallgraphs/. darcs send any patches my way!

Edit: Fixed a couple of bugs that stopped it from working at all; now we actually have working scripts :(

BBC iPlayer for other OSes

Saturday, December 15th, 2007

Andy Lockran notes that the BBC iPlayer is finally available for non-Windows users, in a fashion – a Flash version which plays in a browser window. It notably doesn't support downloading of episodes, as the Windows version does, but it's definitely a step in the right direction – and shows that the BBC really are working to provide cross-platform support. Hooray for that. It seems to work quite well. Thanks to all those involved!

Edit: OK, seeking seems knackered. Grr.

Edit': The new flash version that was pushed out on Gutsy today seems to have fixed it!

Removing kubuntu-desktop

Friday, December 14th, 2007

OK, I just want to get this out there, since I just had this annoying problem. I installed Kubuntu using Synaptic to see if I'd like it any better than the default Gnome desktop. I quickly found out, however, that it didn't want to run nicely on my system – the mouse seemed to lag to hell – and since I can't be arsed with spending hours faffing around trying to get it to work properly I just went back to Ubuntu (I'll probably give it another try when KDE4 is released, with the benefit of knowing how to get rid of it later).

Uninstalling Kubuntu and all of the stuff that it brought in wasn't so straightforward, however. Simply removing the metapackage kubuntu-desktop with Synaptic or aptitude left all of the extra stuff that I didn't want hanging around. This thread gave a massive apt-get line to remove all of the packages, which seemed more than a little suspect to me (enumerating all packages is bound to be a bad idea; some will get missed and some that I could have potentially installed myself previously could be removed), but upon scrolling down I came upon a nice program called debfoster which purged everything nicely. Note: This has been deprecated in favour of using aptitude. I only had to use deborphan because I didn't install kubuntu-desktop with aptitude in the first place. Use aptitude to save yourself a load of hassle. If, like me, you didn't know to use aptitude and just used apt-get or synaptic, deborphan will save your bacon and even keep any KDE packages you've explicitly installed (Kile and KBib for me). Paraphrasing from the thread, these are the commands you need to run:

sudo aptitude install debfoster
sudo debfoster -q
sudo sed -ni '1h;2,$H;${g;s/kubuntu-desktop\n//g;p}' /var/lib/debfoster/keepers
sudo debfoster

(Note that there are four lines here – the "sudo sed" line ends with "keepers".)

Review the output to see if it looks like it's removing all of the unnecessary kubuntu packages, then press P to purge them all and Y to confirm.

Hmmbuntu

Sunday, December 9th, 2007

A couple of weeks ago I decided to try out Ubuntu for kicks, and to turn my PC back into something I can fiddle around with. Well, it seems that I got my wish.

First of all, I couldn't get it to boot after installation. The installation itself appeared to go smoothly, but then upon rebooting I got the dreaded GRUB Error 17, which means "Invalid device requested". After hours days of messing around with BIOS settings, grub-install witchcraft and the like, I had pretty much decided that I just wasn't going to get it to work on my IDE drive, and decided to try it on a SATA. This almost went smoothly; on the first boot, I got sent straight to Vista, but Super GRUB Disk, with its charming broken English fixed me right up. Almost. I had to edit one of the lines in the GRUB config file that it had created to point to the right HDD, but I had finally gotten into Linux!

On first impressions, everything was great: sound worked out of the box, MSN support was there and very nice, and Synaptic made installing new software a breeze. Since then, things have been mostly good; for someone like myself who doesn't mind the occasional trip down CLI-lane, it's definitely usable for day-to-day work. I'll quickly list my remaining niggles, just to get them out there.

  • Compiz Fusion is a bit buggy, and seems to take up a lot of CPU time. Sometimes when I maximise windows, they jiggle around constantly until I unmaximise them.
  • The media players aren't quite there yet. Rhythmbox is a bit flaky and most of the time won't let me navigate the playlist with my arrow keys after being alt-tabbed to. Banshee seems a bit thin feature-wise. Amarok loves to peg the CPU and crash, and has weird keyboard-navigation too (although it is the one I'm currently using for its wealth of features, decent iPod support and nice global hotkeys).
  • It took me a little while to realise this, but only the front speaker of my 5.1 was enabled by default. I had to drop into alsamixer to unmute and enable all the others, after which they worked just fine. Also, somewhat confusingly, the volume control button on the taskbar comes set up to only control this one speaker. Changing it to control "PCM" seems to act more like the master volume switch that I expect it to.
  • Even though I have turned off all options which I could find, my display still insists on suspending after 10 minutes of the computer being idle. This I have only just "solved" (in reality a hack) by commenting out Option "DPMS" in my xorg.conf file. Edit: Ok, this didn't actually solve anything. I'm stumped and Really Pissed Off.
  • Related to the above, VLC (my media player of choice), doesn't seem to stop the display from suspending while playing media. Very annoying when trying to watch (say) a film.
  • I still cannot get BBC radio streaming to work in Firefox. I'll probably have to install the official Realplayer, which I really don't want to do.
  • The Java situation is very odd. I understand this is due to license issues. And no amd64 firefox plugin from Sun makes me sad, as the free Icedtea one doesn't want to work.

So there we have it. I'm enjoying it overall, but there are some annoying niggles. (I really don't like being told off on IRC for daring to express frustration) Given a few more releases, Ubuntu should have gotten rid of most of these things, making for a genuinely useful OS.

VPS and other stories

Monday, December 3rd, 2007

And the chance to get myself a VPS came sooner than I thought. Today a message came out on the bitfolk mailing list, saying that there were some 120M servers available. I quickly snapped one up and, as of next Monday, will be the proud owner of my first VPS. Let's see how quickly I can fuck that one up.

It'll just be running httpd and irssi at the start, although I may get brave and decide to host my email. Fun!

In other news, the dissertation interim report is nearly done. Only a gantt chart and "roadmap" to write then I can lay this to rest. Knocked up some nice diagrams in Inkscape, which I must say I'm growing quite fond of (even if the connector tool is currently a bit wonky). I've a presentation on it next Tuesday (11th), which I'm quite nervous about, not being a confident speaker and all. Ah well, it's only 10%; sure it'll be fine…

Hello world!

Monday, December 3rd, 2007

I managed to get Apache and WordPress installed on my shiny new Ubuntu PC, joy. Actually it's a bit weird; I ran the wordpress script to generate a configuration file for a mysql user wordpress, but never actually created the user on mysql. Then when I installed wordpress, the user was mysteriously already there. I wonder how it got created. Anyway, I'll hopefully be able to keep this up most of the time, but do bear in mind that it's my workstation so cannot be up constantly. I do have to reboot to Windows sometimes to play games y'know. When I get the chance I'll be grabbing a nice VPS at bitfolk, which should make things more stable.

Anyway this is mainly a test post. Soon I'll have my shiny Haskell blog which I'm writing for my dissertation up and running, and it will be able to take over from this. Yeah. It will.

In the meantime, expect more inane chatter.

Out.