MJ Blog

Just a little blog about my Raspberry Pi experiences

Starting Up

After taking a Photo from my RPi, I took my first steps. I downloaded the Debian Squeeze Image and deployed it to my tiny 2GB card.

sudo dd if=/tmp/debian6-19-04-2012.img of=/dev/mmcblk0 bs=1M

Quite easy! So I inserted the card into the RPi, connected the Pi via Ethernet to my notebook, took my old Nokia Micro-USB Charger supplying 1200 mA and powered it the first time. But that would have been to simple. I could neither connect via the hostname “raspberrypi” nor via any IP address. I did not put the Pi into my existing Network and did not like to configure any additional DHCP services. Only solution was (I thought!) to plug an USB keyboard and try to configure the network interface blindly. I could not attach any monitors because my TV in another room is the only device with HDMI inputs :(

With the network correctly configured, my ping requests were finally answered by the Pi. But I still couldn’t connect via SSH. The almighty google search revealed that SSH is disabled on Raspberry Pi Debian images. Still typing blindly I tried

sudo service ssh start

and it worked!

The next step was to configure the network in /etc/network/interfaces to a fixed IP:

auto eth0
allow-hotplug eth0
iface eth0 inet static
    address 192.168.2.42
    netmask 255.255.255.0
    gateway 192.168.2.1

and to enable SSH at boot:

mv /boot/boot_enable_ssh.rc /boot/boot.rc

Tried to reboot and after a minute I could login via SSH. You should definitely change the default password to something more secure with

passwd

With SSH working I felt quite happy and plugged it in my switch in the other room. I also wanted to have the console on my TV and used an HDMI cable. After the bootup I issued

startx

to look at the LXDE interface. It was started in a few seconds, but I did not use it a lot. The browser worked, but was slow as hell. And with no mouse attached it was no fun. I wasted some hours with configuring and testing x11vnc and vlc. I mounted a network share with a test movie in it and tried to play it. It made me sad. Very sad. Neither the 480p xvid nor any 720p mkv played smoothly. The opposite happened. It was like a slideshow with one frame per second. I was unwilling to search for another lightweight video player and it was not my primary use case to make my Raspberry Pi a media station. This was the point I decided to remove all graphical components after the updates. At a later time I will try it again with Raspbmc when it reaches a stable state.

df -h

I had only 30 MB of space after the necessary updates:

sudo apt-get update
sudo apt-get upgrade

There were 42 updates to install but my RPi died on downloading the packages without any errors. It just froze completely. After the reboot downloading and installing the packages was successful.

sudo apt-get remove lxde

The removal took some minutes because of the dependencies also being removed. Afterwards I had almost 200 Megs of free space. This was day 1 of playing with the Raspberry Pi.