This week, I began the installation and configuration of the Pi-Star software on a Raspberry Pi 3B. In this post I will walk you through step by step, how to image the microSD card. I will also discuss setting up a home WiFi Network. In the next post, I’ll talk about configuring the basics of PiStar including enterprise WiFi networks and hashing the WiFi passwords.
First you’ll need the following:
- Pi-Star Software – You’ll want to download the one for the RPi
- WiFi (wpa_supplicant) Configuration File (basic USA file can be found here)
- Blank microSD Card – Class 10/UHS-1 – backup data first if needed
- MicroSD to SD Card Adapter (Optional – depends on your PC)
- Raspberry Pi 3B
- Raspberry Pi Power Supply of 2 amps or greater
- PC with SD Card or MicroSD Card reader/writer
- SD Card Imaging Tool (Etcher, Apple Pi Baker, Win32DiskImager)
Tutorial
Download the Files
- The first step is to download the Pi-Star software using the link in the list of parts. At the time of this writing, the version for the Raspberry Pi is “Pi-Star_RPi_V3.4.16_10-Aug-2018.zip”
- Download the wpa_supplicant.conf file. If it opens as a web page, simply copy the contents of the file and paste it into Notepad or Text Edit and save as “wpa_supplicant.conf” without quotes.
- In the file, replace the capitalized “SSID” with your network name.
- Next in the file, replace the capitalized “PSK” with your network password.
- Save the file making sure that the filename is wpa_supplicant.conf.
Imaging the microSD Card
- First, we’ll download an SD card imaging tool. For general imaging uses, I like to use a software called Etcher, which is available for Mac, Windows, and Linux. If you need to backup an SD Card, I use a tool for Mac called Apple Pi Baker. You can also use this tool to image SD Cards and it allows you to backup/restore an SD card to/frome a compressed file (.zip, .gzip, .7zip, etc). For Windows there is a program called Win32DiskImager which will allow you to backup or image an SD card in the uncompressed “.img” format. In this tutorial, I’ll use Apple Pi Baker on a MacOS PC.
- I’m not going to cover backing up the SD card in this tutorial, but if you have anything on your card that you want to save, be sure you have backed it up first as the following steps will ERASE everything on the card.
- First insert the microSD card into the SD card adapter and insert the adapter into your computer. Be sure the switch (if any) on the adapter is in the up position to allow the computer to write to the card.
- Next, go to the folder you downloaded Pi-Star into and double click the .zip file to extract its contents. It will be a folder that is extracted.
- Double click the folder to enter it and make sure there is a file around 2.5-3gb in size named with a “.img” extension.
- Next open Apple Pi Baker and enter your administrator password if prompted. The admin password is required to allow the app to write directly to the SD card device.
- Next you should see a screen that looks like this:
- Select your SD card in the box under Pi-Crust. Mine isn’t shown in the photo above because it wasn’t inserted when I opened Pi Baker. Just click the green refresh button to the top right of the white box and it should show up.
- Be 100% sure you’ve selected the correct SD Card/drive in the Pi-Crust Section. If you have other SD cards or flash drives inserted they may show up as well. SELECT THE CORRECT DRIVE. ALL DATA ON THE SELECTED DRIVE WILL BE ERASED.
- Under Pi-Ingredients, click the 3 dots button and find the Pi-Star .img file we found in step five.
- Uncheck the “Auto eject after successful restore” checkbox.
- Next after you are certain you have everything set correctly and have selected the correct SD card, you’ll click “Restore Backup” in the Pi-Ingredients Section.
- You should see a screen like this:
- Wait until you get the notification that the process is complete and then you can close Pi-Baker.
Setting Up HOME WiFi
- Open Finder or My Computer (This PC) and locate the wpa_supplicant.conf file you edited previously.
- Copy the file by right clicking the file and left clicking copy.
- Navigate to the SD card which should be labeled “Boot”.
- Paste the copied wpa_supplicant.conf file by right clicking in the space free of any files and click paste or just press CTRL+V (Windows) or CMD+V (macOS) to paste the file.
- Close Finder or Windows Explorer.
- Eject or Safely Remove the SD card. On macOS, drag the SD card to the trash bin or click the eject button next to it in Finder. On Windows, in My Computer or This PC, right click the SD card and click “eject.”
First Boot
- Insert the MicroSD card into the Raspberry Pi and plug in the power cord.
- The LED on the Pi should light up red, with a flashing green LED next to it.
- Wait a few minutes as the Pi will load the WiFi configuration and reboot.
- From your PC, connected to the same WiFi network you setup the Pi on, open your web browser and go to one of the following sites:
- http://pi-star/ (Windows)
- http://pi-star.local (macOS)
- Verify that you see something similar to the following:
- I’ll continue the setup in the following post: https://n3tdm.tdmorris.com/week-5-setup-part-2