Code: Select all
cat /etc/wpa_supplicant/wpa_supplicant.conf Yes I have done that it seems as it should be I can't copy it all but exactly as all the forums say with network stuff right?is there another command I can put in as it's still not online? Only possible fault I can see is the network name has a break in it but that is how it is configured on here too?Andyroo wrote: ↑Mon Jun 10, 2019 11:28 pmI would check the contents of wpa_supplicant matches your network SSID and password.
From the terminal runCode: Select all
cat /etc/wpa_supplicant/wpa_supplicant.conf
Do you think you will be able to post the contents of your wpa_supplicant.conf before reach your 10th post ?
Code: Select all
pi@raspi4:~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="ManCave"
psk="XXXXYYYYYYYYYYYYYYYYYYXXXX"
key_mgmt=WPA-PSK
priority=30
}
I take it you are in Ecuador by EC?sandifeet wrote: ↑Tue Jun 11, 2019 4:28 pmYes here you go:
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=netdev
update_config=1
country=EC
network={
ssid="BTHub-T3S3"
psk="xycyyfxxxy"
key_mgmt=WPA-PSK
}
This is the network I used in UK in '17 to set the Pi up. I can get online using ethernet cable but no wireless. Thankyou Ernst
Would be nice to see [code] and [/code] tags used in your posts.sandifeet wrote: ↑Tue Jun 11, 2019 4:28 pmYes here you go:
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=netdev
update_config=1
country=EC
network={
ssid="BTHub-T3S3"
psk="xycyyfxxxy"
key_mgmt=WPA-PSK
}
This is the network I used in UK in '17 to set the Pi up. I can get online using ethernet cable but no wireless. Thankyou Ernst
Code: Select all
ctrl_interface=DIR=netdev
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevCode: Select all
country=ECI'm just typing it in with a keyboard attached by usb. I'm not sure what you mean here what I should change. Yes the { are as they should be. As I think Imentioned before it worked fine before a friend tried to download VLC media playerAndyroo wrote: ↑Tue Jun 11, 2019 5:09 pmI take it you are in Ecuador by EC?sandifeet wrote: ↑Tue Jun 11, 2019 4:28 pmYes here you go:
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=netdev
update_config=1
country=EC
network={
ssid="BTHub-T3S3"
psk="xycyyfxxxy"
key_mgmt=WPA-PSK
}
This is the network I used in UK in '17 to set the Pi up. I can get online using ethernet cable but no wireless. Thankyou Ernst
Try changing the ‘ctrl_interface=DIR=netdev’ to match the sample below your post.
Also check that the lines between {} are indented.
There should only be line feed at the end of each line - if you have used Notepad on a PC to create the file - recreate using nano on the Pi.
Code: Select all
cat /proc/cpuinfo | grep 'Revision'
uname -a
cat /etc/os-release
Code: Select all
iwconfigCode: Select all
pi@raspi2:~ $ sudo service wpa_supplicant stop
pi@raspi2:~ $ ps -A | grep 'wpa'
379 ? 00:00:00 wpa_supplicant
pi@raspi2:~ $ sudo kill -9 379
pi@raspi2:~ $
Code: Select all
pi@raspi2:~ $ sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
wlan0: Trying to associate with 00:16:b6:95:0d:ab (SSID='XXXXXXXG' freq=2437 MHz)
wlan0: Associated with 00:16:b6:95:0d:ab
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: CTRL-EVENT-DISCONNECTED bssid=00:16:b6:95:0d:ab reason=0 locally_generated=1
wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="XXXXXXXG" auth_failures=1 duration=10 reason=WRONG_KEY
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=DE
^Cnl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
p2p-dev-wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: CTRL-EVENT-TERMINATING
pi@raspi2:~ $
Code: Select all
Code: Select all
Code: Select all
Code: Select all
and now in between code tagspi@raspi2:~ $ ps -A | grep 'wpa'
333 ? 00:00:00 wpa_supplicant
pi@raspi2:~ $
Code: Select all
pi@raspi2:~ $ ps -A | grep 'wpa'
333 ? 00:00:00 wpa_supplicant
pi@raspi2:~ $
The ps ... command gives you the parameter for the next command -- refer back to Ernst's instructions. In your case "502", not "379".sandifeet wrote: ↑Tue Jun 11, 2019 11:35 pmNot sure if I should continue with the next command you asked me to put in as I think the second one could be teh problem. If you think I should put in last commands I will. ThanksCode: Select all
ps -A | grep 'wpa' 502 ? 00:00:00 wpa_supplicant pi@raspberrypi:~ $ 379 ? 00:00:00 wpa_supplicant bash: 379: command not found sudo kill -9 379
Code: Select all
sudo kill -9 502Code: Select all
sudo kill -9 502Code: Select all
$ sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
bash: $: command not found
pi@raspberrypi:~ $ Successfully initialized wpa_supplicant
bash: Successfully: command not found
pi@raspberrypi:~ $ wlan0: Trying to associate with 00:16:b6:95:0d:ab (SSID='XXXXXXXG' freq=2437 MHz)
bash: syntax error near unexpected token `('
pi@raspberrypi:~ $ wlan0: Associated with 00:16:b6:95:0d:ab
bash: wlan0:: command not found
pi@raspberrypi:~ $ wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
bash: wlan0:: command not found
pi@raspberrypi:~ $ wlan0: CTRL-EVENT-DISCONNECTED bssid=00:16:b6:95:0d:ab reason=0 locally_generated=1
bash: wlan0:: command not found
pi@raspberrypi:~ $ wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
bash: wlan0:: command not found
pi@raspberrypi:~ $ wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="XXXXXXXG" auth_failures=1 duration=10 reason=WRONG_KEY
bash: wlan0:: command not found
pi@raspberrypi:~ $ wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
bash: wlan0:: command not found
Code: Select all
sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.confCode: Select all
sudo killall wpa_supplicantCode: Select all
PID=$(ps -A | grep 'wpa' | xargs); [ -n "$PID" ] && sudo kill -9 ${PID%% *}Code: Select all
sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
STOP !!!! Something is very wrong here and I do not know (yet) what the problem could be.sandifeet wrote: ↑Wed Jun 12, 2019 3:21 pmI apologise for being such a dummy here. I bought the raspi to learn how to code..........
I will now put in the first command & post the result that Epoch1970 has sent. Think I should do this one at a time:
Code: Select all
sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf Successfully initialized wpa_supplicant
Code: Select all
ps -ACode: Select all
pi@raspi2:~ $ ps -A | grep 'wpa'
333 ? 00:00:00 wpa_supplicant
pi@raspi2:~ $
Code: Select all
[Successfully initialized wpa_supplicant
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
/code]sandifeet wrote: ↑Tue Jun 11, 2019 11:35 pmOk attempting.PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"Code: Select all
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Now next command result coming:
[/code]
The above result is as expected because you did not stop the wpa_supplicant service and you did not kill any wpa_supplicant processes before starting wpa_supplicant in the foregroundsandifeet wrote: ↑Wed Jun 12, 2019 3:57 pmThankyou Ernst,
I have checked & more lines are there I will copy beneath. Looks a bit suss...I too cannot continue today. Thankyou Hasta mananaCode: Select all
Successfully initialized wpa_supplicant ctrl_iface exists and seems to be in use - cannot override it Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'. You may have another wpa_supplicant process already running or the file was left by an unclean termination of wpa_supplicant in which case you will need to manually remove this file before starting wpa_supplicant again.
Code: Select all
[ sudo service wpa_supplicant stop
pi@raspberrypi:~ $ ps -A | grep 'wpa'
507 ? 00:00:00 wpa_supplicant
pi@raspberrypi:~ $ sudo kill -9 507
pi@raspberrypi:~ $
pi@raspberrypi:~ $
/code]Code: Select all
sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
Code: Select all
Successfully initialized wpa_supplicant
Code: Select all
cat /proc/device-tree/model;echoCode: Select all
uname -aCode: Select all
rfkill -listCode: Select all
ifconfig -aCode: Select all
sudo cat /etc/wpa_supplicant/wpa_supplicant.confCode: Select all
iwlist wlan0 scan | grep 'ESSID'Code: Select all
wpa_cli -i wlan0 list_networksCode: Select all
wpa_cli -i wlan0 statusCode: Select all
wpa_cli -i wlan0Code: Select all
reconfigure