Showing posts with label kubuntu. Show all posts
Showing posts with label kubuntu. Show all posts

Sunday, July 01, 2007

NetworkManager, Wireless cards and WPA

So, I was setting up a PC for my sister running Kubuntu 7.04 (Feisty Fawn) and she needed wireless to be able to connect to the internet. I had a spare NetGear MA311 PCI card, and I figured it's fairly old, it's been well supported for ages using the hostap driver - so it should just work out of the box, right?

Wrong. I couldn't even see any networks using KNetworkManager. After fiddling around I discovered that not one, not two, but three wireless drivers were dueling to access the card, and the one that won was the old linux-wlan-ng driver which doesn't support any wireless extensions that NetworkManager needs. After searching through the bug reports at launchpad.net and blacklisting the prism2_pci, prism2, hermes, orinoco, and orinoco_pci modules, I eventually got it so that hostap was the only driver in charge of the wireless card. I tested all of this on a spare machine at home and it connected to my wireless just fine.

I drive back over to my sister's place in full anticipation that it will now work with no hassles. Nope - I discover the network at her flat uses WPA, and inexplicably KNetworkManager can see the network but thinks it's only WEP. Unfortunately I had not tested making a WPA connection at home beforehand or I would have discovered this problem immediately. I tried connecting manually with KNetworkManager, I tried running wpa_supplicant directly (again, it could see the network but insisted it was WEP), and I tried putting the connection settings in /etc/network/interfaces; nothing worked.

I knew I could connect to the wireless network at my sister's flat just fine with no configuration from my laptop (running the same version of Kubuntu, but with built-in Intel wireless using the ipw2200 driver), so I knew it could work. So after looking through what was available for purchase here and checking up on Linux support, I bought two more PCI wireless cards - an Edimax EW-7128G and a Netgear WG311T.

At home I tested the Edimax card first. It was detected (using the rt61 driver) and again could see my now WPA-encrypted network, but again it told me that it was encrypted using WEP and not WPA, and would not connect to it. Sigh.

The Netgear card was another story altogether. The test machine I had at home wouldn't even get past the BIOS screen with it plugged in, which was disturbing. However, I tested it in another machine I had using a Kubuntu live CD and to my surprise it connected first time with no configuration. Next weekend I put it into my sister's PC and it connected out of the box. Wireless problems solved!

So, if you're looking for a PCI wireless card that should work out of the box with Ubuntu/Kubuntu Linux, then the Netgear WG311T could be the answer - assuming your PC will boot with it plugged in, that is. I'm sure there are other cards that work well, too, and with the introduction of the new wireless stack in the soon to be released 2.6.22 kernel, things will hopefully get a lot better for wireless under Linux in the next 6 months. Still, right now it can be a little frustrating :(

Sunday, May 20, 2007

Kubuntu on a laptop

I just installed Kubuntu 7.04 ("Feisty Fawn" for those who like those codename thingies, which I don't) on my laptop, a Toshiba Satellite M50. I rarely use my laptop, but when I do use it I want it to "just work" (TM). I use Gentoo on my desktop but given the amount of messing about that requires it was obviously not an option for this machine.

I've been through the Kubuntu install process before and it was fairly smooth - the only hitch being that it told me it was unable to create the first partition layout I gave it, without telling me why. I chose a different setup and it continued. Once everything was installed the laptop booted into Kubuntu, complete with nice smooth startup screens. I was very impressed to see that I could plug in my ethernet cable and even switch on the wifi and it happily connected automatically to both of them with no problems. Plugged in a mouse, digital camera, USB stick - all detected and worked immediately. It even suspended and resumed with no hacking required, which is a first as far as this laptop is concerned.

However, I would be remiss if I did not mention the problems that I had after installation:
  1. Setting up DVD playback using the instructions in the help documentation did not work. After a visit to Google and installing xine-ui the problem went away.
  2. The version of vim installed by default, vim-tiny, is horrendously broken. Arrow keys and backspace don't work in insert mode - I mean, WTF?! Eventually I got sick of this and installed the proper "vim" package and it worked as expected.
  3. Hibernate didn't work - when it booted back up it brought up a grey bar on the screen and froze up. Hibernate is something I can do without at the moment so I'm not too worried about this one. (I was able to recover simply by selecting the built-in recovery mode from the boot menu and then restarting).
  4. The worst however was when completely on a whim I attempted to plug in an external monitor. After fiddling with the System Settings application I succeeded only in completely borking up my xorg configuration, without trying too hard I might add. After changing the settings and rebooting I was greeted with the primary screen being the external monitor (which was not what I set it to) and both screens stuck at 640x480, which on a laptop screen with a native resolution of 1280x768 does not look very good at all. So I thought I'd just log in and disable the second monitor - but no, as soon as I logged in the power manager applet crashed, and when I tried to run the System Settings - Monitor and Display settings, it also crashed. After a bit of searching it seems that this is a known bug - the xrandr library that both of these things use (which allows changing screen resolutions on the fly) just crashes when Xinerama (ie, multi-monitor support) is enabled. After much fiddling and cursing I found the only way to get back to a configuration where the laptop's widescreen video mode was detected and available was to restore a backup copy of the xorg.conf file, which fortunately the Monitor and Display settings applet had saved.
I'd have to say I'd still recommend Kubuntu to people looking for a nice desktop distribution, since apart from the problems mentioned above it seemed very well polished - for inexperienced users it certainly beats all of the other Linux distributions I have tried.