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 👍
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.
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!
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.
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..
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
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!
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.
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.
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.
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
@@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
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?
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.
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.
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.
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
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'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
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.
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
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!
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?
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
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
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.
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.
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"
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..
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
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)
Great video. I just wish I could get my new rPI Zero W to be recognized. All OS's work but WiFi and Bluetooth don't come up... No matter what I try. Here in the US, I went to Best Buy to try and pickup a micro/mini USB to transfer data to my Mac so I could try your procedure but, they told me that it wouldn't work and would be a conflict due to a driver issue. They told me there was no resolve but yet, I watch your explanation it it all seems so simple... What am I missing? What is the EXACT cable needed to make your technique happen with the Zero W? Thanks in advance to anyone who can help out the newbie. 😉
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
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. :(
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.!!
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
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)?
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?
An excellent video! I have connected my pi to WiFi However, I have a problem. I can't find a datasheet of Rpi Zero W online. I wanted to know about the GPIO pins. Can you help?
Tarun Mittal:- Pi can be powered through GPIO pins but this bypasses the protection fuse. The Pi Zero has little pads for pogo-pins, which go to the USB port.
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?
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?
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?
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?
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!
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)
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
@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
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
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"
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 👍
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
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!
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" ;)
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.
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..
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
And that intro : "Awesome!"
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!
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.
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.
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.
God bless you my brother, I had several weeks without understanding how to do this procedure.
I connect perfectly, thanks to your tutorial
Wonderful!!
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
Super Helpful Video! I wonder how long it takes to boot and then be seen by your computer?
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
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 first time, i was up all night trying before i watched this, thanks
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?
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.
Worked for me...thanks! I followed every step, only thing is on the mac you have to type ssh prior to the command
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.
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.
Can you make this video but for the retropie instead. Was able to use for raspbian but need it for the retropie os instead.
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'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?
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
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?
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.
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
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.
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
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!
worked great! tried another method and that did't work.. so glad i found this!!
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?
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
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
thanks for the tutorail. will it work with thre raspbian full version or just the lite one?
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?
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.
Use paragon extfs for windows for direct edit /etc/wpa_supplicant/wpa_supplicant.conf on flash in windows and add ssh file to boot. Thats all.
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.
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"
You are awesome man, worked in first attempt after trying many other methods !!!!!!!!!
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..
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
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)
Great video. I just wish I could get my new rPI Zero W to be recognized. All OS's work but WiFi and Bluetooth don't come up... No matter what I try. Here in the US, I went to Best Buy to try and pickup a micro/mini USB to transfer data to my Mac so I could try your procedure but, they told me that it wouldn't work and would be a conflict due to a driver issue. They told me there was no resolve but yet, I watch your explanation it it all seems so simple... What am I missing? What is the EXACT cable needed to make your technique happen with the Zero W? Thanks in advance to anyone who can help out the newbie. 😉
I ran into the same problem today, apparently, you need an RNDIS driver on the device, it's not your cable that's broken most likely
Thank you very much only your solution worked out of all the videos in TH-cam
😇
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
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?
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.!!
You CANNOT use raspberrypi.local to ssh into it if you have another machine with that hostname on the network.
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
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
Dat intro. Perfect.
Excellent ... but what about a demo using Linux Computer (notice I made no obscene remarks about that other operating system you have shown).
OMG!!! That intro! Sub'd! I don't need to even watch the vid to know. I really needed that. Thx
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)?
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?
I triple checked everything but I don't get the device showing up under network adapters, have confirmed Bonjur is latest.
An excellent video! I have connected my pi to WiFi
However, I have a problem. I can't find a datasheet of Rpi Zero W online. I wanted to know about the GPIO pins. Can you help?
The GPIO pins are the same configuration as the other Raspberry Pi models so look for the Pi 3 GPIO pinout and you will see what each pin can do.
Cool, thanks a lot!
Is there any other way to power the Pi than the micro-USB ports? I wanted to use it in an independent circuitry.
Tarun Mittal:- Pi can be powered through GPIO pins but this bypasses the protection fuse. The Pi Zero has little pads for pogo-pins, which go to the USB port.
pinout.xyz
Thank you so much, sir. That's a great piece of work
Thank you so much! Still having issues but 90% of the way there in 6 mins!
Nice video. Do you know where to get an RNDIS Gadget driver for Windows 10? Not sure it even exists anymore.
I am prompted for a password when I connect to the host. How do I know what the password is? Thanks in advance!
The default password for raspbian is raspberry
No problems :)
raspberry does not work for me
Does this work for the 2nd version?
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?
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?
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?
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?
Now that I have successfully connected my pi zero w to wifi, what is the next step? How do I remotely control my pi zero w?
That all depends what you want to do with it. You can build a web interface or e.g. use MQTT
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
Thanks! Everything worked great!
I wasn't able to find the IP address from the pi, so I found that through my router.
My Raspberry Pi Zero doesn't appear in the networks list. What could possibly be the reason?
@@zAbdullahKhan I am having the same problem, were you able to figure it out?
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?
Would this also work for a raspberry pi 4? I would like to be able to use one portably with my laptop.
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!
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 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.
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
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
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
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
Such a good video! Super helpful and easy to understand. You sir, have got yourself a new subscriber.
Thanks @TechWizTime. It was really helpful, worked for me.
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
So the bonus part let's you connect your raspberry to an existing wifi network or create its own wifi network and ssh anywhere even on the bus?
I can't seem to find cmdline in the image files. Might it have a different name?
You are a champion
Thanks very much!
What if do this method but connect my raspberry pi to a TV with a hdmi adapter?
Can I set up the wifi like you showed with out ssh?
Will this work with a raspberry pi 3?
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"
Dear Sir, please do other vedio for raspberry pi zero connecting crt old TV without using HDMI to Av convertor?
thank you, gonna save bucks using this, really helpful :)
Dumb question, if I did this to a pi zero, would I be able to disconnect from the PC and still connect via mini HDMI?
Super helpful, thanks mate.