@@ -147,6 +147,12 @@ apt-get -o Dpkg::Options::=--force-confdef \
147147 pi-bluetooth \
148148 lsb-release \
149149 gettext \
150+ unzip \
151+ zip \
152+ libav-tools \
153+ gstreamer1.0-tools \
154+ motion \
155+ gpac \
150156 cloud-init
151157
152158
@@ -205,10 +211,47 @@ lighttpd-enable-mod fastcgi-php
205211systemctl disable dhcpcd
206212systemctl disable hciuart
207213
214+ echo " Installing infragram"
215+
216+ # install npm/node:
217+ curl -o node-v9.7.1-linux-armv6l.tar.gz https://nodejs.org/dist/v9.7.1/node-v9.7.1-linux-armv6l.tar.gz
218+ tar -xzf node-v9.7.1-linux-armv6l.tar.gz
219+ sudo cp -r node-v9.7.1-linux-armv6l/* /usr/local/
220+ sudo apt-get install git
221+
222+ cd /var/www/
223+
224+ # install infragram in the web public folder:
225+ echo " Installing infragram"
226+ git clone https://github.com/publiclab/infragram.git
227+ cd infragram
228+ npm install
229+ cd /var/www/
230+
231+ echo " Installing image-sequencer"
232+ # install image-sequencer in the web public folder:
233+ git clone https://github.com/publiclab/image-sequencer.git
234+ cd image-sequencer
235+ npm install
236+ cd /
237+
238+ echo " Booting Express at /script/app.js"
239+ cd script
240+ node app.js &
241+ cd /
242+
208243echo " Installing rpi-serial-console script"
209244wget -q https://raw.githubusercontent.com/lurch/rpi-serial-console/master/rpi-serial-console -O usr/local/bin/rpi-serial-console
210245chmod +x usr/local/bin/rpi-serial-console
211246
247+ echo " Installing RPi Cam Web Interface"
248+ wget -q https://github.com/silvanmelchior/RPi_Cam_Web_Interface/archive/master.zip -O /tmp/rpicam.zip
249+ cd /tmp/
250+ unzip rpicam.zip
251+ cd RPi_Cam_Web_Interface-master
252+ cp /etc/rpicam_config.txt config.txt
253+ bash ./install.sh q
254+
212255# fix eth0 interface name
213256ln -s /dev/null /etc/systemd/network/99-default.link
214257
0 commit comments