In this video I'm gonna show you can connect to a Raspberry Pi Zero W without needing a Mini HDMI Adapter
And all you need is an USB Cable connected to a PC
Stick around, because you know what time it is
So before we get started with this hack there's a couple of things that you'll need
The first thing is obviously a Raspberry Pi Zero W
The second thing is an image of an operating system that is capable of working with a Raspberry Pi Zero W, and in this case I'm using the latest version of Raspbian Lite
And thirdly we'll need this image written to the MicroSD Card before we can go any further
So with your MicroSD Card in your computer with Raspbian Lite written to the MicroSD Card
What we need to do firstly is open up the "config.txt" file
Now if you're on windows make sure you don't open this with Notepad as this can destroy the formatting
Instead use a program like "Notepad Plus", which I've included a link for down in the description below
So once you have that file open what you need to do is you need to go down to the very bottom of the file
and you need to tyype in "dtoverlay=dwc2"
We'll put an extra line in there just to be safe and we'll save that and then we'll exit notepad
The next file we need to open is "cmdline.txt"
Now it's very important that you don't destroy the formatting in here again so make sure you open it with "Notepad Plus Plus"
Now what we need to find here is a section after "rootwait", so what we'll do is we'll put a space in there and then we'll paste in the code
Now the code I've included down on the description below, it is very important that this is typed correctly or pasted like I'm doing right now
Once that's done save the file and close it down
And the last thing that we'll have to do is create a new file, just a text file, but instead of giving it the ".txt" extension
We're just going to remove that all and call it SSH
Accept the warning and now what you've got is you've got a file there that will tell the Raspbian Operating System to allow you to use SSH out of the box
Previously this was enabled by default, but, in the last 6 to 12 months, this has been disabled
So, this is how we enable it without having to log in into the actual Pi itself
Now that's all done what we'll need to do is we'll need to eject the MicroSD Card and we'll throw it into the Raspberry Pi
Now before we power on the Raspberry Pi Zero W
We need to make sure that we're using the correct MicroUSB port
Now, the very first one on the left is for power only
But the one on the right can be used for power and data, so that's the one we're going to use here
Make sure your MicroSD Card is in your Raspberry Pi Zero W and that you're using the correct MicroUSB Port
Now if you've done everything correctly then you should see in your network adapters folder the Raspbery Pi show up
Now it will take a little while for it to boot the first time, but eventually it will come up with an "Unidentified Network"
This when you that it's time for be able to "Putty" in to your Raspberry Pi Zero W
Now the link for "Putty" is down in the description below, if you're on a Mac or Linux, you can simply use SSH from the command line or terminal
So once you're in either the terminal or "Putty", you need to type in "pi@raspberrypi.local", then we'll hit enter
Now, if you're a PC, a Windows PC in particular, and you don't have "Bonjour" Installed
then this is the message that will come up
So, if you do et this error message, quickly install Bonjour now, I ptovided teh link for that down in the description below
So now that I've got Bonjour Installed, I'll start that up again, and look at that, we're into the SSH command module of the Raspberry Pi Zero W
Awesome
So now that we connected through SSH, what i'm gonna do is I'm going to quickly show you how to enable WiFi on the Raspberry Pi Zero W
So you can connect to it from any computer in the house, let's jump back to the computer
So to enable WiFi what we're gonna do is we're going to edit a configuration file, and to do that we'll type in "sudo nano /etc/wpa_supplicant/wpa_supplicant.conf"
Press "Enter" and this will load up the text editor
Now press your arrow keys down to the very bottom, and we're gonna type in "network={ ssid="NETWORK" psk="PASSWORD" }"
Now we'll press "Ctrl X", "Y" and "Enter"
This will save the file so we can connect to the WiFi network
So, to connect to it now what we'll do is we'll type in "sudo wpa_cli reconfigure"
And Press "Enter"
This will that information that we just put into that file and allow us to connect to the wireless LAN
And now to see if it is connected, what we'll do is we'll type in "ifconfig wlan0"
And press "Enter"
And here we can see it connected to the WiFi successfully
Awesome
So after that tutorial, you should now have your Raspberry Pi Zero W connected through SSH on your computer
Awesome
So, did you get this working with your Raspberry pi Zero W or did you have any problems, then leave me a comment down below
If you're not already subscribed then make sure you do because I release two new videos every week
And if you are a subscriber then make sure you hit that bell icon so you get notified with my new great videos
Make sure you share this video with Other Raspberry Pi Zero W owners so they know how to do this too
And as always
Imagine, Learn, Create