Category Archives: Geek

Good way to start the day


[ 121.816110] ata2: lost interrupt (Status 0x58)
[ 121.820044] ata2: drained 2048 bytes to clear DRQ.
[ 121.823588] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[ 121.823697] ata2.00: BMDMA stat 0x4
[ 121.823821] ata2.00: cmd c8/00:08:d5:2c:ce/00:00:00:00:00/e1 tag 0 dma 4096 in
[ 121.823829] res 58/00:08:d5:2c:ce/00:00:00:00:00/e1 Emask 0x2 (HSM violation)
[ 121.824093] ata2.00: status: { DRDY DRQ }
[ 121.824240] ata2: soft resetting link
[ 121.996468] ata2.00: configured for UDMA/100
[ 121.996507] ata2: EH complete

To be fair, I noticed it last night but I didn’t bother looking into it. When time allows today, I guess.

Netbook Upgrades

A few months ago I was having issues with the keyboard on my Netbook. I found some keys just simply took more pressure than others to register a hit and I found that results of my typing looked like I was from myspace.

Ebayed a new keyboard with a standard layout instead of the international layout and that problem was solved.

Shortly after that, the power adapter bit it. Ordered a new brick in through a local shop and all is well. Bonus is this one uses a double barrel cord instead of a triple barrel cord and is physically smaller so it’s easier to pack around.

And last but not least, I picked up an 9-cell extended battery from DealExtreme. I found that the 3-cell that came with my AA1 just wasn’t enough to be willing to leave the house without the power adapter. Now instead of 2ish hours of battery life I can run around with 6+. Not bad for $55.

With the above issues resolved I’m finding I like the netbook more and more. I spend less time on my workstation at home, and I leave the work-laptop at work unless I’m going on the road for more than a few days. I’d tried out Ubuntu Netbook Remix 9.04 and it’s stuck. I like the netbook launcher over default gnome. This has definitely been one of my more successful toy purchases to date.

On TMPFS on the Acer Aspire One

I’ve found FireFox3 to be rather slow on mouse and a bit of reading shows that it’s primarily due to how disk i/o heavy FF3 is. SQLite backed this and that, it’s more than the poor little SSD can take. However with 1.5gb of ram there is a solution. TMPFS!

I’ve mounted a ram-backed TMPFS and run Firefox, Thunderbird, Liferea and Pidgin out of there. It’s made a huge difference. I started with the instructions from here, and have since modified the setup over the last week.

Step by step, this is what it would take to recreate what I’ve done. As your regular, browsing user:
$ mkdir ~/.tmpfs

Then as root add the following to /etc/fstab, modifying it for your username, uid, and gid:
my-tmpfs /home/$USERNAME/.tmpfs tmpfs size=200M,noauto,user,exec,uid=1000,gid=100 0 0

With that done I modified the shell script to read as follows:
#!/bin/bash
# Change this to match your correct profile

cd "${HOME}/.tmpfs_backup"
if test -z "$(mount | grep -F "${HOME}/.tmpfs" )"
then
mount "${HOME}/.tmpfs"
fi

if test -f "${HOME}/.tmpfs/.unpacked"
then
rsync --exclude='Cache' --exclude='.unpacked' --exclude='lock' -r "${HOME}/.tmpfs/" .
else
cd "${HOME}/.tmpfs"
cp -r ${HOME}/.tmpfs_backup/* . && touch .unpacked
fi

I named it tmpfs_rsync and put it in ~/bin. That’s right, no more tar for this guy. I found that after adding Thunderbird, Liferea and Pidgin into the mix, I was creating a sufficiently large enough tarball that performance would drop through the floor every 5 minutes as it backed up the tmpfs. Speaking of every 5 minutes, the respective crontab line for my user:
*/5 * * * * ~/bin/tmpfs_rsync

Make the script executable, and execute it once to mount the tmpfs and create the .unpacked lock-file of sorts:
$ chmod u+x ~/bin/tmpfs_rsync
$ ~/bin/tmpfs_rsync

