Page 1 of 1

WiFi help

Posted: Tue Dec 26, 2017 4:34 am
by Cowman369
Hello all,

Sorry if this has been posted before but I've looked for an hour or so now and havent found any help.

So I got my first raspberry pi today and have be trying to connect to wifi. But can't seem to do it. I am a noob but I like to think I'm not lol. So I can see my network, i enter my password and nothing happens via the dashboard.

When I use the cmd prompt (sudo iwlist wlan0 scan) it shows my network and other stuff about it. So I used the (sudo nano /etc/wpa_supplicant/wpa_supplicant.conf) it's just blank. And says [new file] along with the usual legend at the bottom. When I YouTube others to see how to connect via the cmd prompt they have text here. So I typed it all in with my network and pswrd in the correct places but when I went to save it said couldn't save file not found, or something close to that.

So I then went to look for the file through the archiver and I had the wpa_supplicant.conf file. I attempted to open it but it said could not open permission denied.

I also read that I should power off and on my modem/router because that always works. But it did not this time.

I'm getting a little frustrated, and if someone could shead some light and tell me how stupid I am that would be great.

If there is another forum please point me to it and I'll let you know if I have read it or not.

Re: WiFi help

Posted: Tue Dec 26, 2017 10:09 am
by jbudd
You must have made a mistake typing the path or file name when you tried to edit the file. Try it like this:

Code: Select all

cd /etc
cd wpa_supplicant
sudo nano wpa_supplicant.conf

Re: WiFi help

Posted: Tue Dec 26, 2017 5:46 pm
by Cowman369
Hey bud,

I went through what you said:
cd /etc
cd wpa_supplicant
sudo nano wpa_supplicant.conf

And I do have text in it, with my network and paskey. unfortunately my network is down atm so I will let you know what happens when it comes back up.
Thank you

Re: WiFi help

Posted: Tue Dec 26, 2017 6:57 pm
by Cowman369
Alright, so my network is back up but I still can't connect via pi3.
This is what is in my wpa_supplicant.conf:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="snoopdog"
key_mgmt=NONE
wep_key0="paskeyhere"
}

Re: WiFi help

Posted: Tue Dec 26, 2017 7:02 pm
by DougieLawson
Why are you using WEP? STOP! It is 100% insecure.

Change your access point to use WPA or WPA2 and all of your problems will evapourate in an instant.

Re: WiFi help

Posted: Tue Dec 26, 2017 7:31 pm
by MrEngman
Cowman369 wrote:
Tue Dec 26, 2017 6:57 pm
Alright, so my network is back up but I still can't connect via pi3.
This is what is in my wpa_supplicant.conf:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="snoopdog"
key_mgmt=NONE
wep_key0="paskeyhere"
}
if you have to use WEP remove the quotation marks around the wep_key0 passkey and use the wep hex key instead of the wep paskey.

Re: WiFi help

Posted: Tue Dec 26, 2017 10:07 pm
by Cowman369
Ok I changed it from wep to wpa2 but is still shows it as wep_key0"mypaskeyhere"
And I still can't connect

Re: WiFi help

Posted: Tue Dec 26, 2017 10:23 pm
by Cowman369
MrEngman wrote:
Cowman369 wrote:
Tue Dec 26, 2017 6:57 pm
Alright, so my network is back up but I still can't connect via pi3.
This is what is in my wpa_supplicant.conf:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="snoopdog"
key_mgmt=NONE
wep_key0="paskeyhere"
}
if you have to use WEP remove the quotation marks around the wep_key0 passkey and use the wep hex key instead of the wep paskey.

Did not see your post before i commented again.
I did change to wpa2, when I use this to scan

Code: Select all

sudo iwlist wlan0 scan
it says this in it

Code: Select all

IE: IEEE 802.11i/WPA2 Version1
So I assume that it has changed, and it says it's changed on my router too.
But in the wpa_supplicant.conf it still says wep

Re: WiFi help

Posted: Tue Dec 26, 2017 10:26 pm
by MrEngman
Cowman369 wrote:
Tue Dec 26, 2017 10:23 pm
MrEngman wrote:
Cowman369 wrote:
Tue Dec 26, 2017 6:57 pm
Alright, so my network is back up but I still can't connect via pi3.
This is what is in my wpa_supplicant.conf:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="snoopdog"
key_mgmt=NONE
wep_key0="paskeyhere"
}
if you have to use WEP remove the quotation marks around the wep_key0 passkey and use the wep hex key instead of the wep paskey.

Did not see your post before i commented again.
I did change to wpa2, when I use this to scan

Code: Select all

sudo iwlist wlan0 scan
it says this in it

Code: Select all

IE: IEEE 802.11i/WPA2 Version1
So I assume that it has changed, and it says it's changed on my router too.
But in the wpa_supplicant.conf it still says wep
Change line key_mgmt=NONE to key_mgmt=WPA-PSK
Change the line with wpe_key0= to psk="network-password" using your network password

Re: WiFi help

Posted: Wed Dec 27, 2017 2:05 am
by Cowman369
MrEngman wrote: Change line key_mgmt=NONE to key_mgmt=WPA-PSK
Change the line with wpe_key0= to psk="network-password" using your network password
This worked, thank you very much.
Thank you to all who helped as well. I really appreciate it.