Setup HP LaserJet CP1025 printer with CUPS on Arch Linux
Mon, Aug 17, 2020 02:00 CEST
Tags: Printer, CUPS, hplip
Configuration:
- Printer: HP LaserJet CP1025
- Driver: HP LaserJet cp1025, hpcups 3.20.6, requires proprietary plugin (color)
- Discovery: none (USB)
Install cups
, hplip
, and hplip-plugin
trizen -S cups hplip hplip-plugin
Enable and start cups-browsed
systemctl enable --now cups-browsed.service
Find the USB bus and device ID used by the printer
lsusb
...
Bus 003 Device 011: ID 03f0:c202 Hewlett-Packard
...
With the IP address of your HP printer/scanner, query its URI
hp-makeuri <Bus>:<Device>
...
CUPS URI: hp:/usb/HP_LaserJet_CP1025?serial=...
...
In the CUPS interface (http://localhost:631), configure a new printer:
- Go to Administration (http://localhost:631/admin),
- Click Add Printer,
- Select AppSocket/HP JetDirect and click Continue,
- Enter the URI from above (
hp:/...
) and click Continue, - Enter details for the printer,
- Select a driver under make HP (name should match URI),
- Set defaults.
Check that the printer works.