SliTaz SliTaz Forum

You are not logged in.

#1 2012-07-07 23:52:05

Maximus559
Member
Registered: 2011-06-21
Posts: 10

Connect to wifi from command line

In a nutshell, I need to connect to my wireless network from the command line.

I normally use WPA encryption, but I can easily disable it, so assume no security at all.

This is a problem I've run into before. I'll boot SliTaz on a computer with no Ethernet adapter, run into some kind of display problem, and need to run tazx in text mode and install graphics drivers. But, because I have no wifi connection, and no way to create one, tazx is essentially useless.

Seems this should only require a few simple commands, but extensive searches have yielded no results. On Ubuntu, I believe the commands are:

sudo ifconfig wlan0 up

sudo iwconfig wlan0 essid "xxxxxx"

sudo dhclient wlan0

On SliTaz, the third command fails, because SliTaz uses udhcpc instead of dhclient.

I can't be the first person to have run into this problem. Any idea what the commands might be for SliTaz?

Offline

#2 2012-07-07 23:55:27

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Connect to wifi from command line

Configure your network connection:

#nano /etc/network.conf

Restart networking:

#/etc/init.d/network.sh restart

Online

#3 2012-07-09 21:49:13

Maximus559
Member
Registered: 2011-06-21
Posts: 10

Re: Connect to wifi from command line

Thank you, sir; that has done it.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.030 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]