Alternative to Cloud Printing (Free)
Cloud Printing and Remote printing provide the flexibility to print from anywhere to a specific printer. These solutions are being offered by HP ePrint when you buy an ePrint enabled printer.
HP ePrint allows you to send mail to your printer.However, sometimes the print takes long time to deliver, in some instances more than 5 minutes.But we don’t have any control over the job.
We have created an alternative solution that can function similar to the Cloud Printing. Of course, there are multiple components for this to work, but this is an alternative where you have full control over the print job.
Once the basic functionality is working, you can add further code to send an eMail to the requestor etc.
What we need:
- Raspberry Pi
- Thunderbird mail client
- CUPS Print server installed in Raspberry Pi
- Shell script to print files automatically
- Printer Setup
- Install CUPS software in Raspberry Pi
- Setup a default printer
- Connect printer to Raspberry Pi (preferably wired connection )
- Thunderbird Setup
- Install Thunderbird
- Install FiltaQuilla add-on for Thunderbird
- Install PrintingToolsNG add-on for Thunderbird
- Create an eMail account for your printer (any eMail account dedicated to receive the print jobs)
- Create a new folder to save attachments (ex: /home/pi/files_to_print_folder)
- Configure Thunderbird in Raspberry Pi to receive eMails form the account created in step 4
- Create a rule to save attachments in the folder created in step 5
- Shell Script and other Linux commands
- Set inotify event on that folder to print any new file created in the folder
- Make Thunderbird start on boot
- Install CUPS, add a new Printer. For more details click here
- Install Thunderbird mail client using Add, Remove Software option from Raspberry Pi Desktop. For more details click here
- Install FiltaQuilla. For more details click here
- Create a rule to save attachments to a folder
- Create a rule in Thunderbird to save eMail attachments. For more details click here
- From Thunderbird (Tools-> Message Filters—>New Rule—>
- Check "Manually Run" tick box
- Check "Getting New eMail" tick box and select "Filter after Junk Classification" in the dropdown
- Select "Attachment status", "Is" and "Has" attachments in the dropdown as shown in the above picture
- In Perform These actions section, select "Save Attachments to" : enter folder you create in step 5 of approch section
- Crete Shell Script (ex. autoprint.sh)
- Autostart Thunderbird on boot
Add the following lines to /etc/xdg/lxsession/LXDE-pi/autostart file.
Please send mail to email@example.com for more details