Hier gebe ich jetzt mal mein CometVisu Installscript zum besten. Sowohl Release 0.6.2 als auch der in diesem Moment aktuelle SVN-Stand.
Was ist in der Zip-Datei?
- eibd/bcusdk
- rrdtool 1.4.7 (patched)
- ein paar nötige scripte und configs für comet und lighttp
Einfach ausführen und dafür sorgen dass die Datei comet_complete.zip im Ordner /tmp liegt. Im Anhang einfach das .pdf entfernen.
ACHTUNG:
[WICHTIG]
Nur für armhf.
Bestehende rrdtool, eibd und lighttpd Konfigurationen werden dabei einfach übergebügelt.
Eignet sich also am besten für ein frisches System (in diesem Falle wheezy auf dem Pi). Danach muss noch der eibd in /etc/default/eibd konfiguriert werden.[/WICHTIG]
Was ist in der Zip-Datei?
- eibd/bcusdk
- rrdtool 1.4.7 (patched)
- ein paar nötige scripte und configs für comet und lighttp
Einfach ausführen und dafür sorgen dass die Datei comet_complete.zip im Ordner /tmp liegt. Im Anhang einfach das .pdf entfernen.
ACHTUNG:
[WICHTIG]
Nur für armhf.
Bestehende rrdtool, eibd und lighttpd Konfigurationen werden dabei einfach übergebügelt.
Eignet sich also am besten für ein frisches System (in diesem Falle wheezy auf dem Pi). Danach muss noch der eibd in /etc/default/eibd konfiguriert werden.[/WICHTIG]
Code:
#!/bin/sh #JuMi2006 2013-03-20 BUILD_DIR=/tmp WWW_DIR=/var/www cd $BUILD_DIR apt-get install --yes subversion tmux libxml2-dev liblua5.1-0-dev htop locate libcppunit-dev liblog4cpp5-dev libmysqlclient-dev bzip2 lighttpd php5-cgi #tar -xvf comet_complete.tar.bz2 unzip comet_complete.zip dpkg -i rrdtool_1.4.7-2+rpi1+nmu1_armhf.deb dpkg -i pthsem_2.0.8-1_armhf.deb LD_LIBRARY_PATH="/usr/local/lib/" ldconfig dpkg -i bcusdk_0.0.4+nmu18-1_armhf.deb apt-get install --yes -f cp eibd.init /etc/init.d/eibd cp eibd.default /etc/default/eibd update-rc.d eibd defaults service eibd start groupadd www-data cp 10-cgi.conf /etc/lighttpd/conf-enabled/10-cgi.conf cp 11-cometvisu.conf /etc/lighttpd/conf-enabled/11-cometvisu.conf cp lighttpd.conf /etc/lighttpd/lighttpd.conf /etc/init.d/lighttpd restart cd $BUILD_DIR wget http://downloads.sourceforge.net/project/openautomation/CometVisu/CometVisu_0.6.2.tar.bz2 tar -jxvf CometVisu_0.6.2.tar.bz2 cd release_0.6.2 mv visu $WWW_DIR cd $WWW_DIR chown -R www-data:www-data visu cd $WWW_DIR svn co https://openautomation.svn.sourceforge.net/svnroot/openautomation/CometVisu/trunk/src visu_svn cd visu_svn svn update cd $WWW_DIR chown -R www-data:www-data visu_svn chmod a+rw $WWW_DIR/visu_svn/visu_config.xml chmod a+rw $WWW_DIR/visu_svn/backup chmod a+rw $WWW_DIR/visu_svn/visu_config_previewtemp.xml cd $BUILD_DIR chmod +x l chmod +x rrdfetch cp l /usr/local/bin cp rrdfetch /usr/local/bin/rrdfetch cd /usr/lib/cgi-bin ln -s /usr/local/bin/eibread-cgi r ln -s /usr/local/bin/eibwrite-cgi w ln -s /usr/local/bin/l l ln -s /usr/local/bin/rrdfetch rrdfetch
Kommentar