As I wrote in my last post, I had finally got my Raspberry Pi. Now I needed to install some software.

Most people I know that have bought a Pi, plan to install XBMC (Xbox Media Center). I had other plans and wanted to install Linux. The reason why? I have always wanted to be able to connect to home with ssh to access my own files. I do not want our desktop computer to run all day and night as it is placed in our bedroom, and is not silent. ‘

I know there exist small and silent computers, but I really didn’t need something heavy. The files to access is placed on a Synology 212j NAS box. It is almost silent, and is placed in a closet in our home. A Raspberry Pi was perfect: It is super cheap, it is dead silent, and is almost not getting warm.

Installing Linux was pretty easy. First I downloaded the image from The download page at raspberrypi.org. To be sure the image is ok, and not damaged, compare the sha checksum with the one on the download page:

$ sha1sum ~/downloads/2012-07-15-wheezy-raspbian.zip

Then I connected the SD card reader (USB), and after the card was auto detected, I ran df -h to see which mount point it had. The FAT32 partition was mounted on /dev/sdd1.

Booting my Pi

I then made as mistake. I needed to umount the card, and I did so with the eject button in Nautilus (the default file manager in Ubuntu). It looks like it is unmounted, but it isn’t completely disconnected. It didn’t show up with df -h, but using dd in the next step gave some errors indicating the resource was busy. After some fiddling, I realized that I needed to unmount using the good old umount tool from command line. I have always thought that the eject button did exactly this, but I was wrong.

Then I could write the Rasbian image to the card (after unzipping the zip-file):
$ dd bs=1M if=/home/eivindm/raspberry/2012-07-15-wheezy-raspbian.img of=/dev/sdd

A last sync command to make sure something buffered data hadn’t made its way to the card, and I was ready to test the good stuff!

I inserted the card to the card slot of my Pi, connected to the TV using HDMI, and booted. And suddenly nothing happened… After some testing I found out that Raspbian was using the composite output, and not HDMI, as default. This can be changed in the X server config, but I didn’t care. All I needed was to make it running, install ssh, and the rest could be done from a regular computer. Although the image was blurry, I couldn’t care less when I saw the boot log on the screen.

The Raspbian config tool

After booting, you are met with the Raspbian config tool. Only a few very central config steps were needed, and it all took just a couple of minutes. It also increased the root partition (after I had chosen to do so) to use the rest of the SD card.

Installing a ssh server was a breeze, as it allways is on debian based distros:
$ sudo apt-get install openssh-server

Voila! I could do the rest of the setup from my laptop. I will write more about the last steps of my setup in the next post.

Series Navigation<< Raspberry Pi – I finally got it

Leave a Reply

Your email address will not be published. Required fields are marked *