Raspberry Pi, first day

Finally got my RPi!

Going to document a few steps. I’m going to run this headless for now.

Setting up the filesystem

So I downloaded the whezzy disk image 2012-07-15-wheezy-raspbian.zip.

on my Mac, I copied it over to the SD card:

df shows me that it mounted the SD card on /dev/disk3s1.

first, unmount the SD card:

diskutil umount /dev/disk3s1

then dd over the image:

dd bs=1m if=2012-07-15-wheezy-raspbian.img of=/dev/rdisk3
1850+0 records in
1850+0 records out
1939865600 bytes transferred in 357.770030 secs (5422102 bytes/sec)

which got the image on the card. Took a few minutes, which will depend on your SD card’s speed.

I will need to resize the filesystem later since I’m putting this on a 8GB card, but for now want to get it online.

Setting up the networking

So the new wheezy distribution has sshd enabled as a default, sweet. I watched the DHCP table on my router, and after the RPi booted up, I got the IP address. The host name was pre-configured to be raspberrypi, so it was easy to find if you didn’t catch the new entry showing up.

A simple ssh to the pi, gets a response (although it took awhile for the sshd to startup after the RPi got online).

iMac-27:~ mark$ ssh -v pi@
OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to [] port 22.
debug1: Connection established.
debug1: identity file /Users/mark/.ssh/identity type -1
debug1: identity file /Users/mark/.ssh/id_rsa type 1
debug1: identity file /Users/mark/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-2
debug1: match: OpenSSH_6.0p1 Debian-2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '' is known and matches the RSA host key.
debug1: Found key in /Users/mark/.ssh/known_hosts:19
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/mark/.ssh/identity
debug1: Offering public key: /Users/mark/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /Users/mark/.ssh/id_dsa
debug1: Next authentication method: password
pi@'s password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Type 'startx' to launch a graphical session

NOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config'


Nice! Online in about 15 minutes.