Search Results: "noodles"

24 November 2005

Jonathan McDowell: Network installing FreeBSD

So, Black Cat Networks have a bunch of nice dedicated servers and I've been working on various network installs for them. Debian was of course easy; there's a nice netboot.tar.gz that has everything you need (including configs for serial consoles). Fedora Core was a bit harder; there's mention about network boots and installs, but not a lot of docs. A pxelinux entry like:
label fedora
	kernel fc4/vmlinuz
	append initrd=fc4/initrd.img ramdisk_size=8192 console=ttyS0,9600n8 serial
does the right thing, with vmlinuz and initrd.img coming from http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/images/pxeboot/. Fedora's a bit annoying in that it doesn't offer you a selection of mirrors to network install from though, so you need to have worked that out for the install. FreeBSD however, was much harder. Firstly, there aren't any decent docs about it that I could find. Secondly, it really wants to use NFS, even though TFTP will be required anyway for the PXE boot stage. So, I ended up recompiling the pxeboot loader with LOADER_TFTP_SUPPORT enabled and LOADER_NFS_SUPPORT removed (though it still tries to do NFS mounts it seems). Of course, you can't do this under Linux easily. Nor can you do it on FreeBSD 4.10 it seems (I was recompiling the FreeBSD 6 loader). However you can on FreeBSD 5.4. You need the lib and sys source trees to do so. Or you can have my prebuilt copy, freebsd.0. pxelinux config looks like:
label freebsd
	kernel boot/freebsd.0
assuming you put it in a boot subdirectory under your tftpboot root dir. You then need http://ftp.uk.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.0/6.0-RELEASE-i386-bootonly.iso to get the rest of the /boot contents from. Burn it to CD or loopback mount it or work whatever magic does the trick for you to get access to the files in that image. Then copy all of /boot on it to boot in your tftproot. You don't actually need boot*, cdboot, loader or pxeboot, but they're all small files. Then, add the following to loader.conf:
boot_serial="YES"
console="comconsole"
kernel_options="-h"
vfs.root.mountfrom="ufs:/dev/md0c"
So, now you can type "freebsd" at your pxelinux boot prompt and it'll boot up the installer. Rock. I don't quite understand why I had to include the kernel_options line above - I thought setting boot_serial would do that for me. However, it works. With the only real pain being having to recompile pxeboot and the lack of docs. Which I've now sorted for you. ;)

23 November 2005

Matthew Garrett: Dull software announcement

VBEtool 0.4 - "Where the fuck did that gin and tonic come from, and just how drunk am I?" has been released.

VBEtool is a very dull piece of software that executes code in your video BIOS. As of version 0.4, a set of drunken Northern Irish people have added support for x86emu in order to allow it to run on systems that do not support vm86 mode (such as an AMD64 in 64-bit mode). As an added feature, version 0.4 will run on kernel 2.6.15 thus making it at least 3 times better than version 0.3. This functionality is added at the possible expense of it scribbling over chunks of utilised memory. Thlinux.

VBEtool will happily allow you to make DPMS calls to switch your screen on or off, but is primarily useful for reinitialising your video if your power management system can't do it itself. This makes it ideal for ACPI users. x86 people have had this for some time, but 0.4 brings the love to AMD64 users and IA64 users (yes, all 3 of you). Source is available from http://www.srcf.ucam.org/~mjg59/vbetool/. It requires the development headers from pciutils in order to build, but should otherwise be self-contained.

If 0.4 breaks on systems where 0.3 worked, please let me know and I'll point out how it's entirely not my fault and then fix it anyway. I'm lovely like that. But it works on my AMD64, so boo to you.

16 November 2005

Jonathan McDowell: Spamcop Kill Kittens.

