This tutorial assumes that you are able to write a linux distribution onto an SD-card. See the following tutorial here:
Writing Linux images to SD card with Win32DiskImager
- After you have downloaded and extracted the zip file, you will need to write the .img file onto a sufficiently large SD card (4GB minimum). To write the Linux image onto the SD Card, you will need a program like Win32 Disk Imager. See this tutorial for details.
- The next step is to plug the SD card into the Raspberry Pi and connect all the cables. There are two options: you can either use it as a computer or remotely connect to the Pi.
- Use the Raspberry Pi as a computer, you will need to connect a monitor, mouse, keyboard and a 5V power or USB cable. There have been issues reported with USB power issuer to mouse and keyboard, so you may need to connect these items through an external powered USB hub.
- Connect remotely to the Pi, all you need is a 5V power cable or a micro-USB cable and an Ethernet cable. The following will only apply if you want to connect via the network:
- To connect to the pi, you will need an ssh program like Putty. You will need to know the IP address of the Pi, which you can find if you have access to your Ethernet hub.
- An alternate method for Windows machines is to connect to raspberrypi.local rather than knowing the IP address. You may need ton install Bonjour Print Services to find it.
- Test to see if you can reach raspberrypi.local, by pinging it (type “ping raspberrypi.local” to see if you can find it on the network)
- Once you start the Raspberry Pi with the Occidentalis distribution, you will be prompted to a login. For Occidentalis the default:
login is: pi
password is: raspberry
Once you have successfully logged in, you will see the following command prompt:
- Initially, when you write your Linux distribution image to the SD card, it will only be approximately 2.6GB, which is how much space you will have available regardless of what size SD card you used. You can display how much space you have available by typing in df -h. The “Avail” column will show you how much space you have available in the various partitions.
To make linux aware of the additional space, you need to run the command: sudo raspi-config in the commands prompt and you should get the following menu to appear:
When you select “Expand Filesystem” the rest of your SD card will become available to you. The select “Finish” and the program will ask you for a reboot. Select “Yes”. If you selected “No”, you can reboot your Raspberry Pi at any time, by typing sudo reboot into the command line.
After the reboot, use df -h to check if the procedure has been successful. You should see additional gigabytes of free space, depending on your SD card size.
- Your next step will be to update all of the software on your Raspberry Pi. The updating occurs in two steps and requires a working internet connection. You can check your internet connection with ping www.google.com. Your RPi should then start pinging google and tell you how long it too to get a response. You can stop pinging by pressing the [Ctrl] + [C] keys, which will interrupt the process. You can interrupt many Linux processes with that key combination.
The first step in updating your Software is to synchronize your list of installed software and their versions, via sudo apt-get update. After this procedure you will need to actually upgrade your software using: sudo apt-get upgrade. A prompt will ask you if you want to continue, to which you should type y if you do and n if you don’t want to update your software.