Wasn't seeing the Pi Zero in the network list and couldn't ssh into it. Turns out there's a timing issue where Windows gives up trying before the Pi boots. Solution, separate power source for the Pi. I plugged in the Pi power port to one usb port of my laptop, and let it boot, then plugged the data port into another usb port, and magic, it appears in the network list and I can ssh into it no problem.
A suggestion to make this even better: explain why each of the config changes/additions are required. This will increase both achievement(which you already have) with understanding. For bonus points include where/how you found the different techniques/commands soothers can do the same 👍
it wasn't getting access to wi-fi until I changed network credentials through "sudo raspi-config" command, then it asked me the name of my country I am using the Pi at, after that I entered the credentials and Wollah! it works like a charm... Thanks all of you..
Hey, great video and info. Thank you. However... yes, here it comes... since Apple quit supporting Bonjour on Windows a while back, Bonjour ‘on WINDOWS’ is a known security risk. It is still supported on Mac, just not for Windows. So my point being that once you get your Pi configured for whatever you’re going to use it for (pi-hole, for example) you should uninstall Bonjour when you’re done. Cheers.
Thank you!!! The first tutorial after many of tutorials, which don´t have all the information's and steps! Particular for beginners - a success! Keep going!
I know this is a really old video and you might not even see this comment, but I would very highly suggest explaining what the edits to the text files actually do. You did for the ssh file, but not for the text added to the other two files. Thanks for the video!
Thank you! This helped a lot. For some reason my Pi Zero W wasn't connecting with HDMI, and I didn't know how to SSH into it without it being connected to wifi.
It worked perfectly when I did it like a year ago, today I also had to open /etc/network/interfaces and add: auto wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf And reboot
@@shaneorourke110 its been a while but I think I just save, and in the drop down menu on windows file, change it to any file, then put .ssh at the end of the file name
I was struggling to get mine setup headless until I followed your directions. Well done, thanks. I'll echo that once in via ssh, configuration with raspi-config is an easy way to go.
i'm having a problem whenever i try to reconfigure the wpa_cli... it display "Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory
I had the same issue and this solved it: follow the steps in the video to ssh into the pi, then follow tmbg1985's comment to sudo raspi-config and set the network creds and pword there. then go back and do sudo wpa_cli reconfigure and ifconfig wlan0 So: 1. ssh into pi 2. sudo raspi-config 3. set netword creds 4. sudo wpa_cli reconfigure 5. ifconfig wlan0
Hi, Thanks for the video. Will this work on the non-wireless PI zero ? After doing all steps, I don't get the rpi in the adapters section as you did. Anyone with the same problem ? Thanks in advance
If you want to be able to connect to the Raspberry Pi (or any Debian system) via its host name, install the llmnrd package (via "apt-get install llmnrd"). This daemon will basically send the same packets that other Windows computers use to declare themselves on the network and it's much better than installing Bonjour or editing the hosts file. Just remember to also use "hostname raspberry" or whatever, then reboot your Pi. This will allow you to connect to your Raspberry Pi and use things like Samba without using its IP address.
Thanks for the video it was very interesting but I gave up in the end as I can't get it to work even with bonjour and all the messing about the Pi Zero w would not show up anywhere I cant see it on my router network or angry IP scanner or windows 10 network I even tried another scanner on my Andriod phone but nothing I tried my power supply from my Raspberry pi 3b but nothing I see the green light flicker and then go solid green but that is it I give up but thanks
Just tried with 3 different raspi's (zero W) and 3 different versions of raspbian (2017-4-10, 2018-11-13, 2019-04-09) on windows 10 notebook. None of that werk, just got an USB serial device connected but no network conections. First conecting the pi to power to give it time to reboot and then conecting to pc but nothing happens :/ start thinking this is all false
It really does work. In the next few weeks I'll be redoing this tutorial for my new website raspberrypiprojects.com so I'll post here once it's up so you can try it. Just incase anything major has changed in between then and now.
Here are somethings which I discovered while trying to setup my Raspberry pi zero W 1. Followed all steps perfectly as shown in the video and also reading comments, but it wouldn't connect to the internet 2. Eventually, connected HDMI to TV and found that the boot up was fairly slow and wasn't sure why but still decided to reflash with Raspbian Stretch(GUI) 3. Connected a USB dongle for my Microsoft Keyboard 850(mouse and keyboard combo) and rebooted this time with Raspbian stretch and it was good to see both keyboard and mouse work! 4. Remember this is designed to connect only to 2.4GHz and 5GHz is not seen by the pi. Wifi could see all the access points around me but wouldn't connect even after entering the right PSK. Disabling, rebooting multiple times didn't help either. 5. Set these things manually locale, keyboard language, timezone and internet setting for country. This helped to connect the pi to wifi. 6. Once connected, the wifi icon display is equivalent to "connecting..." seen on most devices / operating systems, but it actually means it's already connected. Realized only after about 5 minutes and pinging multiple domains. I will probably disable X on the server after I'm happy with the overall performance for few days. Hope this helps someone who might be struggling.
Help please. I'm on a Windows 10 PC, installed Bonjour. RPi shows up in network connections. I use the host name pi@raspberrypi.local. Host does not exist. :(
You are a lifesaver! Thank you very much. It is strange that this method is not available at the official RSPI site...I mean they all repeat the same stuff that doesn't work... If you want to avoid installing Bonjour, then you should type in putty: raspberrypi.local port 22 Connect and then use default login: pi and password: raspberry after that, you are connected and you should change default raspberry password When I type pi@raspberrypi.local I get an error, but if I type raspberrypi.local, then you will be asked for login and password and everything works... REspEcT Bro!
is it possible to share internet with the PC? That way the PC can use a wired connection, and the Pi can access debian repos over that save wired connection, tunneled through ssh over usb? Then you could use a pi zero (not the w)
This doesn't work on Unix system in 2024: the network list shows an Ethernet connection with status "unplugged". I saw the status stuck at "connecting" before I created the empty "ssh" file in the root FS.
I could not connect and tried everything. Installing Bonjour fixed it. I would like to know why Bonjour is needed for this. It doesn't make much sense. Another thing to note is that when you image your SD card, you will get two partitions and Windows will mount each separately. The first partition is readable in Windows, but the second is not. This is completely normal. Leave the second partition alone. If Windows asks if it can format it, then tell it not to. I am using Windows 10 Professional.
I think the reason it works is because Bonjour flushes the DNS list. I'm not certain about this but I found another fix to the same problem involving flushing the DNS so it seems highly possible that this is the case
Thanks man this video had everything I needed to connect my Pi Zero. I was kinda frustrated before this because of lack of ports but that's the point of the zero.
I just created the wpa_supplicant.conf file in the root of the boot partition with the details as you showed. Rasbian will pick it up and connect to your wifi network. And off course the ssh file so you can ssh into the machine.
All the steps run from OSX. Create the ssh file with Textedit and then delete the .rtf extension by right-clicking Finder on the ssh name and choosing "get information" there is deleted .rtf and saved. I already have management via USB - >> ssh. Additional I was successful and already connected to WiFi in my home. Thanks again
Simple n efficient n effective way of putting things across. Please make a video on port forwarding raspberry pi zero w and use Blynk from out side the LAN. THANK YOU IN ADVANCE
Yes. So the Pi Zero W is connected to the PC via USB only. In the mode that it is put into, it acts a network device which then allows access to it via Putty
In my case, my pc not dettect/create a network device whe I connect my Pi zero W... So I can connect via wifi, but not by usb using domain.local address... why?
After creating the wp_supplicant file, I ran sudo wpa_cli reconfigure, but got the error "Failed to connect to non-global ctrl_ifname:(nil) error. No such file or directory"
I finally made it to the end to set up the Wifi but I get the error of "p2p-dev-wlan0" after inputting my SSID and PSK. :( Does anyone know what i should do to remedy this problem? Thank you in advance!
Hi Thanks, for your video. I need to program my RPi Zero W to control GPIO's Do I do that through the command line or ant better application like Notepad ++ Once programming is done I will need to control GPIO's through WiFi Any suggestions?? or any advice Thanks again, KZEM FROM CANADA
Hello , I use raspberry pi 0 , when I put sudo wpa_cli reconfigure I get Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory please could you tell me why do I get this error?
Thanks, nice explanation. I did have to boot my zero on USB power first then wait a while before plugging it in to my PC. But after that SSH worked great.
I have added these two files in the boot directory after installing raspbian with desktop and recommended software, but still my Raspberry Pi Zero doesn't appear in the networks list. One thing more whenever I remove SD card from my computer and plug it back those two files get disappeared.
In Putty config there is a serial connection option. I have actually connected to the COM3 but in serial configuration it was COM1. Changed that to COM3 and it worked for me.!!
Is it possible to set up the Pi Zero W as a wireless router with its own SSID name - thus both acting as the host and a user of its own local wi-fi network. Then let other devices discover and connect directly to the Pi by selecting its SSID from the list of wireless networks? (So neither the Pi nor the other device would both need to be on a network provided by an additional third router, like the home-network for example?
Basically: i want to be able to connect a batterypowered device equipped with a display wirelessly to a batterypowered Raspberry Pi - while being outdoors in the middle of nowhere, far away from nearest civilization! (And without using my phone as hotspot)
I'm running a Pi Zero W (Jessie) that already works with SSH over ethernet. On the Pi side, how could I check if SSH over USB is also already enabled (or enable it if not already)? On the PC/Windows side, I use MobaXterm for SSH'ing via ethernet.. what kind of software/drivers would I need to SSH to the PI via USB?
ok i got connected using vnc and putty...and my pi0W and laptop are connected to same network.................... but if i go somewhere where there is a different wifi...then? As my pi0W will have the previous wifi credentials
Will I need to do this for octopi? My pi zero W came today, gonna install octopi on it tomorrow is there anything I need to know compared to when I installed it on my pi 3?
Thank you so much! I've had a Pi Zero in my PC bag forever cuz I never had time to ,or couldn't, mess with it. This solution worked. However, it seems Putty doesn't want to connect to the Pi if I'm connected to wifi and try to ssh into Pi via usb/ethernet. Suggestions?
This is outdated and is a terrible way to set up headless mode. All you need to do is format the SD card, install the OS image to the SD card, make the ssh file, and make a file named "wpa_supplicant.conf" with the contents of the file being: country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="your_real_wifi_ssid" scan_ssid=1 psk="your_real_password" key_mgmt=WPA-PSK } Save and boot up your Raspberry Pi. Wait about 40 seconds, and check your routers LAN clients list. You should see one named raspberrypi and the local IP address next to it. Just SSH using that IP and if you're successful it will save the settings automatically. This works for the latest Raspbian Stretch image as well, if you have an issue with Stretch, all you need to do is make another network below it with fake info and it will connect to the real one. So the file would look like this instead: country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="your_real_wifi_ssid" scan_ssid=1 psk="your_real_password" key_mgmt=WPA-PSK } network={ ssid="fake_wifi_ssid" scan_ssid=1 psk="fake_wifi_password" key_mgmt=WPA-PSK }
Hi how do you connect by ssh on the ip? i managed to connect to the pi on the ip but with the wrong user, can you give me an example to connect by ssh and ip with the user pi@raspberrypi.local ? THX
it took me a full day, but I figured out the problem was with the .conf information I was using because we use AES. if anyone else is having this problem, use this in the .conf file. ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="myssid" psk="mypasskey" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN }
i am unable to access my raspberry pi zero wirelessly, I made a wpa_supplicant.config file providein ssid and psk but I am doubtful about key_mgmt, because when I open my router configurations, it shows WPA2-PSK and you told WPA-PSK, so I only provided my routers wifi name and password, leaving KEY_MGMT.
Can't seem to boot my Pi Zero W in any way. I tried a miniHDMI cable and noob - that only gave me a flickering screen. Changed the power adapter and image and it's not booting into anything. Changed the wifi settings to connect to my network and created the SSH file - doesn't seem to run in headless mode. Now I tried your method and it doesn't show up in the network overview. Halp?
Do you need to undo the edits which you made to enable the pi as an Ethernet gadget in order to make the pi behave "normally" (after you've setup wifi)?
Hello... I tried the same but after attaching my sd card to pi 0 w, It doesnt show any identifying Eathernet I also tried to do on PuTTY put it shows raspberry pi local host not exixt even i had also installed bonjuour
Please help! It doesn't work for me. When i create the file ssh I can see that the file is there. But when i put the SD card in tke pi nothing happents. Then I put the SD card back in the pc, to see if I made some mistake with the cmdline.txt og config.txt but no, everything was fine. But the ssh file is gone! I have tryed to do it once again, with the same resoult. I have also booted up the pi and configured the ssh in raspi-config still nothing. I have a raspberry pi zero w with raspbian
OK. I've putty'd in. It works. What I want to do is use the gigabit internet on my desktop on the pi - rather than the wifi. I already have WiFi on the Pi 0 w working. So I don't need to do THAT... I need to ENABLE the pi 0 w to USE the gigabit Ethernet on my desktop. Can you show me how to do THAT. I realize I can wire in an Ethernet cable to the PI but I'd rather just go through the connection you've just helped me set up. Also I realize I can not get gigabit speeds through this type of connection...I'd be happy with whatever it can deliver. Thanks.
Thanks a lot! it worked for me, the crucial step was to install Bonjour. I wonder why it is not mentioned anywhere else or even other tutorial video do not mention it. and off course usb cable was another catch only the last step didn't work wpa_cli reconfigure failed with this message (Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory) could you please let me know what could be wrong?
Couldnt make file without txt extension, but I used a file that was the same format needed, being somewhere in my programs. Copied to sd card then deleted the info in the file with notepad++ and changed name. Update, works
Really excellent video! I ordered a basic zero and camera, just for uav timelapse. The forums left me thinking it's not going to be possible without a whole load more gear, and way too complicated. Can you please help with how I get the zero to stop being a camera when I want to transfer the folder of images to the laptop? I'd have to interrupt or pause it somehow?
Instructions worked for me, but I had to install raspbian_lite-2017-04-10 . It would be nice for there to be updated tutorials on how to do this with the newer versions of raspberry pi OS. Also, might help to know that the default pwd for user "pi" is raspberry"
@Antonius Vivinn I was going to do a video on this but I first wanted to apply a heatsink and thermal paste to regulate temperature. I unfortunately short circuited something and fried the pi zero. But I did complete a Nas project with Pi4
Not working for me. I got wpa_supplicant setup as instructed, but wla0 does not get an IP. I have double and triple checked. Also get an error running sudo wpa_cli reconfigure.
Can I still use it with an hdmi and keyboard when I Already upload it like that Plz reply I really need help I really want my raspberry pi 0 to be a desktop and a portable
Access via usb worked great. Wireless access to the config file failed, aka ... accessing it via the wireless by modifying the supplicant file. It does work if you use putty to access the setup menu or type the command $: sudo raspi-config and then access the network menu and install the network and password. The problem seems to be an update that moves the sensitive password and web access files. BTW. You can then use ifconfig wlan0 to see the host ip and login or create an array of hosts as needed. PS the use of GPIO numbers using PIN numbers appears to be a concern when using Broadcom and WiPi
It is not working for me... I see a new USB network connecton on my Network adapters window, but it is disabled and I can't figure out how to turn it on.... also, I'm using Kali linux but it shouldn't be different.
having trouble creating ssh.file using mac OS. Also the files to be copied to the SD card are the ones contained in the raspberian stretch lite; from the raspberry pi website, correct??
Please help me! I don't have lan cable to connect the laptop and the raspberry pi and I using Putty but the it is showing "host doesn't exist" I don't even know the ip address, what should I do can anyone please help me?
Ey bro, when i type sudo wpa_cli reconfigure this shows up Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory how can i fix it ?
well im about 89 videos in now to see if there is any way to get the wifi module working on my new pi zero. im just about to toss it into the garbage .. but now i found this so ill deff give this a try.. keep you posted..
when i run sudo cli_reconfigure.. i get this error message: failed to connect to non-global ctrl_ifname i checked it on net...but still nothing helped me out yet... I am using Pi zero v1.3 Thank you in advance
OMG YES THIS TOOK ME LIKE 50 VIDEOS TO FIND THE RIGHT ONE AND NOW IT FINALLY WORKS THANK YOU SO MUCH!!! IT WAS THE BOUJOUR THAT SAVED ME
Wasn't seeing the Pi Zero in the network list and couldn't ssh into it. Turns out there's a timing issue where Windows gives up trying before the Pi boots. Solution, separate power source for the Pi. I plugged in the Pi power port to one usb port of my laptop, and let it boot, then plugged the data port into another usb port, and magic, it appears in the network list and I can ssh into it no problem.
followed your tips, it worked. then next day it didn't work again. host does not exist
Flush the DNS. You can do this by opening command prompt and typing in "ipconfig /flushdns" and try again. This should fix it.
Updating the driver for that connected port worked for me:)
Evan Cain didn’t work for me ;(
Evan Cain it says host doesn’t exist
A suggestion to make this even better: explain why each of the config changes/additions are required. This will increase both achievement(which you already have) with understanding. For bonus points include where/how you found the different techniques/commands soothers can do the same 👍
I found this and it is perfect. The only thing I had to do different was to reboot the pi zero w to get the wireless to come up. Excellent work!
And that intro : "Awesome!"
it wasn't getting access to wi-fi until I changed network credentials through "sudo raspi-config" command, then it asked me the name of my country I am using the Pi at, after that I entered the credentials and Wollah! it works like a charm... Thanks all of you..
Hey, great video and info. Thank you. However... yes, here it comes... since Apple quit supporting Bonjour on Windows a while back, Bonjour ‘on WINDOWS’ is a known security risk. It is still supported on Mac, just not for Windows. So my point being that once you get your Pi configured for whatever you’re going to use it for (pi-hole, for example) you should uninstall Bonjour when you’re done. Cheers.
Thank you!!! The first tutorial after many of tutorials, which don´t have all the information's and steps! Particular for beginners - a success! Keep going!
it was the explanation of the twonUSB ports that did it for me
I know this is a really old video and you might not even see this comment, but I would very highly suggest explaining what the edits to the text files actually do. You did for the ssh file, but not for the text added to the other two files. Thanks for the video!
Protip for persons that stucked in 3:10: If you changed host name before, you should use it instead of "raspberrypi" ;)
Thank you! This helped a lot. For some reason my Pi Zero W wasn't connecting with HDMI, and I didn't know how to SSH into it without it being connected to wifi.
It worked perfectly when I did it like a year ago, today I also had to open /etc/network/interfaces and add:
auto wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
And reboot
why doesnt this work for me? my pc is not recognising the raspberrypi in network connections pls help!
same here... Windows 10 recognizes it as a Serial device. I tried manually installing drivers but no luck.
Hey dude you saved the day. I spent whole evening yesterday trying to ssh into the Zero, your video helped me solve the issue in like 5 minutes tops!
how did you make the ssh file into a file, because everytime I try to do it, the file just stays as a text document
@@katamus Did you figure it out? Are you on windows or Linux?
@@shaneorourke110 its been a while but I think I just save, and in the drop down menu on windows file, change it to any file, then put .ssh at the end of the file name
@@katamus I don't think that's right mate. The file should have no extension. Just named SSH
this is because your file explorer hides the file extension. You need to go to File>Options>View and untoggle hide extensions for known file types
I was struggling to get mine setup headless until I followed your directions. Well done, thanks. I'll echo that once in via ssh, configuration with raspi-config is an easy way to go.
worked first time, i was up all night trying before i watched this, thanks
i'm having a problem whenever i try to reconfigure the wpa_cli... it display "Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory
I had the same issue and this solved it:
follow the steps in the video to ssh into the pi, then follow tmbg1985's comment to sudo raspi-config and set the network creds and pword there. then go back and do sudo wpa_cli reconfigure and ifconfig wlan0
So:
1. ssh into pi
2. sudo raspi-config
3. set netword creds
4. sudo wpa_cli reconfigure
5. ifconfig wlan0
HELP!!!! I followed and did everything as shown in the video but I keep receiving "Host does not exist" message although I have Bonjour installed
Did you get pi in your network adopter folder?
@@zainuddin3638 i haven't got the pi in network , i don't know why
Hi,
Thanks for the video. Will this work on the non-wireless PI zero ?
After doing all steps, I don't get the rpi in the adapters section as you did.
Anyone with the same problem ?
Thanks in advance
God bless you my brother, I had several weeks without understanding how to do this procedure.
I connect perfectly, thanks to your tutorial
Wonderful!!
Can you make this video but for the retropie instead. Was able to use for raspbian but need it for the retropie os instead.
If you want to be able to connect to the Raspberry Pi (or any Debian system) via its host name, install the llmnrd package (via "apt-get install llmnrd"). This daemon will basically send the same packets that other Windows computers use to declare themselves on the network and it's much better than installing Bonjour or editing the hosts file. Just remember to also use "hostname raspberry" or whatever, then reboot your Pi. This will allow you to connect to your Raspberry Pi and use things like Samba without using its IP address.
Thanks for the video it was very interesting but I gave up in the end as I can't get it to work even with bonjour and all the messing about the Pi Zero w would not show up anywhere I cant see it on my router network or angry IP scanner or windows
10 network I even tried another scanner on my Andriod phone but nothing I tried my power supply from my Raspberry pi 3b but nothing I see the green light flicker and then go solid green but that is it I give up but thanks
same
Just tried with 3 different raspi's (zero W) and 3 different versions of raspbian (2017-4-10, 2018-11-13, 2019-04-09) on windows 10 notebook. None of that werk, just got an USB serial device connected but no network conections. First conecting the pi to power to give it time to reboot and then conecting to pc but nothing happens :/ start thinking this is all false
It really does work. In the next few weeks I'll be redoing this tutorial for my new website raspberrypiprojects.com so I'll post here once it's up so you can try it. Just incase anything major has changed in between then and now.
Legend, worked on the Pi Zero (no wifi) first time....Many Thanks
Is there anything different from the video
or can i have your contact for asking something i cant fix
Worked for me...thanks! I followed every step, only thing is on the mac you have to type ssh prior to the command
Here are somethings which I discovered while trying to setup my Raspberry pi zero W
1. Followed all steps perfectly as shown in the video and also reading comments, but it wouldn't connect to the internet
2. Eventually, connected HDMI to TV and found that the boot up was fairly slow and wasn't sure why but still decided to reflash with Raspbian Stretch(GUI)
3. Connected a USB dongle for my Microsoft Keyboard 850(mouse and keyboard combo) and rebooted this time with Raspbian stretch and it was good to see both keyboard and mouse work!
4. Remember this is designed to connect only to 2.4GHz and 5GHz is not seen by the pi. Wifi could see all the access points around me but wouldn't connect even after entering the right PSK. Disabling, rebooting multiple times didn't help either.
5. Set these things manually locale, keyboard language, timezone and internet setting for country. This helped to connect the pi to wifi.
6. Once connected, the wifi icon display is equivalent to "connecting..." seen on most devices / operating systems, but it actually means it's already connected. Realized only after about 5 minutes and pinging multiple domains.
I will probably disable X on the server after I'm happy with the overall performance for few days.
Hope this helps someone who might be struggling.
Help please. I'm on a Windows 10 PC, installed Bonjour. RPi shows up in network connections. I use the host name pi@raspberrypi.local. Host does not exist. :(
same problem here. Please help
@@MusaView If you have the ip address then use that in putty instead of local host.
sashacoe25 How do you find the IP address?
You are a lifesaver! Thank you very much.
It is strange that this method is not available at the official RSPI site...I mean they all repeat the same stuff that doesn't work...
If you want to avoid installing Bonjour, then you should type in putty:
raspberrypi.local
port 22
Connect and then use default login: pi and password: raspberry
after that, you are connected and you should change default raspberry password
When I type pi@raspberrypi.local I get an error, but if I type raspberrypi.local, then you will be asked for login and password and everything works...
REspEcT Bro!
is it possible to share internet with the PC? That way the PC can use a wired connection, and the Pi can access debian repos over that save wired connection, tunneled through ssh over usb? Then you could use a pi zero (not the w)
This doesn't work on Unix system in 2024: the network list shows an Ethernet connection with status "unplugged".
I saw the status stuck at "connecting" before I created the empty "ssh" file in the root FS.
I could not connect and tried everything. Installing Bonjour fixed it. I would like to know why Bonjour is needed for this. It doesn't make much sense.
Another thing to note is that when you image your SD card, you will get two partitions and Windows will mount each separately. The first partition is readable in Windows, but the second is not. This is completely normal. Leave the second partition alone. If Windows asks if it can format it, then tell it not to. I am using Windows 10 Professional.
I think the reason it works is because Bonjour flushes the DNS list. I'm not certain about this but I found another fix to the same problem involving flushing the DNS so it seems highly possible that this is the case
I made all changes in config and cmdline, but the device doesn't show up in network connections. What's the way out?
Same here, I guess too much has changed in the raspbian OS in the last 4 years.
Thanks man this video had everything I needed to connect my Pi Zero. I was kinda frustrated before this because of lack of ports but that's the point of the zero.
worked great! tried another method and that did't work.. so glad i found this!!
I just created the wpa_supplicant.conf file in the root of the boot partition with the details as you showed.
Rasbian will pick it up and connect to your wifi network. And off course the ssh file so you can ssh into the machine.
All the steps run from OSX.
Create the ssh file with Textedit and then delete the .rtf extension by right-clicking Finder on the ssh name and choosing "get information" there is deleted .rtf and saved.
I already have management via USB - >> ssh. Additional I was successful and already connected to WiFi in my home.
Thanks again
I would like the different direction to get there PC screen through the raspberry USB
Simple n efficient n effective way of putting things across.
Please make a video on port forwarding raspberry pi zero w and use Blynk from out side the LAN.
THANK YOU IN ADVANCE
noob question, at 02:30 is the pi connected to the windows PC via USB, and that's how you putty on via a USB network? thanks
Yes. So the Pi Zero W is connected to the PC via USB only. In the mode that it is put into, it acts a network device which then allows access to it via Putty
In my case, my pc not dettect/create a network device whe I connect my Pi zero W... So I can connect via wifi, but not by usb using domain.local address... why?
I have the same issue. Mine never shows the network adapter and I can't connect to it. Any resolution?
After creating the wp_supplicant file, I ran sudo wpa_cli reconfigure, but got the error "Failed to connect to non-global ctrl_ifname:(nil) error. No such file or directory"
I finally made it to the end to set up the Wifi but I get the error of "p2p-dev-wlan0" after inputting my SSID and PSK. :(
Does anyone know what i should do to remedy this problem?
Thank you in advance!
You are awesome man, worked in first attempt after trying many other methods !!!!!!!!!
Thank you so much, sir. That's a great piece of work
Hi Thanks, for your video. I need to program my RPi Zero W to control GPIO's
Do I do that through the command line or ant better application like Notepad ++
Once programming is done I will need to control GPIO's through WiFi
Any suggestions?? or any advice
Thanks again, KZEM FROM CANADA
Super Helpful Video! I wonder how long it takes to boot and then be seen by your computer?
can i output over usb and hdmi at the same time? or even spi and usb. I want a view finder on my pi zerocam
Hello , I use raspberry pi 0 , when I put sudo wpa_cli reconfigure
I get Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory
please could you tell me why do I get this error?
Thanks, nice explanation. I did have to boot my zero on USB power first then wait a while before plugging it in to my PC. But after that SSH worked great.
I have added these two files in the boot directory after installing raspbian with desktop and recommended software, but still my Raspberry Pi Zero doesn't appear in the networks list. One thing more whenever I remove SD card from my computer and plug it back those two files get disappeared.
That's my issue also! Were you ever able to get it to appear to the networks list?
I followed every instruction but still cannot get this too work. Running the latest Windows 10, with Bonjour, it still gets the error. Any ideas?
Sometimes it can be the USB cable. Try a different one but also every time it fails, you need to recreate the SSH file as it gets deleted.
You have to manualy install "usb ethernet/rndis gadget" driver
even iam facing the samed problem
in win 10
how?
In Putty config there is a serial connection option. I have actually connected to the COM3 but in serial configuration it was COM1. Changed that to COM3 and it worked for me.!!
cool tutorial, thanks so much according to this can connect to home wifi, but iPhone hotspots can't, do you know how to connect to iPhone hotspot?
Is it possible to set up the Pi Zero W as a wireless router with its own SSID name - thus both acting as the host and a user of its own local wi-fi network. Then let other devices discover and connect directly to the Pi by selecting its SSID from the list of wireless networks?
(So neither the Pi nor the other device would both need to be on a network provided by an additional third router, like the home-network for example?
Basically: i want to be able to connect a batterypowered device equipped with a display wirelessly to a batterypowered Raspberry Pi - while being outdoors in the middle of nowhere, far away from nearest civilization!
(And without using my phone as hotspot)
I'm running a Pi Zero W (Jessie) that already works with SSH over ethernet. On the Pi side, how could I check if SSH over USB is also already enabled (or enable it if not already)?
On the PC/Windows side, I use MobaXterm for SSH'ing via ethernet.. what kind of software/drivers would I need to SSH to the PI via USB?
Thank you very much only your solution worked out of all the videos in UA-cam
😇
I can't seem to find cmdline in the image files. Might it have a different name?
I'm ordering a raspberry pi zero w and do you have a video on creating a wifi hotspot on the pi and connecting to it to ssh?
ok i got connected using vnc and putty...and my pi0W and laptop are connected to same network....................
but if i go somewhere where there is a different wifi...then? As my pi0W will have the previous wifi credentials
Will I need to do this for octopi? My pi zero W came today, gonna install octopi on it tomorrow is there anything I need to know compared to when I installed it on my pi 3?
I did get this working. But do you know a way to pipe the audio from the R-Pi ZW through the USB so it comes out the PC speakers?
Cheers Jon,
I'd been banging my head against a wall for hours trying to set-up headless.
My Raspberry Pi Zero doesn't appear in the networks list. What could possibly be the reason?
Thank you so much! I've had a Pi Zero in my PC bag forever cuz I never had time to ,or couldn't, mess with it. This solution worked. However, it seems Putty doesn't want to connect to the Pi if I'm connected to wifi and try to ssh into Pi via usb/ethernet. Suggestions?
This is outdated and is a terrible way to set up headless mode. All you need to do is format the SD card, install the OS image to the SD card, make the ssh file, and make a file named "wpa_supplicant.conf" with the contents of the file being:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="your_real_wifi_ssid"
scan_ssid=1
psk="your_real_password"
key_mgmt=WPA-PSK
}
Save and boot up your Raspberry Pi. Wait about 40 seconds, and check your routers LAN clients list. You should see one named raspberrypi and the local IP address next to it. Just SSH using that IP and if you're successful it will save the settings automatically. This works for the latest Raspbian Stretch image as well, if you have an issue with Stretch, all you need to do is make another network below it with fake info and it will connect to the real one. So the file would look like this instead:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="your_real_wifi_ssid"
scan_ssid=1
psk="your_real_password"
key_mgmt=WPA-PSK
}
network={
ssid="fake_wifi_ssid"
scan_ssid=1
psk="fake_wifi_password"
key_mgmt=WPA-PSK
}
THANK YOU VERY MUCH!!
Hi how do you connect by ssh on the ip? i managed to connect to the pi on the ip but with the wrong user, can you give me an example to connect by ssh and ip with the user pi@raspberrypi.local ?
THX
AHH! i'm going nuts. I have tried this and other methods and i still can't ssh into the zero w. Do you have any other tips?
it took me a full day, but I figured out the problem was with the .conf information I was using because we use AES. if anyone else is having this problem, use this in the .conf file.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="myssid"
psk="mypasskey"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
Shellcode mi
Would this also work for a raspberry pi 4? I would like to be able to use one portably with my laptop.
i am unable to access my raspberry pi zero wirelessly, I made a wpa_supplicant.config file providein ssid and psk but I am doubtful about key_mgmt, because when I open my router configurations, it shows WPA2-PSK and you told WPA-PSK, so I only provided my routers wifi name and password, leaving KEY_MGMT.
Thank you so much! Still having issues but 90% of the way there in 6 mins!
Thanks @TechWizTime. It was really helpful, worked for me.
Once connected to my network and told to reconfigure, my pizw says interface 'p2p-dev-wlan0', Idk what that means or how to fix it! HELP!
same problem..need help
Can't seem to boot my Pi Zero W in any way. I tried a miniHDMI cable and noob - that only gave me a flickering screen. Changed the power adapter and image and it's not booting into anything. Changed the wifi settings to connect to my network and created the SSH file - doesn't seem to run in headless mode. Now I tried your method and it doesn't show up in the network overview. Halp?
unable to install driver whenever I tried plug in the usb into computer can you help me.
I am using 4gb mmc
Did you find out why
Do you need to undo the edits which you made to enable the pi as an Ethernet gadget in order to make the pi behave "normally" (after you've setup wifi)?
Hello...
I tried the same but after attaching my sd card to pi 0 w, It doesnt show any identifying Eathernet
I also tried to do on PuTTY put it shows raspberry pi local host not exixt even i had also installed bonjuour
Please help! It doesn't work for me. When i create the file ssh I can see that the file is there. But when i put the SD card in tke pi nothing happents. Then I put the SD card back in the pc, to see if I made some mistake with the cmdline.txt og config.txt but no, everything was fine. But the ssh file is gone! I have tryed to do it once again, with the same resoult. I have also booted up the pi and configured the ssh in raspi-config still nothing. I have a raspberry pi zero w with raspbian
thanks for the tutorail. will it work with thre raspbian full version or just the lite one?
OK. I've putty'd in. It works. What I want to do is use the gigabit internet on my desktop on the pi - rather than the wifi.
I already have WiFi on the Pi 0 w working. So I don't need to do THAT... I need to ENABLE the pi 0 w to USE the gigabit Ethernet on my desktop. Can you show me how to do THAT. I realize I can wire in an Ethernet cable to the PI but I'd rather just go through the connection you've just helped me set up. Also I realize I can not get gigabit speeds through this type of connection...I'd be happy with whatever it can deliver. Thanks.
Thanks a lot! it worked for me, the crucial step was to install Bonjour. I wonder why it is not mentioned anywhere else or even other tutorial video do not mention it.
and off course usb cable was another catch
only the last step didn't work wpa_cli reconfigure failed with this message (Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory) could you please let me know what could be wrong?
Couldnt make file without txt extension, but I used a file that was the same format needed, being somewhere in my programs. Copied to sd card then deleted the info in the file with notepad++ and changed name. Update, works
Really excellent video! I ordered a basic zero and camera, just for uav timelapse. The forums left me thinking it's not going to be possible without a whole load more gear, and way too complicated. Can you please help with how I get the zero to stop being a camera when I want to transfer the folder of images to the laptop? I'd have to interrupt or pause it somehow?
Instructions worked for me, but I had to install raspbian_lite-2017-04-10 . It would be nice for there to be updated tutorials on how to do this with the newer versions of raspberry pi OS. Also, might help to know that the default pwd for user "pi" is raspberry"
successfully followed the tutorial- you have my sub and like, sir! Now to get it set up as a NAS!
@Antonius Vivinn I was going to do a video on this but I first wanted to apply a heatsink and thermal paste to regulate temperature. I unfortunately short circuited something and fried the pi zero. But I did complete a Nas project with Pi4
You CANNOT use raspberrypi.local to ssh into it if you have another machine with that hostname on the network.
Not working for me. I got wpa_supplicant setup as instructed, but wla0 does not get an IP. I have double and triple checked.
Also get an error running sudo wpa_cli reconfigure.
I installed raspberry bullseye on my rasp pi. How do I change to dark mode ? Kindly guide
Can I still use it with an hdmi and keyboard when I Already upload it like that
Plz reply I really need help
I really want my raspberry pi 0 to be a desktop and a portable
😞☹️😣😩😠😓🤔🤥😇😂🙃🧐🤪😌😅🙃😉🙃🥲 that’s you not stop wining yes u can you just need adapters
Can you have the Normal UI of rasbian accessed wirelessly just like that version?
wont show up in my netowrk connections folder ideas?
Access via usb worked great. Wireless access to the config file failed, aka ... accessing it via the wireless by modifying the supplicant file. It does work if you use putty to access the setup menu or type the command $: sudo raspi-config and then access the network menu and install the network and password. The problem seems to be an update that moves the sensitive password and web access files. BTW. You can then use ifconfig wlan0 to see the host ip and login or create an array of hosts as needed. PS the use of GPIO numbers using PIN numbers appears to be a concern when using Broadcom and WiPi
Are there any ways to get this to work (usb from computer to PI) on the model 3B?
It is not working for me... I see a new USB network connecton on my Network adapters window, but it is disabled and I can't figure out how to turn it on.... also, I'm using Kali linux but it shouldn't be different.
Nice video. Do you know where to get an RNDIS Gadget driver for Windows 10? Not sure it even exists anymore.
didn't wok installed Bonjour still get that code another 20 min ill never get back and hes it showed up in my network cant putty in just dont work
having trouble creating ssh.file using mac OS. Also the files to be copied to the SD card are the ones contained in the raspberian stretch lite; from the raspberry pi website, correct??
did you figure out the way to create that SSH file on mac ?
yes but I forget now lol, I will look into it and get back to you
Please help me!
I don't have lan cable to connect the laptop and the raspberry pi and I using Putty but the it is showing "host doesn't exist" I don't even know the ip address, what should I do can anyone please help me?
Not working in my pc .it shows network cable unplugged.but it detects.
Ey bro, when i type sudo wpa_cli reconfigure this shows up
Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory
how can i fix it ?
well im about 89 videos in now to see if there is any way to get the wifi module working on my new pi zero. im just about to toss it into the garbage .. but now i found this so ill deff give this a try.. keep you posted..
First, I am using Linux, Then 'SSH' is work without modification?. When connected PC Power light in Rasp PCB is not lightup? any problem with my PCB.
I triple checked everything but I don't get the device showing up under network adapters, have confirmed Bonjur is latest.
when i run sudo cli_reconfigure.. i get this error message: failed to connect to non-global ctrl_ifname
i checked it on net...but still nothing helped me out yet... I am using Pi zero v1.3
Thank you in advance