Menu

Install PrintOnWeb on raspberryPi

Sergio

Mobile device web printer server on raspberry pi

This is short how to debian and ubuntu install

Install web page to pdf tool

apt-get install wkhtmltopdf xvfb libicu48
mv /usr/bin/wkhtmltopdf /usr/bin/wkhtmltopdf-origin
touch /usr/bin/wkhtmltopdf && chmod +x /usr/bin/wkhtmltopdf && cat > /usr/bin/wkhtmltopdf << END

!/bin/bash

/usr/bin/xvfb-run -a -s "-screen 0 1024x768x24" /usr/bin/wkhtmltopdf-origin "\$@"
END

Install php and supported files

apt-get install php5
apt-get install php5-curl
apt-get install libreoffice

Install lighttp server

apt-get install lighttpd php5-cgi
lighty-enable-mod fastcgi
lighty-enable-mod fastcgi-php
/etc/init.d/lighttpd force-reload

or

/etc/init.d/lighttpd restart

Check for errors

tail -f /var/log/lighttpd/error.log

Install printonlan application

mkdir -p /var/www/printonlan/uploader/uploads/pdf/
mkdir -p /var/www/printonlan/uploader/deposits/
chmod 777 -R /var/www/printonlan/uploader/
chown www-data:www-data /var/www/printonlan/ -R
chmod +x /var/www/printonlan/documentprint.sh

Add application to crontab

crontab -e

          • /var/www/printonlan/documentprint.sh
            0 4 * * * rm -Rf /var/www/printonlan/uploader/deposits/*

MongoDB Logo MongoDB