System > Administration > SSH Access
interface: LAN
port: 22
password auth: [ ]
allow root logins with password: [ ]
gateway ports: [ ]
System > Administration > SSH-Keys
upload your SSH key
https://openwrt.org/docs/guide-user/services/print_server/p910ndprinterserver
https://openwrt.org/docs/guide-user/services/print_server/p910nd.server
connect printer to router USB port
install packages on router
kmod-usb-printer
p910nd
luci-app-p910nd
install packages on client machine
use guide on Tisk page
setup printer on client machine
open CUPS admin http://localhost:631/printers/ or any other way
AppSocket/HP JetDirect
socket://192.168.1.1:9100
driver: HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommended) (grayscale)
setup in LuCi
Services > p910nd - Printer server > [Add]
device: /dev/usb/lp0
interface: unspecified (means all interfaces)
port: 9100
firewall should be already enabled
Network > Firewall > Traffic rules
USB-print-server
protocol: TCP
port: 9100
source zone: LAN
destination zone: device
set automatic firmware update on printer connect
upload printer firmware from client to router
scp -O /usr/share/foo2zjs/firmware/sihp1020.dl 192.168.1.1:/root/.
-O uses legacy SCP protocol because OpenWRT doesn't implement SFTP
create /etc/hotplug.d/usb/30-hplj1020 with following content:
and set it as executable chmod +x /etc/hotplug.d/usb/30-hplj1020
print test page - any document
NOTE: printing actual test page from CUPS admin http://localhost:631/printers/ WON'T work (does nothing)
You can now sent print jobs to the printer - needs to be powered on.
The printer will seem like it is printing something each time it is powered on, but that is just firmware being uploaded.