Cowman369
Posts: 6
Joined: Tue Dec 26, 2017 4:13 am

WiFi help

Tue Dec 26, 2017 4:34 am

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.

jbudd
Posts: 1446
Joined: Mon Dec 16, 2013 10:23 am

Re: WiFi help

Tue Dec 26, 2017 10:09 am

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

Cowman369
Posts: 6
Joined: Tue Dec 26, 2017 4:13 am

Re: WiFi help

Tue Dec 26, 2017 5:46 pm

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

Cowman369
Posts: 6
Joined: Tue Dec 26, 2017 4:13 am

Re: WiFi help

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"
}

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: WiFi help

Tue Dec 26, 2017 7:02 pm

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi help

Tue Dec 26, 2017 7:31 pm

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.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Cowman369
Posts: 6
Joined: Tue Dec 26, 2017 4:13 am

Re: WiFi help

Tue Dec 26, 2017 10:07 pm

Ok I changed it from wep to wpa2 but is still shows it as wep_key0"mypaskeyhere"
And I still can't connect

Cowman369
Posts: 6
Joined: Tue Dec 26, 2017 4:13 am

Re: WiFi help

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

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi help

Tue Dec 26, 2017 10:26 pm

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
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Cowman369
Posts: 6
Joined: Tue Dec 26, 2017 4:13 am

Re: WiFi help

Wed Dec 27, 2017 2:05 am

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.

Return to “Beginners”