Saturday, December 15, 2012

Upgrade to Ubuntu 12.04 from 10.04

Although my experience upgrading from Ubuntu 10.04 to 12.04 on my hp workstation xw4100 was not necessarily one of personal preference, I have to say I am glad I was forced to make the upgrade now that the nightmare is finally over. The new release of Ubuntu, in the Classic Gnome mode is very similar to the GUI setup I had in Lucid (still runs metacity for the window manager and gnome for the desktop manager). Since I am not a big fan of Unity's interface, I am quite relieved to see the classic Gnome setup is still available as an option. Here's how my desktop looks now:

The nightmare started when the window manager I was using (metacity) abruptly stopped working. I rebooted and then found that the display manager (gnome) also was not functioning properly. Every time I booted up, I was just greeted by the default Lucid background. Although I could move my mouse, the login screen was nowhere to be found.

After spending many hours trying to resolve the window manager/desktop manager issue to no avail, I decided to upgrade to the newest release Ubuntu in hopes that it would magically solve my problems. I was able to get my  rt2500 usb wireless adapter under protected access (wpa2) working in the virtual terminal (ctrl+alt+f2-6), by running these commands

wpa_passphrase [network name] > wpa.conf
(enter passphrase and press enter)

sudo stop network-manager  # won't work unless ubuntu's network manager is stopped

sudo wpa_supplicant -Dwext -iwlan0 -c(path to wpa.conf) # had to kill the process with ctrl-z but did so after I saw an output to the effect that authentication had been successful)

sudo dhclient wlan0 # this gets a new ip address and finalized the connection

To test my connection I would try using "ping" to see if I got back anything.


I then tried the command "do-release-upgrade". This calls a python script which initiates the upgrade to 12.04. I ran into the exact same issue as described here: I had multiple versions of python installed. I simply moved the GnuPGInterface module from the version that had it installed to the version that the script was using. The script now worked fine.

It turned out I wasn't out of the woods yet, not nearly. About half-way through my upgrade, my internet connection went down. When this happens the entire script must fail before I can start back where it was on the download. With my RT2500 usb adapter I have always had issues with it frequently losing its connection inexplicably. I miss the days when I could have a wired connection but sadly those days are, for the time being, no more. To reconnect, after waiting for the script to fail, I simply repeated the wpa_supplicant and dhclient commands as before and then retried the upgrade python script. After repeating this exercise several times (*sigh*), my system finally booted up with 12.04, and alas I could finally log in again!

I slept well that night and my time spent at my day job went by quickly. I was confident that the nightmare was over. When I got home from work and tried using the internet I was greeted by a slow connection speed reminiscent of the old days when I used a dial-up modem. A page such as facebook would take up to several minutes to load and a typical download speed would range from 50 kb/sec to 100 kb/sec. As per the usually I would frequently have to unplug and replug in my wireless adapter to maintain this horrible connection.

After losing another day to this issue, and almost losing hope, I inadvertently stumbled upon my solution here: It turned out that the wireless power management on my system was crippling my internet speeds. It may also have been the primary cause of my dropped connections though that remains to be seen. Thus after entering the command "sudo iwconfig wlan0 power off", my internet speeds were better than ever and I have also yet to see a dropped connection. Although a lot of forums seemed to recommend editing your connection to ignore ipv6, I didn't see any improvement through this.

To anyone who updated Ubuntu and has a slow wireless connection I would recommend to try

sudo iwconfig wlan0 power off

Here is a technical article I found that discusses some of the basics as to why power management can be so detrimental to wireless performance:

This solved my wireless problems. So far I'm enjoying the 12.04 Precise release of Ubuntu and find that it has indeed made many subtle improvements over Lucid. Two examples I can think of off the top of my head are that, firstly, adding icons to the top panel is much more user friendly. While you can control the position of the icons, their distance apart as set automatically. I recall wasting time trying to move my icons closer together in Lucid, which I no longer have to do. Secondly the GUI to the software update center looks excellent and has me very excited to look into the new software that is available. Here is a screen cap:

 Anyways, I hope this saves some time for another poor soul out there on the www that may have to deal with some of these upgrade woes. Hopefully time will prove that the upgrade was worth the trouble. Some may ask why I go through all of this when I could just run Windows and be done. Being a proud Linux user, it's hard to give a short answer to this question. It is hard not to see the value in free software. I am thankful for the many fellow Linux users who would agree with me. Putting aside the whole "richard stallman"-esque argument of how we must fight the evil corporations who are trying to take over the world, it is extremely important for me, as a hopefully soon-to-be-successful software developer to have the utmost control over my own computing. I want to understand how the software I use runs as much as possible. My hope is that with each day I will get closer and closer to that ideal. Using Ubuntu, the most supported linux OS, is the least I can do toward that end. And as a computer hobbyist, a project I am planning to start on soon is to build my own customized OS.

1 comment:

  1. Online updates and upgrades are easier than CD upgrades.. Keep this in mind when you finally try 12.04. Again, myself not being too old into ubuntu (6 years), will advice you to upgrade after a FINAL stable release (26 April), else you may end up troubleshooting more than enjoying a great distro! :)