Feisty in wireless land E-mail
by Sam Varghese   
Tuesday, 28 August 2007
Recently I've been reading a lot about how well Ubuntu works on laptops, particularly when it comes to handling wireless connections - something that is generally a problem under Linux due to a number of factors, the primary one being the paucity of drivers for most cards.


I've never been able to test this out, primarily because my laptop, a P3-600, has no working CD drive; the one that came with the machine in 2001 has become rather temperamental and reads something like one CD out of 100! The laptop has been running Debian for quite some time as it was possible to install that over the internet using a couple of floppies to boot.

For some time I could not experiment with the laptop as I needed it for my own use - I was stuck in bed with a broken leg and sitting at my workstation was a painful exercise..

But now the leg is well, I depend only on my workstation, and so I decided to look for a way of installing Ubuntu and seeing how good or bad it was when it comes to laptops.

I couldn't find any method of using floppies to install Ubuntu over the internet.

One of the HOWTOs I found described a method of using PXE (preboot execution environment) to boot a machine over a network and then install the distribution. It involves setting up an FTP server (in this case tftpd-hpa) and a DHCP server and then serving the boot files to the PC/laptop on which one wants to install Ubuntu.

To quote from the guide itself, what one needs are: a bootloader which is mentioned in the dhcpd.conf file (pxelinux.0), a configuration file for the bootloader (default or MAC specific), a kernel with an initrd file (vmlinuz, initrd.gz) and an image of the base system (mini.iso).

After setting up the DHCP server and the FTP server, I realised that the laptop BIOS does not support booting from the network; hence, I looked at using Etherboot. Using this method, one can put a single network card-specific image on a floppy and once one boots from that, the machine in question looks for an IP from any machine on the network offering one.

Here again, I floundered; despite the DHCP server offering an IP, which was specific to the MAC address of the network card on the laptop, all I could see on the laptop was "No IP". I tried with five different images but then had to admit defeat.

What does one do in such a case? There are plenty of guides to boot Linux over a network when one is running Windows; nobody has thought of the possibility that someone who is using one Linux distribution may want to try out a second one and needs to boot over a network.

So I adapted some of the steps in one of the guides and came up with my own solution.

I needed two files to boot the laptop into an Ubuntu installation - linux and initrd.gz. Both were located at this address .

I moved both files into the boot directory on the laptop and added a couple of lines to the existing grub configuration on the laptop (which, remember, was running Debian). Grub, for the uninitiated, is what most modern Linuxes use to boot - it has a rather pompous name: grand unified boot loader.

The grub configuration file in question is called menu.lst. What I added is given below:

title <anything_you_like>
root (hd0,0)
kernel (hd0,0)/boot/linux vga=normal ramdisk_size=14972 root=/dev/rd/0 rw --
initrd (hd0,0)/boot/initrd.gz


 
< Next story in category   Previous story in the category >
iTWire user statistics Visitors last 30 days
694,279
Subscribers 15,210
#1 independent technology news advertise here
  •   *  
  • Search
  • AdvSeach
  • Login
  • Events
  • FreeStuff

- Advertisement -

Featured Whitepapers

Open Sauce - A GNU perspective Subscribe to the RSS
Open Sauce focuses on the wonderful, wacky world of free and open source software where people write great applications and actually allow others to use them without payment.
Follow iTWire on Twitter

About iTWire

iTWire is all about technology news, information, jobs and community for the IT and telecommunications industry professional. Subscribe to our free ICT daily newsletter