Dear SpamCop, Please die in a large chemical fire. Don't fucking expect me, as postmaster of a secondary MX, to read every single bounce that comes from it rather than just sending a bounce message. And try educating your lusers (and truely, some of them are lusers) about how to unsubscribe from lists rather than deciding to report them as spam. And while I'm not keen on marketing email, some of it is legitimate and has working opt out systems. Just because you missed the opt out box doesn't make it spam and doesn't mean the way to deal with it is to report it as such. Gah. I like to think that SpamCop's heart in the right place, but it doesn't avoid the fact that I spend more time dealing with fuckwitted reports from them than I do with spam (because I do actually take the reports seriously as sometimes there's truth in them). Outblaze's FBL is the only other thing that comes close in terms of the sheer stupidity of the reporters. SpamCop; Just Say No.

15 November 2005

Jonathan McDowell: No more hardware today, please.

So, today has been a day of hardware. Some good, some bad. First, the good. Take one Via EPIA-M motherboard, add a helping of LinuxBIOS and Etherboot and let simmer for a few hours on a low heat. Then add a sprinkling of Phil Hands' d-i preseeding for the final garnish. Tweak to suit your tastes and lo and behold. A neat little motherboard that does proper serial console, boots d-i over the network via tftp and does a completely automated Debian install. Of course, it's not quite that easy. LinuxBIOS requires a few out of tree patches that are still under discussion. The latest version of Etherboot (5.4.1) doesn't seem to work (lots of rubbish on the serial console and no boot), but the version that does (5.2.6) requires a backport of the latest via-rhine driver to avoid leaving the network card in a state that Linux isn't happy with. And Phil's documentation could do with some updating (which I should really email him about). Oh, and add to that the fact that numerous things seem to assume that there is a PC BIOS and that it will support standard interrupts. Yeah, like that's going to happen. Still, I seem to have almost got there and it's quite funky to watch it all happen automatically. Kudos to the d-i team for the ease with which you can preseed. Flush with success I moved on to the next challenge; scanning some forms before posting them off. Nice and easy, normally. If it weren't for the fact that the machine with the SCSI card for the scanner just happens to be the one I stole for the above, and that the new case it's in doesn't allow any PCI cards. Bah. So, find a spare machine, get it into a state where I can actually drive the scanner, scan away. Took far too long. I really need to get it hooked up to my main machine, but there isn't enough desk space to have it close enough for the cables I've got. Perhaps I should crack and buy a USB scanner. I don't really need high quality, just something as an alternative to photocopying. After that trial I've moved on to upgrading my PVR box; I got a new 320GB HD today to replace the 40GB that I'd been using - it was getting to annoying to have to either watch or syphon off various series that I'm recording. While I had the box open I decided to upgrade the motherboard to something that might support wake-on-lan, so this turned into a bigger job than it should have been. :( I'm currently waiting for the data to copy across before trying to stick it back together. Bah. Don't suppose anyone has an S370 P-III better than 667MHz and no better than 1GHz they want to part with cheaply? I'm currently running a Celeron 800MHz (which I think is a slight step up from the previous PIII-667), but a little more oompfh would help with streaming over the network. I'd just upgrade to something modern, but I suspect the extra cost of silent cooling would be a killer.

12 November 2005

Radu Spineanu: New Faithless Fan

I recently discovered Faithless sounds pretty nice. By some weird circumstances i got my hands on a Faithless Live At Alexandra Palace DVD.
Knowing only a couple of their songs, i was pretty convinced the show would be boring. I was so totally wrong. I've watched it about 10 times already, and i'm not bored yet.

In other news, i had to take an asm test thursday. It was pretty weird, since i woke up that morning not having read any of the material. Thank God for Google, and the couple of asm tutorials out there. The subjects were easy (count the number of times a character appears in a string, reverse a string).
Still, I didn't make everything perfect. Having little time, i just read through the tutorials and didn't actually write any code until the test. In the end i remembered something wrong from the examples, and the program was not ending properly...

About having great ideas in weird moments. In my case it usually happens right before i fall asleep. At least with showers you can take as many as you want :).

11 November 2005

Andres Salomon: showers

Jonathon, maybe if you wrote a song about your thoughts, you wouldn’t forget them as easily? :) Why is it all the sites that I visit when looking for lyrics and tab are 90% (flash and other annoying) ads?

Jonathan McDowell: Thinking in the shower

I often find I have really great ideas about stuff to blog about, code or do, while I'm in the shower. And then once I'm finished showering I've forgotten all about them. Becca says she does the same, but usually while in the bath. Where do the ideas go? Down the plughole with the water?

9 November 2005

Jonathan McDowell: OpenID enabled

Right, I think I've now done the magic to OpenID enable comments. Thanks to Slarti for the basis of the Blosxom support to do this. If you've got a Livejournal you already have an OpenID and if not then you can just a service like that provided by ImperialViolet, which is what I'm doing at present until I find time to knock a server up for earth.li.

7 November 2005

Clint Adams: Which way did it go?

I only have two things to say to this. This and this.

Jonathan McDowell: The Fear

