Kubuntu 5.10 and the Linksys WPC54GS Wireless-G Network Adapter

OK, so this time I’ve tried to make the same I’ve described before, but for Kubuntu 5.10. I have changed to Kubuntu since I like KDE more than gnome, and also, Kubuntu seems to run faster than Ubuntu. And so I said to myself, OK, these are the same guys who make Ubuntu and Kubuntu, the wireless stuff should work fairly easily. After all it’s the same kernel…

Wrong.

The steps to follow are these:

  1. Follow these steps from 1 to 7 (step 8 applies only to Ubuntu, not Kubuntu)
  2. Edit the file /etc/network/interfaces (typically sudo vim /etc/network/interfaces) and add the following:
iface wlan0 inet static
pre-up ifconfig wlan0 up
pre-up ifconfig wlan0 down
pre-up ifconfig wlan0 up
pre-up ifconfig wlan0 down
pre-up iwconfig wlan0 essid YOUR_ESSID_HERE
pre-up iwconfig wlan0 mode Managed
pre-up iwconfig wlan0 key YOUR_NETWORK_KEY_HERE
pre-up ifconfig wlan0 up
wireless-essid YOUR_ESSID_HERE
address YOUR_CHOSEN_IP_HERE (192.168.1.50, for example)
netmask 255.255.255.255
gateway THE_IP_OF_YOUR_WIRELESS_ROUTER_HERE (192.168.1.2, for example)

(Thanks to this page for the tip!)

  1. Type sudo modprobe ndiswrapper (if you haven’t done it before)
  2. Type sudo /etc/init.d/networking restart
  3. Type sudo ifconfig wlan0 up
  4. Type sudo ifup wlan0

Voila! You should be online by now. I have yet to find a way to execute the last 4 commands automatically when my computer boots up…