Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Command line WIFI (SOLVED)

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
doctormoreau
Posts: 9
Joined: 2015-10-02 12:41

Command line WIFI (SOLVED)

#1 Post by doctormoreau »

Okay guys and gals. I've spent the morning digging through docs and other threads and I just cannot get my wifi working. I've got an Atheros 9271 dongle which shows up with ip a but I've tried editing the interfaces file and I've tried editing the WPA Supplicant file and nothing works.

Here's what I'm running:
Dell Mini 110
Atheros 9271 usb dongle
Debian 8
wireless network "i will not grill you a cheese"
secured with a WPA pass phrase

What am I missing here? I'm seeing conflicting info on every site I look at. Surely there must be a relatively simple way to just connect to wifi. Is there perhaps a network manager for CLI?
Last edited by doctormoreau on 2015-10-02 13:51, edited 1 time in total.

doctormoreau
Posts: 9
Joined: 2015-10-02 12:41

Re: Command line WIFI

#2 Post by doctormoreau »

I've tried setting up the info in wpa_supplicant.conf and running the command

wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf -Dwext

but all I get is:

ioctl[SIOCSIWENCODEEXT]: Invalid Argument
ioctl[SIOCSIWENCODEEXT]: Invalid Argument

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Command line WIFI

#3 Post by GarryRicketson »

Is there perhaps a network manager for CLI?
Network manager runs just fine from the command line.

Code: Select all

nmcli

Code: Select all

 man nmcli 
You can also type :

Code: Select all

nmtui

at the command line,to get a easier to use GUI.
On Jessie, some people have done better using "WICD"
https://wiki.debian.org/WiFi/HowToUse
https://wiki.debian.org/WiFi/HowToUse#Wicd
Are you sure you have the nonfree firmware you need for this "Atheros 9271" dongle to work ?
https://wiki.debian.org/iwlwifi
Last edited by GarryRicketson on 2015-10-02 13:18, edited 1 time in total.

doctormoreau
Posts: 9
Joined: 2015-10-02 12:41

Re: Command line WIFI

#4 Post by doctormoreau »

yes, I installed the atheros-firmware package like the Debian documentation said to

doctormoreau
Posts: 9
Joined: 2015-10-02 12:41

Re: Command line WIFI

#5 Post by doctormoreau »

okay. I've got wicd-curses installed but it shows no networks. I went into Preferences and it showed my wireless interface as blank, I tried putting in wlan0 (since that's what ip a lists it as...but I can't press F10 to accept the changes. wicd-curses refuses to accept F10 to accept ANY changes anywhere in its settings screens.

doctormoreau
Posts: 9
Joined: 2015-10-02 12:41

Re: Command line WIFI

#6 Post by doctormoreau »

okay, tried running nmcli, it's not installed. tried installing it, "unable to locate package nmcli"

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Command line WIFI

#7 Post by GarryRicketson »

doctormoreau wrote:okay, tried running nmcli, it's not installed. tried installing it, "unable to locate package nmcli"
Well, it sounds like you need to install either "wicd" , or "networkmanager".
What does the out put of

Code: Select all

#iwconfig
show ?

doctormoreau
Posts: 9
Joined: 2015-10-02 12:41

Re: Command line WIFI

#8 Post by doctormoreau »

After playing around with the wpa_supplicant.conf file and ALL kinds of other things that never seemed to work I found this simple advice

Just edit /etc/network/interfaces and write:

auto wlan0
iface wlan0 inet dhcp
wpa-ssid <ssid>
wpa-psk <password>
After that write and close file and use command:

dhclient wlan0

Then I restarted the machine, ran iwconfig, and bam, there was my SSID with everything logged in and ready to go. The Debian manual pages are quite wrong, this tiny bit of info (along with making sure wpa_supplicant is installed) is the way to go. Anything else more complicated and it starts to NOT work, lol

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Command line WIFI

#9 Post by GarryRicketson »

Let's back up a little bit,
If you want to use the

Code: Select all

nmcli
,command,
then you need to install "network manager",
Did you read, any of the above links ?, they explain it all pretty clearly. I wonder , because you response was so fast, I find it hard to believe you read all of that material that quick.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Command line WIFI

#10 Post by GarryRicketson »

The Debian manual pages are quite wrong,
Well I don't agree, that is what I followed, when I first started using Debian, and had no problem, but any way glad you got it working. Please edit the subject line on your first post, marking this as solved.

doctormoreau
Posts: 9
Joined: 2015-10-02 12:41

Re: Command line WIFI

#11 Post by doctormoreau »

I was under the belief that Network Manager was a GUI application. I did not relaize that nmcli was part of the package.

I followed the Debian manual word for word to get my wifi running and what they said did not work. The info I found (extremely similar mind you) did :) Hopefully this might be of help to any others having the same problem.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Command line WIFI (SOLVED)

#12 Post by GarryRicketson »

Ok, thanks

Post Reply