Pinterest Stumbleupon Whatsapp
Ads by Google

Do you want to be able to print from your smartphone or tablet to your old-fashioned, non-wireless printer? To keep your printer in a different room, perhaps even in a cupboard or shed (if it’s noisy), safe in the knowledge that the print job will be waiting for you when you go to collect it?

With a Raspberry Pi, you can.

Get Your Raspberry Pi Print Server Ready First

It used to be the case that the only way to turn an old-style, non-wireless printer into a modern, wireless printer was to either buy a potentially expensive wireless card for the device (if compatible) or connect it to a wireless-enabled PC How To Make A Printer Wireless How To Make A Printer Wireless Read More . This is more or less still the case; the only difference is that the PC just got a lot smaller, and is now a Raspberry Pi.

If you followed the instructions provided in our previous guide Make Your Own Wireless Printer With A Raspberry Pi Make Your Own Wireless Printer With A Raspberry Pi Fewer cables, flexibility about where you can put your printer – wireless printing is a win-win. Unless you have an older printer. Raspberry Pi to the rescue! Read More , you should know how to  setup your Raspberry Pi print server using CUPS and Samba. Hopefully, you’ve also made sure that the correct printer driver is selected, as well as confirming that your printer will respond to print jobs.

By now, you’re up to speed. The next task is to configure your Raspberry Pi print server to print from an iPad, iPhone or Android device.

Devices You Can Print From

Our guide for setting up the Raspberry Pi as a print server was mainly intended for Windows PCs (although connecting to a Raspberry Pi-connected printer from Linux and Mac OS X is just as simple).

Ads by Google

muo-rpi-airprint-windows

However, by adding support for AirPrint and other wireless printing protocols, we can print from iPads, iPhones, Android devices and more.

Sending print jobs from your mobile device is perhaps the most liberating and exciting new experience made possible by wireless printing, and by using the Raspberry Pi you get to learn a little about how a print server fits into the system.

Stop Your Raspberry Pi Wi-Fi Idling

One thing you should do before proceeding is to stop the Pi’s network card going into idle mode, which will stop you being able to print. Without attaching a keyboard (and we want the Pi print server to be accessible via SSH) the system cannot be woken up.

This means that your computer, tablet or phone will be unable to connect to the printer!

To work around this, we can add the following script to block the Pi from going into standby.

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 that file:

# Disable power saving
 options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1

Give your Pi a chance to run these changes by rebooting:

sudo reboot.

Don’t be concerned that we’ve disabled power management – the Raspberry Pi uses far less power than any of the other devices involved in this setup. It’s entirely safe for your Pi to be left switched on; this is common in media centre setups with RaspBMC How To Make Your Raspberry Pi Into a Home Theater System How To Make Your Raspberry Pi Into a Home Theater System Four weeks on and I’ve been playing with my Raspberry Pi in various ways, from using it to browse the web and standard day-to-day computing tasks to playing around with the various configurations that are... Read More .

What You Need To Know About Adding AirPrint Support

Once the problem with your wireless dongle timing out is fixed, you can start adding the tools to make it possible to print from your mobile device.

However, it isn’t as complicated as some sites and tutorials would have you believe. Recently, the component software that makes printing through a Raspberry Pi wireless print server from an iPad or iPhone has been incorporated into CUPS, Samba and Raspbian.

The result is that it is very simple to print from your iOS device once a single application has been added.

sudo apt-get install avahi-discover

That’s all. When installation is complete, you should be ready to start printing!

Print From Your iPad To Your Raspberry Pi Print Server

On an iOS device (tested on iOS7), open the document or webpage and select the Share > Print option.

muo-rpi-airprint-ipad

In the next screen, find the printer in the list of available devices (if you left the default name in place in the previous guide, it should have “raspberry pi” in the name) and select it.

All that is left to do is send the print job and wait for the output. Depending on the complexity of the file (it might be a long document, or a photo) you may have to wait a little for the print job to complete.

Wait: You Can Print From Android Too!

In case you were wondering why we were focusing on iOS devices, you’ll be pleased to know that Android devices can also connect to Raspberry Pi wireless print servers (sadly Windows Phones cannot at this stage)

muo-rpi-airprint-android

Many printing apps exist for Android, but most of these are all about Internet printing. If you’re looking for something that is designed to provide a simple link between your Android handset and the printer you have connected to your Raspberry Pi wireless print server, the PrintBot app (limited free evaluation version) is ideal. If you’re happy, you can upgrade to the full version ($4.49)  – sadly there doesn’t seem to be a 100% free wireless print app for Android.

After installation, all you need to do is confirm a network connection to the device, select the printer driver from the list (which can take some time if you have a HP device!) and print a test page to confirm all is working. When you want to print a document or image, tap and select PrintBot as the app to open it with, check the settings and finally click Print.

Raspberry Pi Print Server Zen

We’ve given you two guides now on using the Raspberry Pi as a wireless print server. The implications of this arrangement are clear – you can now finally make your old-but-still-working printer a key component of your wireless, multi-device life once again.

Have you set your Raspberry Pi up as a print server? Does the simple setup of AirPrint compatibility or the ability to print from your Android device make this a project you’re looking forward to trying?

Share your thoughts in the comments!

Image Credits: Solarbotics Via Flickr

  1. ???. ???????????
    October 11, 2015 at 1:43 pm

    There is a free app available for android 'let's print droid' which is free and useful..

    • Christian Cawley
      October 22, 2015 at 7:18 pm

      Useful tip, I'll look into it.

  2. Charles Nicholson
    May 31, 2015 at 4:23 am

    This post and the one about setting up the server were great. May I make one small suggestion for people attempting to get this to work. After the last step restart cups one more time using the sudo service cups restart command or reboot. I was not getting any airprint options until I did this. Thanks again for the great articles.

  3. Helladog
    March 8, 2015 at 9:22 pm

    I'll try that, but I have no problem seeing the printer and it does start to warm up when I initiate a print job. It just refuses to print.

    With iOS and osx the computer doesn't try to install drivers, but Windows does for some reason, even though the pi is handling the driver, which makes me wonder if that is the problem.

  4. Helladog
    March 4, 2015 at 11:33 pm

    ot my Macbook, and my iOS devices working on the server, but Windows 8.1 won't work. Would this have anything to do with Windows installing the driver?

    • Christian Cawley
      March 6, 2015 at 1:57 pm

      Possible, but not sure why it would. Have you tried reinstalling the printer on Windows?

    • Helladog
      March 6, 2015 at 3:19 pm

      I've tried many things to no avail. The printer warms up but doesn't print under 8.1. I'll keep trying.. At least it works with the iPhone.

    • Christian Cawley
      March 8, 2015 at 1:44 pm

      Odd. The MS Word screenshot above was taken in Windows 8.1, so I don't think it's down to the OS. Does it work with your firewall disabled?

  5. Hans
    January 21, 2015 at 3:13 pm

    Good article. But make sure that the printer is being "shared" in CUPS (this is NOT the default setting). And reboot the pi to restart all the services.

  6. Anreas
    December 6, 2014 at 5:16 pm

    I followd your guide to make my printer be found on a computer. This works just fine.
    But making it airprint, is not working..
    Not much to get wrong, since it is just one line of code, but I do not get it to work.
    Anyway I can check if I lack any package etc?

Leave a Reply

Your email address will not be published. Required fields are marked *