With that done, all that’s left is to copy what you want to the tmpfs, then symlink it back in place. In the case of Liferea:
$ mv .liferea_1.4 ~/.tmpfs/liferea
$ ln -s ~/.tmpfs/liferea_1.4 .liferea_1.4

I repeated the above for Firefox, Thunderbird, and Pidgin and bob was my uncle. Make sure tmpfs_rsync executes once before shutdown and everything is backed up.

Apparently I don’t fuck around

Yesterday I ended up migrating what was left of my colocated machines onto a single VM. Had about 5 minutes notice before I decided to pull the trigger and with that in mind I have to say it went fairly well. I’d already updated DNS settings for my domains in anticipation of a change as well as dist-upgrading my main hosting VM and updated the hosting panel to the latest stable release.

With all that done, starting with a fresh install of Debian Lenny it took a couple hours after work to migrate most things over. I bollocksed up the first installation of ISPConfig, not entirely sure how and ran into a database issue. Being that this was a migration though I figured the easiest thing to do was to nuke it and reinstall the hosting panel. Did that, re-imported the databases and away we went. Had a bit of a mail issue for a few hours, nothing major though.

I spent a bit of time this morning modifying the hosting system to put mail tagged as spam in a Junk folder under each users’ IMAP root and we’re back up and running as we were yesterday with relatively little downtime. Exceedingly little considering it wasn’t a planned move. So for anyone I host that was wondering what the story was yesterday, that’s it. We migrated and upgraded. Now to arrange a time to go collect my hardware and sell it off.

There are a dozen aborted posts under drafts

All of which I want to finish, none of which probably will be. I think Ze is right, if you have a neat idea just throw it out there now. To hell with trying to release it when it’s ready just punt it out the door and see what happens.

There’s stuff in there I would liked to have written about at the time, and I could do some small posts about them but I don’t know that it’s all that engaging to do so. So fuck that noise.

I saw Richard Fucking Stallman, a few weeks back, give a talk on how Copyright harms society. Nothing unexpected, I got to ask a question and he interrupted me as I pretty much expected he would.

A few days later I bought an Acer Aspire One. Upgraded it to 1.5gb of ram and soldered in a bluetooth adapter. Wiped whatever the hell distro they put on there and installed Debian Sid. Happy times.

The Soekris is coming along, it’s doing all routing at home quite handily and I’m working on asterisk. Once that’s done I think it’s time to ditch the personal cellphone. I’m tired of giving rogers money. The number will be ported to the VOIP account and people who don’t get the new mobile contact number immediately will have to accept voicemail and email as contact options for me.

Further to that, I think it’s time to ditch the equipment at the colo. Nothing I do right now justifies a half-rack of equipment, I could do everything I do currently in a rented VM, so that’s the plan.

It certainly does sound like I’m trying to cut expenses, and that’s because that’s exactly what I’m trying to do. I had a plan for this year, I think it’s about time I made it happen.

Other news, the Golf was broken into this week. They got away with a flashlight and a couple of car chargers. Fuck them and everyone who questions my carrying the tactimurse.

Time to stay angry.

Oracle is reborn!

Years and years ago, when I first started playing with linux and teaching myself networking I built up a PC to use as a router at home. It was based on the family’s old desktop, a Pentium 2 233 w/64 mb of ram. I hacked up an old AT case to mount the ATX board in and used the only spare hard drive I had, a 100mb drive. I squeezed an install of Debian Potato (2.2) on there in just over 50mb and I had myself a router running ipchains. Over the years oracle grew up, was upgraded to a Athlon 2200+ and 512mb of ram, I added a bunch of hard drives one by one and she became the home fileserver.

A drive failure one saturday morning in September 04 led me to the job working at the mom&pop computer shop. I was looking for another harddrive with the same disc geometry so I could swap the logic board, apparently that was enough to peak the interest of the owners.

It was with that failure in mind that led me to decomissioning oracle. I consolidated my data, and my drives, and built up my RAID array in neo. Oracle was replaced by sati, a WRT54GS running OpenWRT.

