Problem with wireless Debian/Ubuntu Server

Matthew Gadd matt at darkotter.com
Sun Sep 20 16:37:31 CEST 2009


Right, on my old computer, I installed the standard Ubuntu 9.04 server
version, then I checked wpasupplicant was installed (I think it
already was).

Then, I generated the hexadecimal key for our network from the
passphrase, so I ran:

wpa_passphrase "NETWORK_SSID"

Then typed in the passphrase and pressed enter (I know you probably
already knew this, just telling you in case).

The hexadecimal key is the second 'psk=' line (not the one that's
commented out) in the output.

I then edited the entry for my wireless card in /etc/network/interfaces to this:

iface wlan0 inet static
        address 192.168.1.159
        netmask 255.255.255.0
        gateway 192.168.1.1
        wpa-ssid {NETWORK_SSID}
        wpa-psk {HEXADECIMAL_KEY}

I then restarted the server, and it worked (hopefully it will for you too).

Of course you'll want to change the address, netmask etc. lines to
whatever is correct for your server, and replace the {NETWORK_SSID}
and {HEXADECIMAL_KEY} with their respective values, I'm sure you get
the idea.

As I said this was on the ubuntu jaunty server, but I imagine it
should work on the LTS version as well.

2009/9/20 Wawrzyniec Niewodniczański <wawrzek at gmail.com>:
> Hi,
>
> I've got problem with WPA2-PSK wireless on my Ubuntu LTS Server
> (8.04?). It's server so it's not using any NetworkManager or similar
> but Debian wrappers around wpa_supplicant [1].
>
> I think that the problem is that somehow it create two keys (I don't
> have idea how) and the first one (default) is wrong. Last time I could
> force system to use second key, but I cannot now. I've also cannot
> find any option which can do this in /etc/network/interfaces.
>
> Any ideas?
>
> Wawrzek
> [1] http://wiki.debian.org/WPA
> --
>  Wawrzyniec Niewodniczański      vel Wawrzek Larry or LarryN
>    Linux User #177124              E-MAIL: wawrzek at gmail.com
>  PhD in Quantum Chemistry            WWW: http://wawrzek.name
>  MSc in Molecular Engineering           JID: wawrzek at jabber.wroc.pl
> _______________________________________________
> CLUG mailing list
> clug at cambridge-lug.org
> Website: http://www.cambridge-lug.org
>



-- 
Matthew Gadd

   hello at darkotter.com
   GPG: 85D8 4519 E52D 9E8B 3DDF  6867 E3E7 B658 94D5 9FB5
   Blog: http://darkotter.wordpress.com/



More information about the CLUG mailing list