Difference between revisions of "XXX: Load Hivetool on the Pi"
(→Make SD card on Unix/Linux system) |
|||
Line 2: | Line 2: | ||
We are using Raspbian. Latest image is: 2013-12-20-wheezy-raspbian.zip | We are using Raspbian. Latest image is: 2013-12-20-wheezy-raspbian.zip | ||
http://www.raspberrypi.org/downloads | http://www.raspberrypi.org/downloads | ||
− | ==Make SD card on Unix/Linux system== | + | ==Copy the image to the SD card== |
+ | ===Make SD card on Unix/Linux system=== | ||
#: dd bs=4M if=2013-05-25-wheezy-raspbian.img of=/dev/mmcblk0 | #: dd bs=4M if=2013-05-25-wheezy-raspbian.img of=/dev/mmcblk0 | ||
− | Detailed instructions | + | Detailed instructions: |
http://elinux.org/RPi_Easy_SD_Card_Setup#Flashing_the_SD_Card_using_Linux_.28including_on_a_Pi.21.29 | http://elinux.org/RPi_Easy_SD_Card_Setup#Flashing_the_SD_Card_using_Linux_.28including_on_a_Pi.21.29 | ||
− | ==Make SD card on Windows system== | + | ===Make SD card on Windows system=== |
raspberrypi.org recommends using: | raspberrypi.org recommends using: | ||
http://sourceforge.net/projects/win32diskimager/ | http://sourceforge.net/projects/win32diskimager/ | ||
− | But be careful. REMOVE any other USB memory devices from your computer. | + | But be careful. REMOVE any other USB memory devices from your computer. |
− | http://elinux.org/RPi_Easy_SD_Card_Setup#Flashing_the_SD_Card_using_Windows | + | Detailed instructions: http://elinux.org/RPi_Easy_SD_Card_Setup#Flashing_the_SD_Card_using_Windows |
==Boot Pi, expand file system, set TZ and hostname== | ==Boot Pi, expand file system, set TZ and hostname== |
Revision as of 20:12, 28 December 2013
Contents
Get latest raw image of operating system
We are using Raspbian. Latest image is: 2013-12-20-wheezy-raspbian.zip http://www.raspberrypi.org/downloads
Copy the image to the SD card
Make SD card on Unix/Linux system
- dd bs=4M if=2013-05-25-wheezy-raspbian.img of=/dev/mmcblk0
Detailed instructions: http://elinux.org/RPi_Easy_SD_Card_Setup#Flashing_the_SD_Card_using_Linux_.28including_on_a_Pi.21.29
Make SD card on Windows system
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
Boot Pi, expand file system, set TZ and hostname
- Boot Pi and login
- Expand file system, set TZ and hostname
- sudo raspi-config
- (need details of menu options)
Install required packages
- Update before trying to add packages
- sudo apt-get update
- Get gawk, bc for shell scripts, apache for webserver, and libusb to read TEMPerHUMs.
- sudo apt-get install gawk bc apache2
- apt-get libusb-dev
- Get the graphics library
- sudo apt-get -y install libgd2-xpm-dev build-essential
- Now get Graphics for perl. Force the install.
- sudo cpan -f GD
- sudo cpan GD::Text GD::Graph Date::Format
- Copy the patched pm
- sudo scp -P8022 paul@192.168.254.31:/usr/local/share/perl/5.14.2/GD/Graph/axestype.pm /usr/local/share/perl/5.14.2/GD/Graph/axestype.pm
- Make hivetool and htdocs directories.
- sudo mkdir /home/hivetool
- sudo mkdir /var/www/htdocs
- Copy the hivetool files"
- scp -P8022 pi@192.168.254.31:/home/hivetool/* /home/hivetool
- sudo scp -P8022 pi@192.168.254.31:/var/www/htdocs/* /var/www/htdocs
Done installing hivetool files
Set the ethernet parameters and DNS servers
- set static ip for port forwarding
- sudo vi /etc/network/interfaces:
- iface eth0 inet dhcp
- iface eth0 inet static
- address 192.168.254.31
- netmask 255.255.255.0
- gateway 192.168.254.254
- Set the dns Servers
- /etc/network/interfaces
- /etc/dhcp/dhclient.conf
Configure apache
- set up apache
- sudo vi /etc/apache2/ports.conf
- Listen 8080
- add .pl to AddHandler cgi-script
- sudo vi /etc/apache2/mods-enabled/mime.conf
- AddHandler cgi-script .cgi .pl
- add Includes to Options:
- sudo vi /etc/apache2/sites-enabled/000-default
- Add index.shtml:
- sudo vi /etc/apache2/mods-enabled/dir.conf
- sudo cp /etc/apache2/mods-available/include.load /etc/apache2/mods-enabled/
Misc
- Set the local host name
- sudo vi /etc/hostname
- and edit the local host name here, too:
- sudo vi /etc/hosts