The instructions below provide a guide to port the datalogger to your existing OS.

It is possible to configure everything on your running OS to use it, however it took me several month of experimenting to find all the settings. There are several system-wide config files and permissions to set up. But if you are familiar with this, I would very welcome your contribution and sharing of information. Feel free to use the github-discussion page.

Download the configured minimalistic Raspbian PREEMPT image

Minimal installation

The instructions below provide a guide to port the OpenDataLogger to your existing OS. Currently, there are some restrictions.

Currently, there are some restrictions. * If you have any data in your home folder (/home/pi) move temporarily to another location. The git repository will be cloned directly into your home directory. It is also possible to clone it elsewhere, but this is the most simple way.

Execute the commands below. Watch for errors.

sudo apt-get update
sudo apt-get install fail2ban git mc nmap highlight lighttpd
sudo apt-get install netcdf-bin libnetcdf-dev libpam0g-dev linux-headers-rpi
sudo apt-get install python-pip python-rpi.gpio php5-common php5-cgi php5-cli php-pear libssh2-php 
sudo apt-get install watchdog

in case of errors, re-execute these sudo apt-get install -f, sudo apt-get upgrade

lastly install python stuff (numpy might take several hours!)

sudo pip install twisted autobahn configparser numpy netcdf
sudo pecl install PAM

delete home folder of pi, and pull the content of this repository

cd /home
sudo rm -r /home/pi
sudo mkdir pi
sudo chown pi:pi pi
git clone http://github.com/deguss/rpilogger pi
bash

configure web-server and i2c permissions

sudo rm -r /var/www
sudo ln -s /home/pi/www /var/www
sudo chmod 0775 /home/pi/www
sudo chown -h www-data:www-data /var/www
sudo ln -s /etc/lighttpd/conf-available/10-fastcgi.conf /etc/lighttpd/conf-enabled/
sudo ln -s /etc/lighttpd/conf-available/15-fastcgi-php.conf /etc/lighttpd/conf-enabled/
sudo usermod -a -G i2c,spi,gpio,www-data pi
sudo usermod -a -G shadow www-data

remove graphical environment

sudo tasksel remove gnome-desktop
sudo apt-get remove --purge x11-common
sudo apt-get purge remove x11-*
sudo apt-get purge xorg, xserver-xorg-video-all, xserver-xorg-input-all, desktop-base, triggerhappy

sudo apt-get autoremove


Comments

comments powered by Disqus