Oracle is reborn though. I’ve recently picked up a Soekris Net5501-70 to use as my router at home and it seems that sati just isn’t the appropriate name, as this embedded PC is more powerful than sati ever has been, and will do more than sati ever could. It is only appropriate that the 5501 take on the name oracle, and a few very similar roles as well as some new ones.

The new oracle is 500mhz AMD Geode LX with 512mb of ram running on a 4gb Transcend compact flash card. I’ve installed Debian Etch (4.0) and she’ll be running as the gateway/firewall for the home network, with sati handling only WAP duties from now on. Oracle will be responsible for traffic shaping and DNS (both caching the external net and running the .thematrix.dagr.net domain internally). I intend for oracle to also run Asterisk for my local network, feeding my Linksys PAP2T-NA as well as my Cisco 7960. I’ve been considering bringing in a DSL line to suppliment my cable connect. Not so much  for the extra bandwidth but for the better conenctivity for work.  Currently traffic from home goes to Vancouver to get to the office 7km away from my flat. I think oracle would serve well to run an IPSec link to the office via the DSL line and keep my personal traffic routed over the cable line. I’m not sure what else the new oracle will get up to, but I’m certainly looking forward to playing. This is the first new toy that’s not just a mere upgrade I’ve gotten for the home network in a good long while and I can feel the hacker juices flowing again.

I’m rather excited.

Was building a few machines yesterday

And it looks like I got the new release of xp, which is XP SP2C.  I should have realised something was awry when I notice that it was a new sticker style for the license key, but I didn’t clue in.

So when I tried to install the OS with one of the older discs I have around the office it took the key no problem.  However on the first boot, XP required immediate activation.  Further to that, when stepping through the activation wizard, no Installation ID was generated.

This is because I used a SP2C cd key with a original SP2 disc.  Installing with a SP2C disc solves this problem.  A quick search on google and the MS KB didn’t really give me any hints, so I figured I’d post about it here.

Offline Update of Windows Boxen

While catching up on the month of podcasts I somehow spaced on, came a cross an episode of Security Now that mentioned ctupdate from Heise Security.  Essentially, you pick what products you want to create an update disc for, then the language, then the format (cd or dvd) and hit go. It downloads all the updates from microsoft.com and packages them on the cd.  From there it uses MS’ Baseline Security dealy to update the machine. Add in the nice feature of it being able to automatically reboot and log in (with an account it creates for this purpose, and delete when it’s done) and it’s quite the tidy little package.

Download it available here.

Decent guide here.

I just got a call from my cell carrier

They verified who I was and then told me a qualified for a new FREE phone!! Oooh!! I could have my very own Nokia 6085 if I sign up for a new 2 year contract with them.

I told the guy no thanks, and he sounded confused. He asked why I wouldn’t want a new phone, and I told him I was quite happy with my Treo 680. He said according to their records I had an old Nokia (the last phone I bought from them). I said I wasn’t interested in the Nokia clamshell and wished him a good day.

It really seemed as if he thought I was lying to him….

Breaking News!

Dave read a book!

A fiction book!

Last night I finished reading “Variable Star”, by Robert A. Heinlein and Spider Robinson. And by finished, I mean yesterday morning I was less than half-done. After I’d done laundry and dinner and such I picked it back up and didn’t really put it down till I was done at 0100. I really wanted to go to sleep earlier, but there was just no good place to stop in the last half-dozen chapters.

Most people that know me are rather shocked by all this.  It’s been a good long time since I’ve read any fiction.  A good part of starting to read fiction is finding a new way to destress.  Finding a way to have my life not revolve around work all the time. And possibly improving my vocabulary a bit. I know the creative part of my brain has been atrophying for a good chunk of time. I can feel it.  It’s like trying to use muscles to do something way beyond their capability. I try and I can feel my brain fire back with a “503 Service Unavailable”. Dialtoning every time I try to explain something is getting rather old.

So I picked up “Variable Star” after listening to Spider Robinson’s excellent podcast (including some chapters of the book as well as other essays) as well as (albeit non-fiction) the 2 volume abridgment of Arnold J. Toynbee’s “A Study of History. It currently hurts to read this, but it’s time I start pushing my brain again.

And the upside of it all is I get to become an even bigger geek in the process.