This is an old revision of the document!
These are some notes on how to setup various of my developments regarding OWFS on a Raspberry Pi.
I am not going to use the X server on my system, therefore let's clean it up, so future updates will consume less time and resources. See also How to uninstall X Server and Desktop Manager when running as headless server?
apt-get install deborphan apt-get remove --auto-remove --purge libx11-.\* apt-get autoremove --purge libx11-.* lxde-.* raspberrypi-artwork xkb-data omxplayer penguinspuzzle sgml-base xml-core alsa-.* cifs-.* samba-.* fonts-.* desktop-* gnome-.* sudo apt-get remove --purge $(deborphan) sudo apt-get autoremove
Install required packages
apt-get install at libow-perl librrdtool-oo-perl libtie-ixhash-perl nginx-light owfs ow-shell php5-cgi php5-cli php5-sqlite libow-php5 rrdtool fcgiwrap apt-get install ferm lzma nullmailer vim unattended-upgrades #for convenience * remove 'n' in /usr/lib/perl5/OW.pm at line 68
mkdir /var/lib/owst sqlite3 /var/lib/owst/owst.sq3 < config/database.sql touch /var/lib/owst/owst.lock /var/log/owst.log chown pi.www-data /var/lib/owst /var/lib/owst/owst.sq3 /var/lib/owst/owst.lock /var/log/owst.log chmod 660 /var/lib/owst/owst.sq3 /var/lib/owst/owst.lock /var/log/owst.log chmod 770 /var/lib/owst
; configuration for owphp module ; priority=20 extension=libowphp.so
php5enmod owphp
cp config/etc.cron.d.owst /etc/cron.d/owst cp config/etc.sudoers.d.owst /etc/sudoers.d/owst
libexec/gen_rrd_create.pl
- run the output as a command1wSensorMon.pl
- no error this time*/5 * * * * root 1wSensorMon.pl 2> /dev/null