This post is mainly for Chris, but also because it too me slightly longer than expected to remember the exact link to The Fear. I have a copy of the Preacher cartoon stuck beside my computer.

2 November 2005

Martin Michlmayr: Kyoto, Osaka, Japan Debian Mini-Conf (JDMC)

On Wednesday I got up way too early in order to go to Heathrow in time for my flight to Osaka. The flight went via Frankfurt and wasn't terribly spectacular. I was a bit disappointed in the flight entertainment system (only shared monitors in the middle of the plane, mostly showing movies I've seen before) but I had Hodges' biography of Alan Turing with me and slept for a while, so it wasn't a bit issue. Arriving Thursday morning, Yabuki-san, who had originally invited me to the Japan Debian Mini-Conf (JDMC), picked me up from the airport. Shortly afterwards I met up with Imai-san, who was so kind to go sightseeing with me in Kyoto. I wanted to go there because I heard that it's quite different to Tokyo, where I stayed for about 10 days for a conference three years ago (incidentally, that trip was in October too, so it was three years ago almost to the day). Kyoto was surprisingly close to Osaka — it was faster to get there than to go from Kansai airport to the city center of Osaka. We first went to Nijo Castle, followed by some temples, including Kiyomizu-dera, one of the most celebrated temples of Japan. We had sushi and noodles for lunch, and in the afternoon we returned to Osaka so I could rest for a few hours before meeting up with the interpreter of the conference. This we did at a restaurant specialized in tofu. The food was surprisingly good given that I'm normally not a big fan of tofu at all. The following morning, I had my keynote speech, talking about release management. I covered various insights learned from my research and then tried to apply some of them to Debian, asking the question whether something like time-based releases would make sense for the project. A big issue is obviously planning, and I think the new release team does a much better job at this than we did in the past, even if many improvements are still possible, such as better coordinated NMUs when major transitions take too long. All of the other talks where in Japanese, so I was either working on my laptop or walking around the city. The first day, Hatta-san and I went to Osaka Castle; Roland Mas, who briefly turned up for the JDMC, joined us as well. The second day I did some shopping before going to the conference where I participated in the key signing session. On Sunday morning I had to leave again... it was a nice trip, even though much too short and influenced by jet lag. I think there could have been more people at the JDMC but on the other hand it's nice to see some efforts to attract new developers in Japan and this conference was certainly a good first step in that direction.

28 October 2005

Jonathan McDowell: Hello, from a frog free connection.

Rar. I've finally got the Netgear happier. I grabbed an OpenWRT 2.4.30 kernel and hacked that into my OpenEmbedded image. That stopped the init panic messages. I've also done some work on faking up a /etc based on the values from nvram - this should hopefully mean I have persistent data over reboots as well as meaning you can upgrade from a stock Netgear DG834G image and keep your settings. I think I'm going to have to write a very basic bit of C to crypt the password though, as there doesn't seem to be any existing tiny utility in OE that'll do so. Anyway. This post is done from my desktop sshed to the Netgear which is connected to the ADSL and doing IPv6, and I'm then sshed from there to the via IPv6 (I could have setup the routing so I just sshed directly from my desktop through the Netgear, but this was quicker). Yay! That proves the ethernet, ADSL and IPv6 works. Haven't tried the wireless yet. I think I'm at the stage where I need to pull the OpenWRT kernel into the OE framework so I can build it all easily, and then I'll commit it and be able to provide an image in case anyone else is actually interested in this warbling. :)

26 October 2005

Jonathan McDowell: Further DG834G work

I finally found some time to devote to hacking on the DG834G. Given that it seems the bootloader checksums almost the entire flash on each boot a writeable flash file system doesn't seem to be an easy option. This rules out vanilla OpenWRT unfortunately, which is a shame given the AR7Port. However as I'm familiar with OpenEmbedded (which seems to be non working at present, but is behind OpenZaurus which I run on my C3000) I decided to have a look at getting that going. So now I have an image that boots, creates a ramfs for /, pivotroots the flash round to /media/realroot, creates a bunch of symlinks and should give me a basic filesystem to play with. Except it's not very happy, producing INIT: PANIC: segmentation violation! sleeping for 30 seconds. messages. Booting to just /bin/sh works fine, but various things won't run. I'm currently blaming this on the fact I haven't changed the default Netgear kernel from 2.4.17, so the next course of action is probably to use an OpenWRT based kernel and see how that goes.

21 October 2005

