Electrical-Forenics Home ray@RayFranco.com                       601.529.7473
   © Dr. Ray Franco, PhD, PE  -  208 Fairways Dr., Vicksburg, MS 39183

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).

AirPrinting with a Raspberry RPi Zero 2W

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.

Continuing Installation with CUPS' Built-in Webserver

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.

CUPS Version and Updating

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 to Microsoft's Windows 11

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.

HP 1320n References:

  1. HP LaserJet 1320nw - Users Guide
  2. HP LaserJet 1160 and 1320 Series - User Guide
  3. HP LaserJet 1160 and 1320 Service Manual
  4. Youtube - HP LaserJet 1320 makes screaming noise
  5. HP LaserJet 1320 prints extra blank page
  6. Youtube - How fix canon LBP 3300,hp 2015,hp 1320 printer extra page out
  7. Youtube - HP 1160 1320 manual tray 1 won't feed envelope or single page; sticking solenoid repair
  8. How to Turn a USB Printer Into a Wireless Printer With Raspberry Pi Zero W
  9. CUPS - Printer Applications and Printer Drivers