MySQL for the Internet of Things

(Steven Felgate) #1
Chapter 6 ■ Building low-Cost MysQl data nodes

■Tip the default login for raspbian Jessie uses the username pi and password raspberry. i recommend


changing this in the raspberry pi Configuration dialog.


To shut down or reboot Raspbian, click the menu, and then choose Shutdown. You will see a prompt
for rebooting, shutting down, or returning to the command line. If you are at the command line, use the
command shutdown -h now to shut down the system.


Installing Boot Image on a Micro SD Card


The process of installing a boot image involves choosing an image, downloading it, and then copying it to
your micro SD card. The following sections detail the steps involved. This is a manual process that is a bit
more complicated than the NOOBS option but not overly so.
Once you select an image and download it, you first unzip the file and then copy it to your SD card.
There are a variety of ways to do this. The following sections describe some simplified methods for a variety
of platforms.


Windows


To create the SD card image on Windows, you can use the Win32 Disk Imager software from Launchpad
(https://launchpad.net/win32-image-writer). Download this file, and install it on your system. Unzip
the image if you haven’t already, and then insert your SD card into your SD card reader/writer. Launch the
Win32 Disk Imager application, select the image in the top box, and then click WRITE to copy the image to
the SD.


■Caution the copy process overwrites anything already on the sd card, so be sure to copy those photos to


your hard drive first!


Mac OS X


To create the SD card image on the Mac, download the image and unzip it. Insert your SD card into your
SD card reader/writer. Be sure the card is formatted with FAT32. Next, open the System report (hint: use the
Apple menu and then select About this Mac).
Click the card reader if you have a built-in card reader, or navigate through the USB menu and find the
SD card. Take note of the disk number. For example, it could be disk4.
Next, open Disk Utility and unmount the SD card. You need to do this to allow Disk Utility to mount
and connect to the card. Now things get a bit messy. Open a terminal, and run the following command,
substituting the disk number for n and the path and name of the image file for :


sudo dd if= of=/dev/diskn bs=1m


At this point, you should see the disk-drive indicator flash (if there is one), and you need to be patient.
This step can run for some time with no user feedback. You will know it is complete when the command
prompt is displayed again.

Free download pdf