Using the Raspberry to use a local emonCms server (with ready-to-use disk images)
This is the most straightforward way of getting your system running. The drawback is that it is more difficult to update to the latest version of emonCms.
1 Write the disk images
This installation is based on this tutorial.
Download the images
that will be written on the SD card (boot) and on the external hard drive (file system).
Extract it and you will get two images : boot.img (SD) and pi_hdd_stack.img (HDD).
Plug in the SD card to your computer and write the boot.img
file to the SD card. On Linux run this command (changing /dev/sdX to the one assigned to your SD card) :
sudo dd bs=4M if=boot.img of=/dev/sdX
Plug in the USB hard drive to your computer and write the pi_hdd_stack.img
file to your hard drive. On Linux run this command (changing /dev/sdY to the one assigned to your hard drive) :
sudo dd bs=4M if=pi_hdd_stack.img of=/dev/sdY
Using a software like gparted, resize the partition that was created to 10 Go (by default it is 2.9 Go and may be too small to log all your data).
2 Getting started
If you can, plug in an external monitor to your Raspberry PI so that you can see what is happening.
Power on the hub : the Raspberry Pi should be switched on and start.
Connect to your Raspberry Pi over ssh (password is by default 'raspberry') :
Look at the /etc/fstab
file, you should have something like this :
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/sda2 / ext4 defaults,noatime 0 1
3 Configure emonCms
4 Update emonCms
/var/www/tech_mirelsol/data/pages/projects/open_energy_monitor_unmonastery/raspberry_local_emoncms_images.txt · Last modified: 13/05/2014 12:25 by Mirelsol