Difference between revisions of "XXX: Install Hivetool SD image"

From HiveTool
Jump to: navigation, search
(Boot Pi)
(Boot Pi)
Line 36: Line 36:
  
 
==Boot Pi==
 
==Boot Pi==
#Either
+
#To configure Raspian Linux on the target Pi, either:
##Attach a display, keypad, and mouse to configure to Raspian Linux on the target Pi.  
+
##Attach a display (HDMI or video), and a USB keyboard and mouse.  
##use a USB/TTL serial adapter cable and connect to a computer with termina emulation software (HyperTerm, PuTTY, minicom).
+
##use a USB/TTL serial adapter cable and connect to a computer with terminal emulation software (HyperTerm, PuTTY, minicom).
##If a B model, connect the ethernet port to a router with DHCP and Secure Shell (ssh) into the Pi using Putty or ssh.
+
##If a B model, connect the Ethernet port to a router with DHCP and Secure Shell (ssh) into the Pi using Putty or ssh.
 
#Insert SD card in the Pi and apply power.
 
#Insert SD card in the Pi and apply power.
 
#If the OS image and Pi hardware is good (including 5V power) and video is connected the system will boot to the linux command line login prompt:
 
#If the OS image and Pi hardware is good (including 5V power) and video is connected the system will boot to the linux command line login prompt:

Revision as of 03:18, 15 February 2015

Configuration screen

Hivetool is now available as a 1.3 G SD card image for the Raspberry Pi models A,A+.B,B+: [2014-09-09-raspbian-hivetool.zip]. It unzips to a 3.3 G image for the SD card, same size as 2014-09-09-wheezy-raspbian.img that it is based on.

  • Most setup is with a user friendly browser based configuration screen.
  • Uses SQLite for a database. (Works on an A but graphing is still slow.)
  • Has the latest graphing software (complete with the latest bugs)

Create SD card

Be careful. REMOVE any other USB memory devices from your computer.

Windows system

Requires Win32diskImager

  1. Download the compressed image,
  2. Extract the compressed folder (unzip) to get "2014-09-09-raspbian-hivetool.img"
  3. Download and install Win32diskImager if not already installed.
  4. Insert a blank formatted SD (micro for A+ & B+ ) class 10 card in PC.
  5. Run Win32diskImager, select the uncompressed "2014-09-09-raspbian-hivetool.img" file
  6. write it to it to the SD card (usually drive E) using Win32diskImager. CAUTION DO NOT write to C:\, the hard drive.
  7. Verify the write has completed and verify the files size on SD card is 9.68 mb (10,158,080 bytes), 12 files, eject the SD card labelled "boot" if successful.

raspberrypi.org recommends using: http://sourceforge.net/projects/win32diskimager/ But be careful. REMOVE any other USB memory devices from your computer. Detailed instructions: http://elinux.org/RPi_Easy_SD_Card_Setup#Flashing_the_SD_Card_using_Windows

Unix/Linux system

  1. Determine the device for the card reader (/dev/mmcblk0 on my laptop).
  2. Copy the image to the SD card:
    dd bs=4M if=2014-09-09-wheezy-raspbian.img of=/dev/mmcblk0

Warning!! If you reverse the source and target, you can wipe out a lot of data. This feature has inspired the nickname "dd" Data Destroyer.

Detailed instructions: http://elinux.org/RPi_Easy_SD_Card_Setup#Flashing_the_SD_Card_using_Linux_.28including_on_a_Pi.21.29

Boot Pi

  1. To configure Raspian Linux on the target Pi, either:
    1. Attach a display (HDMI or video), and a USB keyboard and mouse.
    2. use a USB/TTL serial adapter cable and connect to a computer with terminal emulation software (HyperTerm, PuTTY, minicom).
    3. If a B model, connect the Ethernet port to a router with DHCP and Secure Shell (ssh) into the Pi using Putty or ssh.
  2. Insert SD card in the Pi and apply power.
  3. If the OS image and Pi hardware is good (including 5V power) and video is connected the system will boot to the linux command line login prompt:

NOTE that when typing the password, no characters (even *) are echoed to the screen. The keyboard is not broken.

raspberrypi login: pi
Password: 
Last login: Mon Jan 12 02:53:54 UTC 2015 on ttyAMA0
Linux raspberrypi 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 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.

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

pi@raspberrypi:~$

Run raspi-config

  1. Expand the file system (option 1), enable "desktop" (layperson), or "command line" interface (2).
  2. Select Internationalization Options (3), I1 Locale, for USA select "en_US.UTF-8 UTF-8", Set timezone (I2)
  3. Enable Pi to work with the Pi Camera if applicable (5).
  4. Advanced (6) Set visible name to match name you intend to use for reporting to the Hivetool server. Enable SSH (A4) for remote access. Enable SPI, I2C, as it applies to your particular sensors (A5-7). Advanced - "Update config tool to latest version" (A9).
  5. "Finish" and restart at pi prompt; sudo shutdown -r 0
  6. At command prompt run; sudo apt-get update
  7. At command prompt run; sudo apt-get upgrade

Wi-Fi Setup

Setup WiFi (skip for hardwired Ethernet), insert WiFi dongle into USB jack, run "startx" to start the GUI Run the WiFi Configuration (supplicant), scan and add your access point (remove "dlink"), enter your AP password in the PSK field under "manage networks". The Configurator tells you what IP has been allocated. If you stay with DHCP then reserve the address in your router so you will always get the same one on the Pi.

Ethernet

Alternatively plug an Ethernet cable into the RJ45 jack (Not on the A model), you will need to determine what IP has been assigned by looking on your Router Tables or using the Ping command. Once known you can navigate to it with your browser. Your address is likely something like http://192.168.X.XXX/config.pl