Do you want to be able to print from your smartphone or tablet to a legacy non-wireless printer? To keep the printer in another room, perhaps even in a closet or shed (if it’s noisy), is it safe to know that the print job will be waiting for you when you go after it?
With Raspberry Pi, you can.
First Prepare the Raspberry Pi Print Server
If you have followed the instructions in our previous guide, you should know how to set up a Raspberry Pi print server using CUPS and Samba. We hope that you have also made sure that the correct printer driver is selected and that your printer will respond to print jobs.
By now you are in the know. The next task is to set up the Raspberry Pi print server to print from an iPad, iPhone, or Android device.
Devices you can print from
Our guide to setting up a Raspberry Pi as a print server was mainly for Windows computers (although connecting to a printer connected to a Raspberry Pi from Linux and Mac OS X is just as easy).
However, by adding support for AirPrint and other wireless printing protocols, we can print from iPads, iPhones, Android devices, and more.
Submitting print jobs from your mobile device is arguably the most liberated and exciting new experience wireless printing has made possible, and with a Raspberry Pi, you’ll learn a little about how a print server fits into the system.
Stop Your Raspberry Pi Wi-Fi Idling
Before you continue, you must stop the Pi’s network card from going into sleep mode, which will make it impossible for you to print. Without a keyboard connected (and we want the Pi print server to be available via SSH), the system cannot be woken up.
This means that your computer, tablet or phone will not be able to connect to the printer!
To get around this, we can add the following script to block the Pi from going to sleep.
Enter the following command in the terminal to create and edit a new text file:
sudo nano /etc/modprobe.d/8192cu.conf
and add the following to this file: