El 21/9/25 a las 15:59, Greg Troxel escribió:
Ramiro Aceves <ea1abz%gmail.com@localhost> writes:
I was trying to make a printing CUPS server with my Raspberry Pi 4
computer. I installed CUPS and setup it enabling the daemons:
netbsd-raspa4# tail -n 6 /etc/rc.conf
#CUPS
cupsd=YES
cups_browsed=YES
snmpd=yes
snmptrapd=YES
#fin CUPS
I added my user to the lp group.
netbsd-raspa4# groups ramiro
users wheel lp
netbsd-raspa4#
cups is hard and you're going to have to dig in to the upstream docs,
debug logs, etc.
I added my HP Deskjet 1400 to the printers CUPS localhost:631 WEB
admin page with hplip driver. I sent a print test page and it stucked
there waiting for "printer to be ready message" or something like
that as it was in my native Spanish language.
Often people install cups-filters.
I think hllip wants to use ugen, not ulpt. Thus you might try
disabling ulpt in boot -c, or removing it from your kernel. I'm doing
that with Laserjet 1310 (which was a really great printer in 2006, and
to HP's credit, still prints today).
Oh yeah! Thanks Greg. I disabled ulpt driver at the boot screen with
userconf disable ulpt (conecting a HDMI monitor).
netbsd-raspa4# dmesg | grep ulp
[ 1,000000] [ 261,000000] ulpt* disabled
netbsd-raspa4#
Now the printer was detected by ugen driver:
netbsd-raspa4# dmesg | grep ugen
[ 3,843406] ugen0 at uhub2 port 3
[ 3,843406] ugen0: HP (0x03f0) Deskjet D1400 series (0x7904), rev
2.00/1.00, addr 4
netbsd-raspa4#
I changed /dev/ugen permisions to 666, just crazy, I must figure out
what are the right permissions and ownership.
netbsd-raspa4# ls -lh /dev/ugen0.*
crw-rw-rw- 1 root wheel 72, 0 Jun 30 2024 /dev/ugen0.00
crw-rw-rw- 1 root wheel 72, 1 Sep 21 16:35 /dev/ugen0.01
crw-rw-rw- 1 root wheel 72, 2 Jun 30 2024 /dev/ugen0.02
crw-rw-rw- 1 root wheel 72, 3 Jun 30 2024 /dev/ugen0.03
crw-rw-rw- 1 root wheel 72, 4 Jun 30 2024 /dev/ugen0.04
crw-rw-rw- 1 root wheel 72, 5 Jun 30 2024 /dev/ugen0.05
crw-rw-rw- 1 root wheel 72, 6 Jun 30 2024 /dev/ugen0.06
crw-rw-rw- 1 root wheel 72, 7 Jun 30 2024 /dev/ugen0.07
crw-rw-rw- 1 root wheel 72, 8 Jun 30 2024 /dev/ugen0.08
crw-rw-rw- 1 root wheel 72, 9 Jun 30 2024 /dev/ugen0.09
crw-rw-rw- 1 root wheel 72, 10 Jun 30 2024 /dev/ugen0.10
crw-rw-rw- 1 root wheel 72, 11 Jun 30 2024 /dev/ugen0.11
crw-rw-rw- 1 root wheel 72, 12 Jun 30 2024 /dev/ugen0.12
crw-rw-rw- 1 root wheel 72, 13 Jun 30 2024 /dev/ugen0.13
crw-rw-rw- 1 root wheel 72, 14 Jun 30 2024 /dev/ugen0.14
crw-rw-rw- 1 root wheel 72, 15 Jun 30 2024 /dev/ugen0.15
netbsd-raspa4#
Now CUPS detects the printer and I have added it. I have been able to
print a test page!
Now I have to disable ulpt at boot for ever. I see that my NetBSD on the
Rpi4 does not have any boot.cfg file. I will try to figure out how to
place a minimal boot.cfg file on / to disable the ulpt driver (I do not
know whether it will work on the RPI4...) Hope not to break something.
Thanks so much.
Ramiro.