Update on 2/2020/2026
I wanted to send print jobs wirelessly to my printer from my Windows PC, Linux Desktop PC (x86), Raspberry Pi (Arm), Apple Laptop, iPad, and iPhone, and I did not want to install printer drivers in each of these devices. To accomplish this, I decided to use the USB port on Raspberry Pi Zero 2-W to control the printer, and the built in Wi-Fi for wireless communications. That is, I wanted to turn a non-AirPrint Printer into an AirPrint Printer with a Pi Zero 2-W ($15).
Give wlan0 a static ip address on your network. Provide a link for this.
Install the "Comman Unix Printing System (CUPS):
sudo apt install cups
Add the user to the group line printer administrators:
sudo gpasswd -a user_name lpadmin
reboot
Install the HPLIP drivers
sudo install hplip
Enable remote adminstration and remote-any to the server:
sudo cupsctl --remote-admin --remote-any --share-printers
reboot
In the next section, you will get a warning, "Print Drivers and raw queues are deprecated, and will stop working in future versions of CUPS". This is probably years away [9], but just in case:
sudo apt-mark hold cups
(See the section below CUPS Version and Updating.)
Shutdown your CUPS Server:
sudo shutdown now -h
and remove its power source.
In addition, to being a print server, cups has a built-in Webserver. The rest of the installation will be done using cups' built-in webserver.
Connect the usb port of your cups server to the usb port of the printer. Power up the printer and the cups server.
Open a web browser and in the address bar:
https://ip_address_of_cups_server:631
Where ip_address_ of_cups_server is the static ip address you assigned it.
Ignore the "Warning: Potential Security Risk Ahead".
Click on the Advanced... button.
Click on Accept the Risk and Continue
Click on the Administration tab.
Enter your username and password
Under Printers:
Your printer may not show up the first time. Just repeat the "Find New Printers" process until your printer shows up.
Under Manufactures, select HP, and "continue" (just below the selection box).
Under Model, Select HP LaserJet_1320_Series_PCL3 cups 3.22.10. There are several drivers for HP 1320 printers, including a postscript driver (recommended). I did not have good luck with this driver. For some reason, each driver appears to be repeated four times in the list box.
Under Maintenance, print a test page.
Tests by printing an email from your iPhone.
On Debian to see which version of CUPS you are running:
sudo apt policy cups
The current version of cups is 2.4.10-3+deb13u2 (Feb 2026). Support for print drivers and raw queues will not end until version 3 of cups. This will be years from now [9].
To check that updates to cups are being held:
sudo apt-mark showhold
To upgrade to a newer 2.x verson, release the hold:
sudo apt-mark unhold cups && sudo apt upgrade -y
After the upgrade, re-enable the hold:
sudo apt-mark hold cups
Connecting the AirPrint enabled HP 1320 to Microsoft Windows is straight forward.
Settings -> Bluetooth & devices -> Printers & Scanners -> Add Device
Wait for your printer to appear and click Add Device.
It will say Connecting to Printer. Be Patient. At the end, installing printer will be quickly displayed. You may only see that Connecting to Printer disappeared.
To print, select the printer as you would any other device.