cchisholm
Posts: 84
Joined: Sat Mar 07, 2015 4:47 pm

new os install can't find wifi on an RP3

Fri Feb 09, 2018 5:51 pm

decided to reinstall debian (on another sd) on my rp3. I downloaded and installed noobs. First thin I noticed is that most of the tuts show a screen with several os options but I only saw two: debian and another (;can't remember what it was) Selected debian and let it install.

I noticed that the wifi icon has x's and and hovering says "connection to dhcpcd lost"

I copied the wlan0 portion of interfaces file from the old installation....
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual
allow-hotplug wlan0

iface wlan0 inet static
address 192.168.0.210
netmask 255.255.255.0
network 192.168.0.0]
...this might be where I go wrong. I don't understand the line about consulting /etc/dhcpcd.conf. It doesn't exist.

I looked at some tutorials to see if I could figure out how to get the wifi to work. I know it's physically ok because if I boot with the old SD, it attached fine. I went to four tuts about setting up the network and EVERY one of them said to start with sudo apt-get update. How the hell do you do that if you are not connecting.

I have to figure that things have changed since the last time I installed a debian os, but I am not clear what I am doing wrong.

Can someone point me in the direction of a tut that is for the rp3 with wifi built in and using a recent os (if that's what noobs has)

Charlie

pcmanbob
Posts: 9467
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: new os install can't find wifi on an RP3

Fri Feb 09, 2018 7:47 pm

If you want to install raspbian via noobs then I suggest you follow the read.me here : https://github.com/raspberrypi/noobs which tells you how to connect your pi to the network.

But its much easier these day to just flash your SD card directly with an image.
so download image file from here https://www.raspberrypi.org/downloads/raspbian/
and etcher from here https://etcher.io/
then use etcher to flash your SD card directly without even having to un-zip the image file.
https://www.raspberrypi.org/documentati ... /README.md

Also if you are installing raspbian jessie or stretch you do not use /etc/network/interfaces for wifi set up, you now use wpa-supplicant.conf for the wifi and /etc/dhcpcd.conf for static IP's
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

cchisholm
Posts: 84
Joined: Sat Mar 07, 2015 4:47 pm

Re: new os install can't find wifi on an RP3

Fri Feb 09, 2018 9:37 pm

Wow. Loading the image is certainly an improvement over the old way. Took me about a quarter of the time it did trying to do it the old way, and the best part is IT WORKED!! Now I just need to do some exploring to figure out how to use wpa-supplicant.conf to setup a static IP. I will try it on my own before bugging anyone. I;m sure there is a tut or two on that. :D

Thanks again, sir.
Charlie

pcmanbob
Posts: 9467
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: new os install can't find wifi on an RP3

Fri Feb 09, 2018 9:57 pm

NO you use /etc/dhcpcd.config to set static IP.

see here its the same for jessie and stretch , stretch will have examples in the file already.
https://discourse.pi-hole.net/t/how-do- ... d-conf/239

wpa-supplicant.conf is used to per configure a wifi connection , but if you are using the desktop version of raspbian you can connect to wifi using the networking icon on the task bar.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

crchisholm
Posts: 7
Joined: Sun May 04, 2014 3:14 pm

Re: new os install can't find wifi on an RP3

Sat Feb 10, 2018 1:54 am

Actually, I am trying to configure wifi. I don’t have a an Ethernet connection. In that case I WOULD be working with spa-supplicant.conf, right?

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: new os install can't find wifi on an RP3

Sat Feb 10, 2018 2:03 am

pls
to connect via WIFI need
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
and add at end:

Code: Select all

network={
        ssid="YOUR-SSID"
        psk="YOUR-SSID-PASSWORD"
        key_mgmt=WPA-PSK
}
sudo reboot

to make a fix IP
sudo nano /etc/dhcpcd.conf
add at end:

Code: Select all

interface eth0
static ip_address=192.168.1.101/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8 8.8.4.4

interface wlan0
static ip_address=192.168.1.201/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
one reason to use fix IP might be remote access so pls use
sudo raspi-config
and set SHH and VNC to ON

and pls undo the changes you might have done to file "interfaces"

cchisholm
Posts: 84
Joined: Sat Mar 07, 2015 4:47 pm

Re: new os install can't find wifi on an RP3

Sat Feb 10, 2018 8:34 pm

I did as you suggested, and it did get wifi working locally, but I guess something is still wrong with DNS. I can't get out to the internet, on the Pi even though I can see my router and other computers on the network. I get Err_name_resolution_failed, so I'm sure I've messed up DNS somehow.

Here is the dhcpcd.conf....
pi@pcb1:~ $ ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:2f:73:01 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:7a:26:54 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.210/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::fe28:c73f:6492:2648/64 scope link
valid_lft forever preferred_lft forever

# Example static IP configuration:
#interface eth0
#static ip_address=192.168.0.10/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
#static routers=192.168.0.1
#static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1

# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.0.220/24
#static routers=192.168.0.1
#static domain_name_servers=192.168.0.1

# fallback to static profile on eth0
#interface eth0
#fallback static_eth0

interface wlan0
static ip_address=192.168.0.210
static roouters=192.168.0.1
static doman_name_servers=8.8.8.8 8.8.4.4
and here is the ip addr....
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:2f:73:01 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:7a:26:54 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.210/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::fe28:c73f:6492:2648/64 scope link
valid_lft forever preferred_lft forever
I wasn't sure what to use for the domain name server and I copied what I saw on some other posts, so that is probably were things went south. What should I use?

Addendum: if I try to ping google.com's IP (216.58.194.110) , I get "network unreachable" even though I can ping it from other computers on my local network, so it must be more than the domain name server, right?

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: new os install can't find wifi on an RP3

Sat Feb 10, 2018 10:20 pm

static roouters?????
Last edited by KLL on Sat Feb 10, 2018 11:00 pm, edited 1 time in total.

pcmanbob
Posts: 9467
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: new os install can't find wifi on an RP3

Sat Feb 10, 2018 10:29 pm

I think you should go back to the start and remove the static IP you have set and then reboot and allow your router to give the pi it's IP.

Then check you can connect to the internet.
If you can then look and see what IP address, gateway & DNS servers you have been assigned.

Then you will have a better idea of the settings you need for you static IP settings because something must be wrong with the current ones you are using.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

cchisholm
Posts: 84
Joined: Sat Mar 07, 2015 4:47 pm

Re: new os install can't find wifi on an RP3

Sat Feb 10, 2018 11:21 pm

Actually, KLL it it on the nose. I typo-ed the word routers with two o's. This has been a really frustrating day, but that turned it around. I looked at those lines a hundred times but never noticed that. I am good now. Thank you for your help and suggestions and a huge cyber hug out to KLL!!!

Return to “Beginners”