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.
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 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.
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!
@@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
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
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.
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.
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.
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 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.
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 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.
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!
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.
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
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.
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?
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
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
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
@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
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.
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. 😉
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"
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
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 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
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?
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)?
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'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 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
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)
in Jessie (because I couldn't get stretch to work for some reason) I have this in the cmdline.txt file. Where do I insert your text? At the end, after rootwait? dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=e2224e05-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait EDIT: Yes pasting it after rootwait with the different script still works. I am getting a file doesnt exist error when running the wifi reconfigure command though. Setting up this pi-hole looked so much easier in videos and how-to's.... EDIT2: sudo wpa_cli reconfigure worked after rebooting.
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
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?
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?
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
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.
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!
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. :(
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?
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
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!
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
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 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.
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 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
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
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.
And that intro : "Awesome!"
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.
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.
Super Helpful Video! I wonder how long it takes to boot and then be seen by your computer?
Protip for persons that stucked in 3:10: If you changed host name before, you should use it instead of "raspberrypi" ;)
worked first time, i was up all night trying before i watched this, thanks
Worked for me...thanks! I followed every step, only thing is on the mac you have to type ssh prior to the command
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
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 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.
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
God bless you my brother, I had several weeks without understanding how to do this procedure.
I connect perfectly, thanks to your tutorial
Wonderful!!
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.
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!!
You are awesome man, worked in first attempt after trying many other methods !!!!!!!!!
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.
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
Thank you very much only your solution worked out of all the videos in TH-cam
😇
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.
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?
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
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?
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?
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.
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
Does this work for the 2nd version?
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?
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.
Thank you so much! Still having issues but 90% of the way there in 6 mins!
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
Can you make this video but for the retropie instead. Was able to use for raspbian but need it for the retropie os instead.
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.
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
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?
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"
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
Dat intro. Perfect.
Thank you so much, sir. That's a great piece of work
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
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 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
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?
OMG!!! That intro! Sub'd! I don't need to even watch the vid to know. I really needed that. Thx
Thanks @TechWizTime. It was really helpful, worked for me.
Does it work at all!
Grab your *Raspberry Pi Zero* from *Amazon* ► geni.us/NMWrzmW or *eBay* ► geni.us/2VqbGuT
If you need memory cards, I recommend *Samsung Micro SD Cards* from *Amazon* ► geni.us/hTOi or *eBay* ► geni.us/PcGu
Or, click Read more under this for other *PI ESSENTIALS* below!
★ ★ *Raspberry Pi 3 Power Supply* ★ ★
Amazon ► geni.us/SC5wNc
eBay ► geni.us/g4jMj
★ ★ *Wireless Keyboard & Mouse* ★ ★
Amazon ► geni.us/xa0O
eBay ► geni.us/vnl9i
★ ★ *8BitDo Controllers & Gamepads* ★ ★
Amazon ► geni.us/2E9IZF
eBay ► geni.us/GaTr
★ ★ *Raspberry Pi 3 B + Case* ★ ★
Amazon ► geni.us/qslsedS
eBay ► geni.us/TcgdU
★ ★ *Kingston USB 3 Reader* ★ ★
Amazon ► geni.us/UltUPy
eBay ► geni.us/7OGxZ
★ ★ *Samsung Micro SD Memory Cards* ★ ★
Amazon ► geni.us/hTOi
eBay ► geni.us/PcGu
Why Raspberry Pi Zero W? Is "Raspberry Pi Zero" not enough in some way?
Would this also work for a raspberry pi 4? I would like to be able to use one portably with my laptop.
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)?
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?
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
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 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
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)
I triple checked everything but I don't get the device showing up under network adapters, have confirmed Bonjur is latest.
Such a good video! Super helpful and easy to understand. You sir, have got yourself a new subscriber.
Thanks very much!
Nice video. Do you know where to get an RNDIS Gadget driver for Windows 10? Not sure it even exists anymore.
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.
in Jessie (because I couldn't get stretch to work for some reason) I have this in the cmdline.txt file. Where do I insert your text? At the end, after rootwait?
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=e2224e05-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
EDIT: Yes pasting it after rootwait with the different script still works. I am getting a file doesnt exist error when running the wifi reconfigure command though. Setting up this pi-hole looked so much easier in videos and how-to's....
EDIT2: sudo wpa_cli reconfigure worked after rebooting.
You are a champion
Excellent ... but what about a demo using Linux Computer (notice I made no obscene remarks about that other operating system you have shown).
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?
Super helpful, thanks mate.
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)
You CANNOT use raspberrypi.local to ssh into it if you have another machine with that hostname on the network.
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?
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
thank you, gonna save bucks using this, really helpful :)
Can I set up the wifi like you showed with out ssh?
will it work if I connect it through a USB hub, not directly into the PC?
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
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?
Thank you, this tutorial was super helpful!
Excellent tutorial. It worked.
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?
Dear Sir, please do other vedio for raspberry pi zero connecting crt old TV without using HDMI to Av convertor?
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
I can't seem to find cmdline in the image files. Might it have a different name?
Thanks a lot for the tutorial.
What if do this method but connect my raspberry pi to a TV with a hdmi adapter?
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
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!
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?
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?
It is working. Thank you sir
Can u install Alexa or google home in raspberry pi 0 w?