How to connect with wireless network from the console environment (command line)?

1 réponse [Dernière contribution]
kepeken
Hors ligne
A rejoint: 12/19/2013

I've installed Trisquel 7 Console Environment via netinstall as a step to install XFCE without any other desktop enviroment.

However, I can't sucessfully connect to the internet from there. I've tried pluging an ethernet cable but it didn't worked.

So I've tried to follow theses instrucions: http://linuxcommando.blogspot.com.br/2013/10/how-to-connect-to-wpawpa2-wifi-network.html?m=1

After doing this:

$ sudo -s
[sudo] password for peter:
$ wpa_passphrase gorilla >> /etc/wpa_supplicant.conf
...type in the passphrase and hit enter...

and apparentely it gives an output similar to this from the tutorial:

$ cat /etc/wpa_supplicant.conf
# reading passphrase from stdin
network={
ssid="gorilla"
#psk="testtest"
psk=4dfe1c985520d26a13e932bf0acb1d4580461dd854ed79ad1a88ec221a802061
}

But when I try to run wpa_supplicant

$ sudo wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf

it says me it is still not connected (I can try again later for more specific output)

Is there another way to connect without this step? Or wpa_supplicant is not reading that little script?

Dave_Hunt

I am a member!

Hors ligne
A rejoint: 09/19/2011

see the man page for nmcli, a console ui for the network manager service.