Comments: Setting up a Raspberry Pi 3 as an Access Point
Looking for answers to technical questions?
We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.
The changes that are made to /etc/network/interfaces should actually be in the same /etc/dhcpcd.conf that denyinterfaces wlan0 goes in. Try that and see if it works
I believe this tutorial was written a while ago. There are two possible issue that I can think of... you are using a Pi 4 or you are using the new "Buster" image. I'm not sure this tutorial will work with a Pi 4 and I think it was written back in the "Jessie" or "Stretch" era. If you aren't using a Pi 4, maybe try an older image. You can find an archive here: https://downloads.raspberrypi.org/raspbian/images/
Well, this tutorial comes closest to configuring my Raspberry Pi 3 as an access point. At least it assigns the defined static IP address to the wlan0 interface. I followed the instructions up through the "Test WiFi Connection" section, However, the network name I defined isn't showing up as a network option for my laptop.
I followed the instructions to the T and triple checked the config files. The only think I did differently is use the Nov 2018 version of Raspian (and I used the light version). I didn't try the March 2018 version used in the tutorial. I might try this, even tho it appears to be the non-lite version (with a GUI).
If anyone has suggestions, thanks in advance!
I tried the same thing as you the Nov 2018 Raspbian Lite version and just like you wasn't able to get the tutorial to work.
However, the one linked in this tutorial March 2018 worked great after one small addition before you start run:
"sudo apt-get update"
otherwise you'll get the following error:
Err:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf hostapd armhf 2:2.4-1+deb9u1 404 Not Found [IP: 184.108.40.206 80] E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/w/wpa/hostapd_2.4-1+deb9u1_armhf.deb 404 Not Found [IP: 220.127.116.11 80]
The apt-get update command downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies.
I was also successful in using the March 2018 in headless mode. I dropped a blank "ssh" file in the boot partition and was able to run the complete tutorial without having to hook-up a keyboard and mouse. The Raspberry Pi 3 was hooked up over wired ethernet.
Hope this helps!
Straight and to the point. Thanks for posting!
If you've found an issue with this tutorial content, please send us your feedback!
I followed the tutorial and have double checked I modified all the files as described. The only change I made was to change the wpa passphrase (because ofc).
when I reboot the pi I get an error message "failed to start DHCPCD on all interfaces. See 'systemctl status dhcpcd.service' for details" and when I run that command I get the following output:
Aug 08 18:37:11 raspberrypi systemd: Starting dhcpcd on all interfaces... Aug 08 18:37:11 raspberrypi dhcpcd: Not running dhcpcd because /etc/network/interfac Aug 08 18:37:11 raspberrypi dhcpcd: defines some interfaces that will use a Aug 08 18:37:11 raspberrypi dhcpcd: DHCP client or static address Aug 08 18:37:11 raspberrypi systemd: dhcpcd.service: Control process exited, code=exit Aug 08 18:37:11 raspberrypi systemd: Failed to start dhcpcd on all interfaces. Aug 08 18:37:11 raspberrypi systemd: dhcpcd.service: Unit entered failed state. Aug 08 18:37:11 raspberrypi systemd: dhcpcd.service: Failed with result 'exit-code'.
Does anyone have advice on how to troubleshoot this problem? I'm pretty sure DHCP needs to run in order for this to work if I understand it correctly...