As an active developer, I feel the benefits of open software every day. At the same time, having worked for several large corporations, I'm constantly reminded of the vast chasm dividing those of us who believe in the power of 'open', from those who think it is just another nutty hobby. This weblog is a running commentary on my experiments with various open products and libraries in an attempt to bridge this gap...
Monday, October 29, 2007
Dell Latitude C640, Ubuntu and WPA2
I have a Dell Latitude C640 which had Ubuntu Feisty Fawn running on it. With my older Linksys WRT54G, everything was going fine, albeit with less security since I could only manage WEP on it. Then a few weeks back the router flamed out and I had to buy a new one.
Interestingly - for those in the market for the new Linksys router you may be confused by a Linux friendly open source model and another Windows compatible one. The specs do not help you understand why they should be different and I figured out only after some Googling what the mystery behind the brand separation was...
Now the new router supports WPA2 and I had to have that running over my wireless network. But here I have an embarrassing problem. While my Windows based Dell Latitude D810 is happily running over the same network, Ubuntu is just not doing that well.
The Solutions:?
Unfortunately no solutions so far. These are some of the things I've tried:
* Removed Network Manager and replaced it with wicd. According to some posts this problem could be due to a problem with Network manager trying to drop WPA2 connections and reconnecting constantly. It did seem to help initially (I could get intermittent connectivity) but not anymore
* Upgrade to Gutsy Gibbon. This has improved a lot of things but not connectivity to a WPA2 wireless network.
More coming up on this investigation...
Sunday, October 28, 2007
Ubuntu and VMWare VM Copies
I had created Ubuntu Server based virtual machine through VMWare Server sometime back and was in the process of creating two Ubuntu servers that would need to run simultaneously in a LAN. Each VM was using NATed networking and were getting the IP addresses through DHCP. Keeping the original as it was, I created 2 copies of the virtual machine files. As per VMWare recommendations, on startup for each new VM, I had VMWare create a new UID to prevent confusion.
I was pleasantly surprised to find that everything worked perfectly when I brought up each of the servers up separately but then when I brought both up, the one that came up second, started having network issues - specifically there seemed to be a IP / MAC address conflict between the 2 machines.
Initially I thought it was a VMWare issue. Perhaps VMWare was not creating a unique MAC address for the virtual machines when I copied them across. The vmx file which stores the VM meta information seemed to be the potential culprit and I all that was possible to do to make sure that the information in there was good. But eventually I had to admit that VMWare was handling this part of its functionality without a flaw. So where was the problem? Who or what was storing MAC addresses that was eventually leading to the conflict?
The Solution:
The answer was simple when I finally found it somewhat indirectly at the following posting. The two copies were being told by VMWare about their physical MAC addresses correctly. However, Ubuntu (V6.10) remembers the mapping between hardware ethernet addresses and the ethN name that they should get through the information in the /etc/iftab file. Since I had the exact same value for MAC address in all three iftab contents I kept getting conflict reports. Once I edited the contents in the 2 VM copies and matched them with the values configured in the vmx file everything started working fine.
Note the updates in this bug report though.
UPDATE: Its important to realize that by default in bridged networking, VMWare will select the first available interface to bridge. This may not be the interface you want to bridge over resulting in problems. Use the vmnetcfg.exe tool on Windows to select the interface to bridge over.
Saturday, October 27, 2007
CDs, VMWare and Ubuntu...
The other day I had a situation where I got a CD image (ISO) that I needed to grab the data (a backup of a Windows file-folder structure) from - quickly. Unfortunately I didn't have spare blank CD although I did have a CD writer in my laptop. So in short : How do you access the data in an ISO CD image file without burning the image onto a physical CD
A Solution:
With time running out I suddenly remembered that I had a VMWare based Ubuntu virtual machine on my hard drive. I've been using VMWare a lot these days - at work, at play and I'm finding interesting ways to use virtualisation every day.
VMWare users will know that it has a real neat feature that allows a virtual machine to "see" a CDROM drive that takes its data from one of the following :
- The real physical CD drive attached to the host machine
- The ISO image file of any CD
Edubuntu
Had a great experience with Edubuntu the other day and I felt I just had to write about it.
The Problem:
I'm volunteering at the local Hindu Mandir where they have started a montessori school. They had recently received 20 PCs from a corporate sponsor and wanted to use them for their older children. The PCs were fairly old and had Windows NT loaded on them and the teacher in charge, Sheela, could not figure out a way to use these machines to entertain her 4 year+ olds. Her requirements were as follows:
- The PCs were to be easy to start, stop, login etc - technically inexperienced teachers and children would be operating them
- They had to have some stuff loaded on them to make them into simple entertainment centers
- They had to be robust - not just from the hardware perspective but immune to children accidentally and otherwise deleting, modifying and moving things around, etc (Its amazing how quickly a child can disable a PC by simple deleting key shortcuts from a desktop)
When Sheela approached me, I thought first of Ubuntu. Running Windows NT meant it would be relatively hard to get the latest software to run on the machines and could also attract licensing problems. On the other hand, the desktop Ubuntu had everything already installed on it like games etc. However, Ubuntu does not make a PC immune to kids banging away on keyboards. So I started looking around for a better alternative and thats when I found the Edubuntu Live CD downloads.
With Ubuntu 7.04 (Feisty Fawn) Sheela could:
- Sheela could simply boot off the CD I created for her and have an attractive, easy to use system with all she needed for her class, and more (of course I was lucky that the PCs had BIOSes that allowed me to set the boot order and also to boot from their CDROM drives.)
- Have a whole host of educational open source applications available on this live CD apart from several popular computer games like Nibbles, Chess, etc
- The best part was that now, all she needed to get going was a PC with a working CDROM drive - it didn't matter even if the HDD was dead! And if the kids screwed up something, you simply rebooted to have a pristine system going again!!
- No need to create users and maintain them - the live CD just gives you a default login without a login screen to have to go through