Install cups https://wiki.archlinux.org/title/CUPS#Installation
The printer HP LaserJet 1020 needs Foomatic/foo2zjs-z1 https://openprinting.org/printer/HP/HP-LaserJet_1020
This is available as foo2zjs-nightly in AUR.
Check available drivers: lpinfo -m | grep 1020
https://openwrt.org/docs/guide-user/services/print_server/p910ndprinterserver
Printer will be available on socket://192.168.1.1:9100
Select HP LaserJet 1020 Foomatic/foo2zjs-z1 (en) as printer driver.
Printing should be working now.
Printer will be available on usb://HP/LaserJet%201020?serial=JL3KJNN
Select HP LaserJet 1020 Foomatic/foo2zjs-z1 (en) as printer driver.
Printing should be working now.
HP LaserJet 1020 doesn't support HW duplex, so you either need to do that manually or
Manual solution:
print odd pages (1,3,5)
move the whole printed paper stack from output to input
rotate the stack horizontally
print even pages in reverse (6,4,2)
Automatic solution:
install https://aur.archlinux.org/packages/gnome-manual-duplex
ImportError: "libffi.so.7": cannot open shared object file: No such file or directory
can be solved by updating the Arch
pygtk might need to be installed manually
when printing select Gnome Manual Duplex virtual printer
choose your actual printer in the popup window
Somehow (not tested) IPP could be used to access the printer with local autodiscovery via ipp:// https://wiki.debian.org/CUPSDriverlessPrinting#IPP-over-USB:_The_Basics
---
WARNING: Installing cups-filters and foomatic-db makes printer discoverable, but printing doesn't work because of No color profiles set in PPD!