In previous post we analyze the different components we needed to keep in mind while buying a Raspberry Pi, in case you haven't read it yet or you want to check it again, you can do so, here: https://blog.byjokese.com/2015/12/29/things-you-need-to-know-before-buying-a-raspberry-pi/
In this new post we are going follow the firsts steps for installing and configuring the operation system, in this case: Raspbian, any other will follow the same steps.
Tools we are going to need:
Win32DiskImager: This software will allow us to mount the image of the operating system on our microSD. Some steps later we will use it also for another propuse. We can download it from SourceForge: https://sourceforge.net/projects/win32diskimager/
microSD card adapter: We will need a adapter to connect the microSD card to the computer.
First step: Download
Once we have both tools we will download a copy of the operating system, in our case: Raspbian. This one can be downloaded from it's Official Page in the Download section. Taking today as reference, the last version is: "Raspbian Jessie", we will take that: https://www.raspberrypi.org/downloads/raspbian/
Second step: Mount
Next step is to open Win32DiskImager, from once side, we will select the .img of the Operating System we downloaded, from the other side, we must select the device we want to mount the OS on: the microSD.
Click on Write and wait until the progress bar finishes. Once it's done, the program will open a popup window, saying its finished. Then we can safely eject the microSD from the computer. On this step we will have everything prepared and ready to install.
Third Step: Installation
Before turning on the Raspberry Pi, its recommendable to connect everything first: keyboard, mouse and the microSD card we prepared on previous step. Is recommendable to connect it to internet also, through Ethernet cable or Wifi adapter (USB). For now, will use the monitor to see what's going on, so use the raspberry's HDMI output, and connect it to a TV or monitor.
Once everything is connected and prepared, its time to power it on. Connect the USB/micro USB cable to the power adapter. As soon as we connect it on, the raspi will start installing and booting the operating system. At the top left corner will be the 4 icons of raspberry, and many lines of text showing the process and the state of it. Hopefully all will be marked as: [OK], on that case, the OS is correctly installed.
At that point we will be able to see the Desktop.
Fourth Step: Configuration
In case the configuration has not been opened, we can open it typing on the terminal, the following command:
You will see something like this:
The first thing we must do is to Expand the Filesystem, for that we must hit enter on option 1, and confirm the operation. The change will not be applied until we reboot, Raspberry will give that option.
This window will allow us to change the default password:
user: pi password: raspberry
Overclock is also available here, and some advanced options that on our case wont need.
To exit menu, just select Finish and hit Enter. Remember to reboot if you have done it yet. You can do so typing on terminal:
Fifth step: Updating
Congratulations, at this point you have successfully installed and made a basic configuration of the OS. On this step we will update the operating system to it's latest update. We type the following commands:
sudo apt-get update sudo apt-get upgrade sudo rpi-update
Sixth step: Backup
Last but not least, we are going to make a backup. At this point we have the OS correctly installed and updated even, with a basic configuration. This takes time to be done, so just in case we lose our data or the SD becomes corrupted, is important to be able to have a copy with our settings and updates. For this power off the Raspberry:
sudo shutdown -h now
After the lights stops blinking, extract the SD. And we start making the backup.
To do so, we are going to use Win32DiskImager again, but in this case the opposite operation: generate a image of the configured OS. For that, we must select the** path and name** we want to use for saving the backup, in my case: "C:\Users\PcCom\Documents\2_BACKUPS\backup-SO-Updated.img". And we select the device we want to backup.
In this case we must click **Read, **once is finished, just close, eject it on a savely way and power the system again with the SD inside the Raspberry.
DONE!! You have installed, configured, updated and made a backup of the operating system successfully. You are ready to start any project you want.
See you on the next!
Subscribe to By-Jokese Blog
Get the latest posts delivered right to your inbox