Re: wireless from the command line
On Sat, Feb 27, 2010 at 12:24:39AM +1100, Daniel Dalton wrote:
> I've had a good look around and still can't work this one out. Does
> anyone know how to configure wifi from the command line? I'm currently
> using wicd, so all my hardware is supported, however, as I rarely start
> X I would prefer to manage wifi connections through the cli.
wicd has a curses interface that you may find helpful. On the other
hand, I connect via shell with ifconfig, iwconfig (to set the interface)
and dhcpcd. Briefly...
ifconfig (interface) down
iwconfig (interface) essid (X) key (key)
ifconfig (interface) up
with differences regarding the type of connection.
You can create a root script, one per profile/connection, running this commands.
Read the man pages, it's easy. It's a pity Archlinux's wireless tools are not
available in Debian, as they are great cli-tools.
> I believe I have to use wpasupplicant. Can someone point me to a howto
> that gives me a few examples of the wpasupplicant config and interfacing
> it with /etc/network/interfaces.
Never touched it (only on buggy hardy heron). I think wpasupplicant is
activated through dhcpcd (not sure). And I never really liked the
interfaces file. My problem.
> I would like my setup to automatically connect to open networks. It
> should connect to the one with the strongest signal. If that fails then
> it should connect to any wpa networks if they are in range. I would like
> some examples, so I can learn how to tweak the config quickly.
> Any help is greatly appreciated. I'm using the asus eeepc 1008ha and
> debian squeeze if that matters.
Omar Campagne Polaino