Thanks to Configuration Profiles, it is now possible to print to any printer that’s shared using CUPS, including both Mac OS X and Linux servers, without help from third-party software.
Aside from the obvious benefit of being free, the great thing about this approach is that the print server does not have to broadcast its presence on the same network as the iOS device. It works across routable subnets or even VPN connections.
Before you begin, please make sure you have all of the following:
- iPhone, iPad, or iPod touch running iOS 7 or higher.
- Mac or Linux system running CUPS, with a static/reserved address.
- Mac running Apple Configurator to create the profile.
Enable Printer Sharing
- OS X:
- Open System Preferences.
- Click on Sharing.
- Enable Printer Sharing
- Verify that the desired printers are enabled for everyone.
- Linux or other *NIX:
- Visit the CUPS web interface <http://localhost:631>
- Click on the Administration tab.
- Enable the option to Share printers connected to this system.
Tip: You may also need to click on the Printers tab and modify individual printers to enable sharing for them individually.
Create Profile
- Open Apple Configurator on your Mac.
- Select the Supervise tab.
- Click the + (plus) button.
- Click Create New Profile…
- In the Name field, give your profile a title.
- Click on AirPrint.
- Click the Configure button.
- Click the + (plus) button.
- Select the Undiscoverable radio button.
- Enter the IP Address of your CUPS server.
- Enter the Resource path, which is the path to the print queue. It will be similar to /printers/queue-name
Tip: Run lpstat -p in the Terminal on your CUPS server to get a list of available queue names. A printer titled My_Laser_Printer would have a path of /printers/My_Laser_Printer - Click the Save button.
- Repeat steps 9 through 13 for any additional printers you wish to configure.
- Click Save to save your new profile.
Install Profile
There are many ways you can send the profile to your iOS device(s). Here are a few ideas:
- Use the Prepare feature in Configurator.
- Export the profile, email it to yourself, and open the attachment on your device.
- Post it on a web server and visit the URL in Safari.
- Push it to the device via an MDM service.
Conclusion
Once your profile has been installed, try printing from any app. Your printer should appear automatically. If it doesn’t, here are a few things you can try:
- Double-check the queue name and the IP address of the CUPS server.
- Verify that the cups server is reachable from the network your iOS device is on.
Tip: Visit http://server.ip.here:631 in a browser. You may receive a message that the CUPS web interface is not enabled, but that’s OK as long as the page comes up. - Make sure print sharing is enabled in general, as well as for the specific printer(s) you added to your profile.