Being a tinkerer comes with a cost: we routinely modify, break, and redo our installations, and that takes time and effort. Some of us even go through several installation and re-installation cycles every day! This effect is even more pronounced on the Raspberry Pi – this pocket computer practically begs you to tinker with it, much more than other gadgets do.
Setting up the Raspbian OS on a Raspberry Pi is one taxing job. Preparing the SD card, flashing a Raspbian OS image on it, and doing post-install configuration such as changing the password, setting up Wi-Fi, and installing software is a time-consuming and monotonous cycle. To avoid it, we can use the excellentPiBakerytool, available for Windows and macOS.
Note: If you are looking to set up Raspberry Pi’s hardware, you should check out ourdetailed articleon getting started with Raspberry Pi.
Simplify Setting Up Raspberry Pi with PiBakery
So, let’s see how to set up and configure a Raspbian installation on your SD card with PiBakery. Starting with the basics:
First,downloadand install PiBakery. It is a big download (nearly 1.3GB), as it packs in the entire Raspbian OS along with it, so it might take a while, depending on your network connection. After installation,insert your SD card in your computer, andrun PiBakery. You will see a screen like the following:
We will first set up what is probably the most common option for most people – setting up WiFi. Click on theNetworktab, and drag the “Setup WiFi” block to below theOn First Bootblock that we previously placed. After that, fill in the hotspot name, passcode, and the type of connection as per your requirements.
Another common modification most people make is tochange the password for the default userpi. Many also like tochange the hostnameof the system. Both these options can be found in theSettingstab. So drag the appropriate blocks to the workspace, and modify them accordingly:
You will notice that I added several blocks here. Here is what they do, from top to bottom:
If you make a mistake, or think that you do not need certain blocks anymore, you can simply drag and move them to the trash can, present in the lower right corner:
You can add, remove, or modify the “On Every Boot” blocks that you added to an SD card using PiBakery. It is also possible toadd more one-time blocksto it. For instance, you may decide that on the next boot you want your password changed, and that Raspbian should boot in text mode from now onwards. To do this, insert the SD card that you want to modify in your system, and open PiBakery. It will detect the card, and show you a message like the following:
SelectYeshere. You will now see the “On Every Boot” block in your workspace (if you had added any). Now, click on theStartuptab on the left. Astute readers will notice that instead of On First Boot, an “On Next Boot” block is present here. Drag it to your workspace, and add any blocks that you like. In the following example, I’ve added blocks to change my password, and set my Pi to boot inConsole(text-only) mode. I’ve also added aRebootblock since changing the Boot Option requires it.
All you need to do now is click on theUpdatebutton on the top right. After that, remove the SD card and boot your Raspberry Pi with it.
You might find yourself using the same (or similar) configuration for every installation. For instance, you probably want to connect to the same WiFi network, install the same set of programs, and set the same password for every installation. To do this, add and modify blocks to your preference. Once you are satisfied, click on theExportbutton on the top right, and choose a file name and location for it. You can create and save as many different configurations as you like.
To restore your configuration the next time you run PiBakery, simply click on theImportbutton, and select the configuration you saved earlier. You can then easily modify it further, or write it to a SD card.
SEE ALSO:How To Run Commands on Raspberry Pi by Email
So that is how we use PiBakery to simplify the installation and configuration of Raspbian on a Raspberry Pi. Never again will you have to reconfigure your Pi after you break an installation by tinkering too much. Just import a previous, working configuration in PiBakery, and write it to your card. So feel free to tinker and experiment on your Pi to your heart’s content.
That’s it on the installation side of things. If you want to change the look of your Pi, check out15 great Raspberry Pi cases. If you have questions, doubts, or suggestions for Raspberry Pi projects to cover, let us know by dropping us a line in the comments section below.
Featured Image Courtesy
Command lines, DIY, video games, linguistics, and a little bit of everything else.