December 14th, 2010

Notes from yesterday.

When setting up one's existing laptop to masquerade a wired connection, it's not enough to stare at /proc/sys/net/ipv4/ip_forward and go "it's 1, why isn't it forwarding packets"? You also have to actually put in the masquerading rule. (Luckily I still have after all these years so I don't have to remember "iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE". Yeah, I should take an hour some weekend to reimplement and upload that project, it was fun to have around. I doubt WebOffice would object more than 7 years after they went out of business.)

The firmware to make an iwl6050 wireless card work lives at but I had to back down to version 4 because the ubuntu 10.04 kernel didn't understand version 5. It goes in /lib/firmware. The reason it didn't work after _that_ was that my home router filters mac addresses (too slow around here otherwise) and there's a chicken and egg problem adding the mac to it from a machine that's not already in it, but Causal can export a wireless connection and that worked fine.

To turn a vanilla xubuntu install ito something vaguely usable as a development environment, you need to "aptitude install" 8 gazillion things, starting with: libc6-dev manpages-dev mercurial git cvs pdftk g++ gcj libncurses5-dev xmlto diffstat patch libsdl1.2-dev git-core htop

The 64-bit version of skype insisted on installing the 32-bit compatability libraries. I don't know why.

Ze laptop! It is working!
  • Current Mood
    accomplished accomplished
  • Tags


The wireless card in this laptop does not work when it first boots. You have to "modprobe -r iwlagn", "modprobe -r iwlcore", and then "modprobe iwlagn". Then it works.

The reason KVM didn't work is the VT extensions were switched off in the bios. I have no idea why everything seems to default to that. It turns out the laptop _does_ have a bios screen, there's just no mention of it during boot, you have to mash function keys and hope for the best. (I found a web page insisting it was F1, but that didn't work. Mashing lots did.)

The openwall livecd stops and prompts you for configuration. The one non-negotiable part is setting a root password. If you leave it blank, you won't be able to login. It rejects passwords (such as "root") as too weak, and literally won't let you set them, even when doing so as root. The old trick to remove the "x" from /etc/passwd

Yes, they've modified the C code to make the thing less usable, and it is a live CD. Really! (I'm booting
it under KVM because I want to play with containers. All its network connections are masequeraded. The OpenVZ site says this is the only supported LiveCD, there was a knoppix one but it's no longer maintained. I don't know why.)

Pretty average Tuesday, really.
  • Current Music
    I should put some on.
  • Tags