Skip to content

Installation

Alasdair Allan edited this page Oct 22, 2015 · 44 revisions

There are a number of different ways to install the steward software. After installation please see the documentation on how to start the Steward. For most users we recommend using the supplied disk images for the Raspberry Pi, the Raspberry Pi B+, and the BeagleBone Black, based around the latest version of Debian Wheezy.

##Quick Start

If you already have node.js running on your system, you should only need to download the steward. Go ahead and,

git clone https://github.com/TheThingSystem/steward.git
cd steward/steward
npm install -l

and then you're ready to start the Steward. Although if you're running on a Linux platform you might want to take a look at the instructions for building from source on the Raspberry Pi to check if you have all the third party dependencies before attempting to run the steward.

If you ever need to upgrade to the latest version of the steward, go ahead and shut down the steward process and,

cd steward    # the top-level directory
git pull
cd steward
rm -rf node_modules
npm install -l

and then restart the steward.

##Installation from source

If you want to install the steward from source you should follow the appropriate instructions for your platform:

We also have instructions on how to build the steward on the default Angstrom distribution on the BeagleBone Black. However we do not advise this as the build suffers from mDNS and several other problems relating to third party library problems.

Disk images

There are raw disk disk images available for the Raspberry Pi, the Raspberry Pi B+, and the BeagleBone Black, based around the latest version of Debian Wheezy for these platforms. You will need a 4GB SD card for the Raspberry Pi and BeagleBone Black images; however, the Raspberry Pi B+ images requires an 8GB SD card.

The latest release is version 1.10, code named "Tooth Fairy" (25th August 2014)

System File MD5
Raspberry Pi sdcard_rpi_b_1.10.img 62b3aec66a72e1a57ce52e91eb329694
Raspberry Pi B+ sdcard_rpi_bplus_1.10.img.gz 20e69a3df135c4150bfab8fe5541c568
Beaglebone Black sdcard_bbb_1.10.img fc5c467399aaf102b36b356026802d3c

The Beaglebone Black disk image should also work with the original Beaglebone Rev.A6 (white) but has not been extensively tested.

###Copying the Disk Image to an SD Card

Insert your SD card into your Macbook. Open up a Terminal window and type df -h, remember the device name for your SD Card. In my case it's /dev/disk1. We'll need to use the raw device, /dev/rdisk1.

Filesystem      Size   Used  Avail Capacity  iused    ifree %iused  Mounted on
/dev/disk0s2   699Gi  367Gi  332Gi    53% 96214802 86992771   53%   /
devfs          206Ki  206Ki    0Bi   100%      714        0  100%   /dev
map -hosts       0Bi    0Bi    0Bi   100%        0        0  100%   /net
map auto_home    0Bi    0Bi    0Bi   100%        0        0  100%   /home
/dev/disk1s1    59Gi   33Gi   26Gi    57%  8739054  6768902   56%   /Volumes/SD Card

Unmount the card,

sudo diskutil unmount /dev/disk1s1

rather than ejecting it by dragging it to the trash.

If you are preparing an SD card for the Raspberry Pi B+, then decompress the file to get the disk image,

gunzip sdcard_rpi_bplus_1.10.img.gz

Then in the Terminal window change to the directory with your disk image in and type,

sudo dd bs=1m if=sdcard.img of=/dev/rdisk1

if the above command report an error "dd: bs: illegal numeric value", change bs=1m to bs=1M.

The card should automatically remount when dd is done. Eject the card with the command,

sudo diskutil eject /dev/rdisk1

###Instructions for the Raspberry Pi

Insert the SD card in the board, plug in your Bluetooth LE dongle, plug the board into the Ethernet, and then connect the power to start it booting. A red LED will initially come on, however the green ACT LED should start flashing, and the orange FDX and LNK LEDS should light up if the boot works correctly.

When the board boots it should automatically bring up both Bluetooth LE and the Steward.

###Instructions for the Beaglebone Black

Power the BeagleBone Black down and locate the "User Boot" button. It's located on the top side of the board, directly above the micro SD card slot which is located on the reverse side along with the mini and micro USB sockets.

The BeagleBone Black will try to boot the internal Angstrom image by default. To boot from our SD Card, you’ll need to hold down the User Boot button while powering-on the board. You should see two of the blue lights come on. At this point you can let go of the User Boot button.

When the board boots it should automatically bring up both Bluetooth LE and the Steward.

With the SD Card present in the microSD slot the Beaglebone Black will boot into Debian only if the User Boot button is held as the power is turned on. If you do not hold the User Boot button down on boot the into the default Angstrom distribution which is still present on the internal eMMC.

This can get fairly tedious.You can replace the internal Angstrom image with a "default" Debian distribution—which does not contain the steward or #thethingsystem—but does know to check for the presence of an SD card before booting.

To do this ssh into the Beaglebone—the username and password are both "debian"—and proceed as below,

cd ~
sudo su
wget http://s3.armhf.com/debian/wheezy/bone/debian-wheezy-7.2-armhf-3.8.13-bone30.img.xz
xz -cd debian-wheezy-7.2-armhf-3.8.13-bone30.img.xz > /dev/mmcblk1

this will take a while. When it is complete your command prompt will return, and the internal eMMC memory will have a default version of Wheezy installed. Since the image is pretty large you should delete it at this point

rm debian-wheezy-7.2-armhf-3.8.13-bone30.img.xz

To test it has worked you should un-plug the power supply, remove the microSD card and then connect the power again. It should boot back up into Debian.

From this point, to boot from the SD card you simply need to place the card in the microSD slot and connect the power. No more holding down the User Boot button.

###Accessing the steward

The steward will start automatically when your Raspberry Pi or Beaglebone boots, so after installation please see the documentation on how to authenticate and login to the steward.

##Installation using Package Management

At the moment installation of the steward from source, and is a fairly complicated and meant for developers. We intend to simplify this process by providing packages for various flavors of Linux as well as MacPorts for OS X. If you're not a developer the easiest way to get started with the steward is probably to use the Raspberry Pi disk images discussed above.

Analytics