Jonathan McDowell: Goddamn stupid firewalling

Dear World, ping is a very useful command. It lets me see if a host is up. If you block ICMP ECHO/REPLY then I instead have to play the "Guess what service might be listening" game. Or I assume your machine is down and might worry (because I care). So please don't do it. I really don't see what you're trying to gain; it strikes me as firewalling without actually thinking about it. Are you by chance ignoring things like destination unreachable as well? And breaking PMTU discovery? Well done you.

MJ Ray: Will the last ex-UEA-er to leave Norfolk please switch out the light?

A surprisingly high proportion of ex-UEA people stay in the area after finishing at UEA. Over 40% want to, according to the local chamber of commerce. Eventually, that number falls: with John and Brett leaving, I think I can now count on one hand those from my Norwich years (1994-1998) who I know are still here. Most left some time ago. Why? Small place syndrome? Underpaid work? Both? Possibly. It feels like only in Norfolk could the train station start to expand its car park to cope with demand and the same week most train services to it are cancelled because a Cambridgeshire farmer drove onto the single line stretch, was killed and it takes at least a day for access and safety checks in this sparsely-populated area. From the BBC's picture, the unit involved was one of the commemorative King's Lynn "picture trains". You seldom hear what happens to the damaged trains and injured drivers. I guess the railways and the media doesn't like to worry passengers. Even the Potter's Bar investigation ending only got brief mentions that I saw. Also at the train station, local police put out a picture of people they would "like to interview" about the spate of recent bike thefts. Possibly as a result, they've charged one man. Someone I know had a bike nicked, which meant a long walk to/from work until it was replaced. Very annoying. The sort of petty bike vandalism/theft which annoyed savs is also on the increase here again. I'd've expected nicked bikes to sell better in summer, but maybe the local crims are thick or there are more easy-to-nick bikes in September. At least it's not Fakenham, (which is one of the most boring places on earth, you may remember - original source ) where the headline story is that the kerbs are too high. I'm sorry someone was hurt, but kerbs here seem tiny compared to the ones in Northamptonshire. Probably they've all been lowered for safety there too now. As a result of adding Dave's blog to Planet ALUG, I noticed BritBlog for the first time. I spent a while browsing the other Norfolk-based blogs on it one evening. Unsurprisingly, I knew about most of the ones I found interesting already, apart from Ztroller who links to me... erm, why? Does he read this? Most listings are from blogspot and I still won't add Atom support to my blogging software - I want to read, not edit, so Atom is mostly extra cache filler. I only added Really Simple Syndication as well as RDF Site Summary because it was fairly cheap to do and I didn't know about the obvious way to get RSS 1 from Wordpress. Finally, in local(ish) concerns, Northern Ireland, from Noodles' emptiness:
"while I'm ranting, why is the adjective for someone from the UK "British"? Britain doesn't cover all of the UK. I wasn't born in Britain yet I'm British. Can't I be UKish or something?"
I'd hate to be called UKish. I don't have any particular affection for this Kingdom's political boundaries. If the UK ended tomorrow, would anyone besides its rulers mourn? I'll not thank you if you call me British. I'm English, a midlander and Towcestrian. British nationality is a side-effect. (And why is it so hard to get .gb domains anyway?) It's odd that there's such argument over England's anthem. So there is imagery or irony involved in Jerusalem, depending how you want to view it: who cares? It's rousing (unlike the UK dirge) and mentions England past. Yikes, I've just discovered I'm agreeing with Billy Bragg of all people. As for the UK, why don't we work together with others when we agree and work independently when we don't agree? Unfortunately, few politicians advocate English self-rule, apart from racist bigots and English imperialists. The really depressing thing is that those sort of people would probably easily get a majority in any English legislature, if backed by the mess media. Maybe Britain is diverse enough that it balances the extreme English... diverse we are or de verse it gets... (ouch)

19 October 2005

Jonathan McDowell: <twomack />

From an ubuntu-announce mail just received:
  • A slim default installation, occupying just 400 megabytes
Now I'm not picking on Ubuntu in particular here, but the word just really does seem to indicate that Tom Womack's proclamation that "Disk space is cheap" just continues to get truer and truer. My first well used Linux install was on a 40MB disk and I'm prepared to bet there are plenty of people who started with less. Even these days people like OpenWRT are producing distros that fit in 8MB of flash. I think it's a sad reflection that 400MB is considered a small footprint for a mainstream distro.

Next.

Previous.