Project Description

In the book “Designing the Internet of Things”, one sample application which is mentioned is an alarm clock which is internet enabled, can check railway timetables, and if there is a delay, allow the user some extra time to sleep in.

Booting the Pi for the first time

With the SD card flashed and ready to use, I connected the Pi to my HDMI display, connected a keyboard and ethernet cable and booted the Pi.

The Pi booted properly and went straight to the graphical environment.

From a terminal, I ran the configuration tool and performed following actions:

sudo raspi-config

expanded the filesystem

enabled SSH access

disabled the boot to desktop

updated the system

After these changes, I could shut down the Pi and disconnect keyboard and monitor.

When the Pi had rebooted, I could log in via SSH.

ssh pi@192.168.0.249
The authenticity of host '192.168.0.249 (192.168.0.249)' can't be established.
RSA key fingerprint is 27:77:5b:01:7f:71:0a:2f:2e:a3:b0:16:14:f3:9e:6c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.249' (RSA) to the list of known hosts.
pi@192.168.0.249's password:
Linux raspberrypi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 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.
Last login: Fri Mar 28 16:18:05 2014
pi@raspberrypi ~ $

Connecting to Wifi

Via SSH, I edited the network config as follows, in order to enable wifi: