Wi-fi USB in Ubuntu

Three times I’ve run into the same issue with getting someone’s wireless USB fob to work, and each time I’m pretty sure it’s the same thing.

No, not the drivers, or any wrappers needed, not the obvious stuff.

It’s the /etc/network/interfaces settings.

Every fricking time!

Here’s how it tends to go:

I look up what’s needed (in this case it’s a Dlink-g122 version A2), install everything and the computer plays clueless.

lsusb says the USB wireless fob is there, everywhere else plays dumb.

I go into ndisgtk and it says the drivers are fine but the hardware isn’t present.
(Sidenote: I just dump all three driver files into a folder – the .bin, the .sys and the .inf; it refuses to work with just the .inf)

Round and round I go, until I found my old thread about this THREE YEARS AGO and I finally see the problem.

No setting for wlan0 in the /etc/network/interfaces … yes, it’s that STUPIDLY simple.

Here’s the ideal /etc/network/interfaces:
# beginning
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp

# end

See how the bit after the auto matches the bit after the iface? Yeah…. I had the latter without the 0.
Or nothing about wlan0 at all.

Stupid ‘Manda.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: