Ubuntu Dapper Drake and WPA-Encrypted Wireless

Drake: a Male duck, from wikipedia
I am a Ubuntu Linux user. On my laptop and at work, I was running “Breezy Badger” (Ubuntu Linux 5.10) since last fall.

But one of the worst things about it was its inability to connect to WPA-encrypted Wifi access points. Eventually, I wrote a few shell scripts that made me able to connect to my AP at home, but it was far from being handy.

Now yesterday, I installed the new release, Dapper Drake on my laptop. The installation was straightforward, and by the way I liked it a lot that the installation CD is a live CD at the same time so that new users can “try before they buy”.

When everything was installed, I realized that my wifi card was recognized and activated automatically, yet I was not able to connect to a WPA encrypted network. Instead it tried to connect to one of my neighbors unencrypted access points. Downgrading my connection to the demonstrably weak WEP encryption was not an option earlier, nor was it now.

Already being a little disappointed, I searched the Ubuntu forums and after a while, I came up with a thread about WPA access points with Ubuntu Dapper Drake.

In short: Nine seven steps to WPA encrypted Wifi with Ubuntu Dapper Drake:

  1. sudo apt-get install wpasupplicant (might already be installed)
  2. (You might have to do a sudo apt-get update in order to fetch the newest metadata for apt-get)
  3. sudo apt-get install network-manager-gnome
  4. sudo gedit /etc/network/interfaces — Comment out everything but “lo” entries in that file
  5. Create a file called /etc/default/wpasupplicant, add entry ENABLED=0
  6. Reboot your system
  7. Left-click the network manager icon in Gnome and select your wireless network
  8. Follow the prompts for password, type, etc.
  9. It will ask you to choose a password for your new “keyring”.
  10. Be happy ;)

Now everytime you boot up and log in, the network manager will connect you to your preferred WPA-encrypted network as desired.

There are only two caveats that I currently know of:

  • The connection is only made once you log into Gnome. So if you plan to run this connection on a server or if you need a network connection before you get to the login prompt (i.e. during bootup), this method is not ideal for you.
  • A current bug is that you are asked for your keyring password twice (?) everytime you log in. This can be annoying, but rumor has it, it is already fixed and an update will be released soon.

As you see, Dapper Drake made a big step towards the usability of Linux on laptops. Hope you give it a shot. It seems to be worth it.

Update: Removed two unnecessary steps. Thanks, Martin and Zakaria!



60 Responses to “Ubuntu Dapper Drake and WPA-Encrypted Wireless”

Pages: « 1 2 [3] Show All

  1. 41
    Sebastian Says:

    Nice guide, thank you! I also needed to add the ndiswrapper to /etc/modules before nm was able to see my wireless card.

  2. 42
    Terry Anderson Says:

    This got it going for me on Kubuntu also, BUT I have to re-enter the WPA Key every time I boot. Is there any way that I can edit a file somewhere to make it automatic on bootup because I can’t find a way to ’save’ the Key

  3. 43
    Wingless-Archangel Says:

    Thanks a lot. That’s I need to do with my Labtop

  4. 44
    The Curmudgeon Speaks » Blog Archive » Goodbye Windows, Hello Ubuntu! Says:

    […] http://fredericiana.com/2006/06/11/ubuntu-dapper-drake-and-wpa-encrypted-wireless/ […]

  5. 45
    Stuff Learned on Call For Help « Work Space Says:

    […] I learned about this blogg to help you get WPA working on Obuntu. […]

  6. 46
    Jeroen Reijn Says:

    Enabling WPA on Ubuntu Dapper the easy way…

    I’ve been strugling with WPA on my Dapper installation for a while now. There are numerous installation guides to get WPA working, but none of them worked for me or they were extremely complex and far beyond my linux knowledge…….

  7. 47
    Ben Grant Says:

    I don’t know where to access the network manager after install – I can’t find it anywhere

  8. 48
    Chris Kirk Says:

    Holy Crap Sweet!!!

  9. 49
    rabsteen » Blog Archive » links for 2007-01-08 Says:

    […] Ubuntu Dapper Drake and WPA-Encrypted Wireless at fredericiana (tags: ubuntu wpa linux wireless wifi) Posted by rabsteen Filed in Daily Links […]

  10. 50
    jack Says:

    Nice site actually. Gone to my favourites. Thanks for creation.

  11. 51
    Hansi Says:

    I have the same problem. I can’t find Network Manager anywhere

  12. 52
    anthony Says:

    wow. thanks. i went to the OTHER site to get this done… no luck. Thanks alot. you rock

  13. 53
    Fritz Says:

    Wow. I must say, I’m really impressed now.
    I struggled with that thing for days – needless to say, without luck.
    And your suggestion worked right away.
    NICE work!

  14. 54
    Ubuntu noob Says:

    Awesome! That worked for me like butter :-)

    thanks.

  15. 55
    dohboy Says:

    Unfortunately your howto didnt add WPA to my system. The gnome network manager is nice, but when it prompts me to enter the network credentials, the drop-down only has the following encryption options for me: “WEP 128 Bit Passphrase”, “WEP 64/128 Bit Hex”, and “WEP 64/128 Bit ASCII” .. no options for wpa appear anywhere. When I look at running process list, wpa_supplicant is not running (and im pretty sure this needs to be running). My understanding was that the gnome-network-manager would automatically set up this stuff but maybe I’m wrong about that. Any suggestions?

  16. 56
    Dusibello Says:

    I’m glad you posted this and and I’m glad Google took me to it…

  17. 57
    Suraj Says:

    I was struggling with wpa, but then what i did was make the wireless point dhcp, and make it visible, and then it worked

  18. 58
    Brad Says:

    Followed the instructions. It doesn’t seem to work with WPA1 personal. The computer is waiting for a key to be received. However, WPA personal doesn’t get a key you supply it . I never get the second request to enter a key. Anyone know what else I need to do to get this to work or should I simply upgrade to 7.10?

  19. 59
    Bram Says:

    Err, I don’t want to be stupid, but I just got Ubuntu and how do you “comment out” something? Like in PHP, just add // ?

  20. 60
    Fred Says:

    Bram: That depends on the file you are editing. In config files in /etc, you usually “comment out” stuff by putting a # sign at the beginning of the respective line.

    HOWEVER: I believe my instructions up here are slightly outdated, as they refer to a Ubuntu version that’s been updated three times (or so) since I wrote this. In other words: Newer Ubuntu versions should have much better wireless support out of the box and probably do not need these instructions anymore.

    Either way, have fun with Ubuntu! :)

Pages: « 1 2 [3] Show All

Leave a Reply