Results 1 to 4 of 4

Thread: Using WPA2 Encryption in an Ubuntu Command-line Install

  1. #1
    Join Date
    Apr 2008
    Beans
    12

    Using WPA2 Encryption in an Ubuntu Command-line Install

    I have an extremely old machine on which I'm trying to get a command line Ubuntu up and running (we had tried it with the GUI but it took five hours to load the first page of the installation).

    Initially, I had tried to get Ubuntu minimal to work, as I've tried it before and it worked fine, but it gave an error, and I've since given up on that version.

    So I tried using the Ubuntu Server CD we had lying around here. It installs fine up to the point where it attempts to connect to our wireless internet. The problem is that it assumes the network uses WEP encryption, when in actuality we use WPA2.

    My question is this: Is there any way to have the Ubuntu Server 9.04 installation connect to a wireless network using WPA2 encryption?

  2. #2
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,804
    Distro
    Ubuntu Development Release

    Re: Using WPA2 Encryption in an Ubuntu Command-line Install

    Quote Originally Posted by vergenzt View Post
    My question is this: Is there any way to have the Ubuntu Server 9.04 installation connect to a wireless network using WPA2 encryption?
    If you want to try connecting from the commandline:

    Open a terminal (Applications-Accessories-Terminal) and give the commands
    Code:
    sudo wpa_passphrase YOUR_SSID YOUR_WPA_KEY > /root/wpakey.conf
    sudo wpa_supplicant -Dwext -iwlan0 -c/root/wpakey.conf
    #at this point, you may need to switch to an alternate terminal. (Ctrl+Alt+f2..f5).
    sleep 10
    sudo dhclient wlan0
    Replace the parts in bold with that specific to your setup. (Eg, your wireless lan maybe called ath0, or wifi0, or eth4, or so on; check with the command iwconfig)

    If it doesn't work, post back the results (fudge security information) for more troubleshooting.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  3. #3
    Join Date
    Jun 2006
    Location
    Raleigh, NC, USA
    Beans
    28
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Using WPA2 Encryption in an Ubuntu Command-line Install

    This method works fine for me however, I would like to get my /etc/network/interfaces file setup and working properly so that this is all automatic at boot. I followed the following tutorial and it yielded no results.

    http://ubuntuforums.org/showthread.php?t=202834

    Any advice?
    "Any American who is prepared to run for president should automatically, by definition, be disqualified from ever doing so."
    - Gore Vidal

  4. #4
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,804
    Distro
    Ubuntu Development Release

    Re: Using WPA2 Encryption in an Ubuntu Command-line Install

    Quote Originally Posted by toddedw View Post
    the following tutorial and it yielded no results.
    There's a section there on information to be posted "if you are stumped". Please post back with that information. Please be sure to obfuscate sensitive information, but not in a way that the output becomes misleading.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •