PrintOnLan server Code
PrintOnLAN server for prinitng, scaning documents on Web page
Brought to you by:
sergio982
File | Date | Author | Commit |
---|---|---|---|
Readme.txt | 2014-07-24 |
![]() |
[814b66] Initial commit |
documentprint.sh | 2014-07-24 |
![]() |
[814b66] Initial commit |
html_to_pdf.php | 2014-07-24 |
![]() |
[814b66] Initial commit |
index.html | 2014-07-24 |
![]() |
[814b66] Initial commit |
phpinfo.php | 2014-07-24 |
![]() |
[814b66] Initial commit |
upload_file.php | 2014-07-24 |
![]() |
[814b66] Initial commit |
## printonlan - print documents with any device without printer driver ## Copyright (C) 2014 sergio982@gmail.com ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU Affero General Public License as ## published by the Free Software Foundation, either version 3 of the ## License, or (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU Affero General Public License for more details. ## ## You should have received a copy of the GNU Affero General Public License ## along with this program. If not, see <http://www.gnu.org/licenses/>. #Mobile device web printer server #This is short how to debian and ubuntu install #Install web page to pdf tool apt-get install wkhtmltopdf ln -s /usr/bin/wkhtmltopdf /usr/local/bin/html2pdf #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/*