piwik

diumenge, 21 d’octubre del 2012

Getting started with Raspberry PI, installing, Raspbian Raspberry's Pi OS.

Once I got my toy I am going to get started with it installing the OS. I have chosen the Debian version for the gadget.
Yo can get if from the official repositories which are here. Unzip it and.....
After that you need to what devices are currently mounted in your computer. Yo will get an output similar to


root@xemacs:/home/xemacs# df -h
S. fitxers            Mida En ús Lliure %Ús Muntat a
/dev/sda5             9,2G  5,2G  3,6G  59% /
tmpfs                 1,5G     0  1,5G   0% /lib/init/rw
udev                  1,5G  280K  1,5G   1% /dev
tmpfs                 1,5G  612K  1,5G   1% /dev/shm
/dev/sda7             352G   67G  268G  20% /home

Now you have to plug the SD card into the reader and check againg the devices, You will notice there is a new device already mounted.

root@xemacs:/home/xemacs# df -h
S. fitxers            Mida En ús Lliure %Ús Muntat a
/dev/sda5             9,2G  5,2G  3,6G  59% /
tmpfs                 1,5G     0  1,5G   0% /lib/init/rw
udev                  1,5G  280K  1,5G   1% /dev
tmpfs                 1,5G  612K  1,5G   1% /dev/shm
/dev/sda7             352G   67G  268G  20% /home
/dev/sdb2             1,8G   35M  1,6G   3% /media/10b4c001-2137-4418-b29e-57b7d15a6cbc
/dev/sdb1              56M   24K   56M   1% /media/usb0

In this case we will be dropping the image over /dev/sdb device
We will have to umount the partition with the following command:
root@xemacs:/home/xemacs# umount /dev/sdb2
For that we will be running the following command, which will copy the image into the SD card.
We are setting the block size to 4M, if will be the path to the image file and of stands for the output where we are going to copy the image, it means oour SD card (without the number associated to the partition)

root@xemacs:/home/xemacs# dd bs=4M  if=/home/xemacs/Raspberry/2012-08-16-wheezy-raspbian.img of=/dev/sdb
462+1 registres llegits
462+1 registres escrits
1939865600 octets (1,9 GB) copiats, 355,567 s, 5,5 MB/s
root@xemacs:/home/xemacs# 


Notes:
We will be proceeding as a root user
Since we have installed Debian, the partition size is only 2G, in the next post I will be explaining how to expand the size of the partition .

We are ready to rock