I recently acquired a Brother HL-L2300D laser printer. It only has a USB interface.
I plugged it into the USB socket on my OpenWRT router (ip address 192.168.0.2) and installed p910nd print server software[1]
I connected to the printer from a Linux desktop (Linux Mint) and tested everything. All worked as expected[2]
I then reviewed Handbook chapter 11 Printing
I created the new spool directory.
I added an extra entry to /etc/printcap:
I restarted the printing subsystem
I tried to print to the printer:
No output
I examined /var/spool/lpd/lp4. There were a number of files[3]
I examined /var/log/lpd-errs. There was a non specific error message [4]
I have in the past tried to install CUPS but I have found it causes problems with Samba and I don't want
to cause further problems with a production system.
I've searched online for answers without success.
Advice please.
[1]https://openwrt.org/docs/guide-user/services/print_server/p910ndprinterserver
[2]Printer manager settings -
[3]
The files length 1078 have the text from the file I tried to print.
The files length 101 have contents like:
[4]
I plugged it into the USB socket on my OpenWRT router (ip address 192.168.0.2) and installed p910nd print server software[1]
I connected to the printer from a Linux desktop (Linux Mint) and tested everything. All worked as expected[2]
I then reviewed Handbook chapter 11 Printing
I created the new spool directory.
I added an extra entry to /etc/printcap:
Code:
# added by mg 14 dec 2023
# Brother HL-L2300D attached to Openwrt router
lp4|laser2|Brother HL-L2300D:\
:rm=9100@192.168.0.2:\
:rp=raw:\
🇸🇭\
:mx#0:\
:sd=/var/spool/lpd/lp4:\
:lf=/var/log/lpd-errs:\
:if=/usr/local/libexec/broif:
I restarted the printing subsystem
# lpc restart all
I tried to print to the printer:
# lpr -Plp4 /etc/printcap
No output
I examined /var/spool/lpd/lp4. There were a number of files[3]
I examined /var/log/lpd-errs. There was a non specific error message [4]
I have in the past tried to install CUPS but I have found it causes problems with Samba and I don't want
to cause further problems with a production system.
I've searched online for answers without success.
Advice please.
[1]https://openwrt.org/docs/guide-user/services/print_server/p910ndprinterserver
[2]Printer manager settings -
socket://192.168.0.2:9100
[3]
Code:
root@pr5:/home/user2 # ls -lrt /var/spool/lpd/lp4
total 27
-rw-rw-r-- 1 root daemon 0 Dec 14 10:59 errs.iMcNNh2
-rw-rw-r-- 1 root daemon 0 Dec 14 11:00 errs.kQERMN0
-rw-rw-r-- 1 root daemon 0 Dec 14 11:32 errs.Ng0DGI3
-rw-rw-r-- 1 root daemon 0 Dec 14 11:32 errs.KgnNPvd
-rw-rw-r-- 1 root daemon 0 Dec 14 11:35 errs.shTfofW
-rw-rw-r-- 1 root daemon 0 Dec 14 11:35 errs.geo7KqQ
-rw-rw-r-- 1 root daemon 33 Dec 14 11:46 status
-rw-rw---- 1 root daemon 1078 Dec 14 15:53 dfA006pr5.blank.blank
-rw-rw---- 1 daemon daemon 101 Dec 14 15:53 cfA006pr5.blank.blank
-rw-rw-r-- 1 root daemon 0 Dec 14 15:53 errs.0IwlrlK
-rw-rw---- 1 root daemon 1078 Dec 14 15:54 dfA007pr5.blank.blank
-rw-rw---- 1 daemon daemon 101 Dec 14 15:54 cfA007pr5.blank.blank
-rw-rw-r-- 1 root daemon 0 Dec 14 15:54 errs.ooiXFJZ
-rw-rw-r-- 1 root daemon 0 Dec 15 06:06 errs.HUGqV6T
-rw-rw---- 1 user2 daemon 1078 Dec 15 11:22 dfA008pr5.blank.blank
-rw-rw---- 1 daemon daemon 102 Dec 15 11:22 cfA008pr5.blank.blank
-rw-rw-r-- 1 root daemon 0 Dec 15 11:22 errs.Wpnh4fQ
-rw-r--r-- 1 root daemon 4 Dec 15 11:23 .seq
-rw-rw---- 1 root daemon 1078 Dec 15 11:23 dfA009pr5.blank.blank
-rw-rw---- 1 daemon daemon 101 Dec 15 11:23 cfA009pr5.blank.blank
-rw-rw-r-- 1 root daemon 5 Dec 15 11:23 lock
-rw-rw-r-- 1 root daemon 0 Dec 15 11:23 errs.oSXygXC
The files length 101 have contents like:
Code:
Hpr5.blank.blank
Proot
Cpr5.blank.blank
fdfA006pr5.blank.blank
UdfA006pr5.blank.blank
N/etc/printcap
Code:
Dec 14 11:37:14 pr5 lpd[1368]: mail sent to user root about job <unknown> on printer lp4 (ACCESS)
Dec 14 11:37:14 pr5 lpd[1368]: lp4: job could not be printed (cfA000pr5.blank.blank)
Dec 15 06:06:52 pr5 lpd[705]: lpd startup: logging=0