Here is a guide for those of you that want to do some automation and get in the game here on Steemit. It doesn't cost or take much resources to do so.
- Pi Zero
- Micro SD card(4GB or higher)
- Micro USB cable(Same as android smartphone,tablet, or other various devices)
- Micro Sd card reader
If you are going to get into using a Rasperberry Pi product, you most likely have a laptop or pc with an SD card reader in order to write the image to the micro SD card. So from here, all you need is a Pi Zero if you can get a hold of one in your area, you can check out:
http://www.whereismypizero.com to see list of authorized distributors that have it available in stock in your region. I know adafruit accepts bitcoin as a payment. That's how I got mine :) but it's out of stock at the moment.
Most of us have a micro USB cable laying around but if not, then you're going to have to ask your friend to borrow theirs and tell them you'll supposedly return the next time you see them :P Or just order one yourself.
Unfortunately, this will be explained from using Windows but can be done on other OS's. Let's get started.
Special Thanks@ubg provided an awesome tutorial on a modified version of the "Winfrey" bot that @fyrstikken shared.
I will be using the directions he used to show how to format and write to the micro SD card and SSH.
If you don't have all the requirements, you can also find links for where to buy what you need on his post
Download Official Raspbian PiXEL imageYou can use both full or lite images but I just go with the full so you won't have to spend time downloading and installing more required packages.
Format Micro SD cardMake sure that the micro SD card is properly formatted. Download something like SDformatter and make sure format size adjustment is switched on.
Extract and write the image to the micro SD card.
Download and Install Etcher. You can follow the directions, it's really easy.
After it's done writing to the card, do not remove it from the card reader yet, open it up in Windows to edit a couple files.
I just use notepad to do it fast, but if you prefer you can use something like notepad++ to see the line numbers.
Open the cmdline.txt file and and add:
modules-load=dwc2,g_ether after rootwait.
Then open config.txt and add:
dtoverlay=dwc2 at the end.
After making those edits to the 2 text files, you want to create a new file, text file is fine. You also want to make sure the file extension is visible first and just name the file ssh.
From here, you can remove the card from the card reader and insert it into the Pi Zero and connect the pi with the micro USB cable to the PC/laptop.
Notice: Be sure to plug the micro USB end on "USB" port on the pi, not the "PWR" port.
Setup Network Adapter On PC/Laptop To Share internet With Pi ZeroYou'll want to open the Control Panel head to Network and Internet\Network Connections. Right click on your ethernet or wifi adapter that has the internet connection, click properties, and click the sharing tab.
Then check the "Allow other computers to connect through this computer's internet connection" and under "Home networking connection:" select whatever new network adapter appears that is labeled USB Ethernet/RNDIS Gadget #2. My case, it was Ethernet 3. This is the Pi Zero.
SSH Into Pi ZeroYou can use bitvise SSH or Putty. I actually use putty but bitvise looks like it's better.
Once logged in, Wait about 30 seconds for ethernet driver to get internet connection up on the Pi Zero. You can do a quick ping of your address but I just check if I can do an
apt-get update. You may get some error's saying no connection. You may have to wait a little bit or re-do the share internet settings on your PC/Laptop.