Page 1 of 1

GhostBSD support for Virtualbox USB printers?

Posted: Fri Aug 04, 2023 8:49 pm
by Ken E Unix
hi.

Is there any support for host attached USB printers by GhostBSD as a guest?

GhostBSD is 23.06.01 guest

Virtualbox in 7.0.10 under Ubuntu 22.04

I have other VM's running where I can share a USB printer with the guest and am trying to do
the same with GhostBSD 23.06.01 as a guest.

Like Linux does GhostBSD have a lsusb or equal command?

Thanks

Re: GhostBSD support for Virtualbox USB printers?

Posted: Sat Aug 05, 2023 10:13 am
by Ken E Unix
Printing issues with GhostBSD 23.06.01.
After installing pkg hplip and configuring cups 3.23.5 using localhost:631 cups sees printer and can print test page but under GhostBSD can not.
I get:
ken@ghostbsd:~ $ lpstat -d
system default destination: HP_Officejet_4620_series

ken@ghostbsd:~ $ lp tars.list
lpr: lp: unknown printer <<--- unknown?
Is there a pointer somewhere?

ken@ghostbsd:~ $ usbconfig
ugen1.2: <HP Officejet 4620 series> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)

Any help is appreciated...

Re: GhostBSD support for Virtualbox USB printers?

Posted: Sat Aug 05, 2023 11:56 am
by Ken E Unix
Update: After research it was found opposing commands exist in different directories.
Do the following to correct after installing cups and hplip.

$ sudo mv /usr/bin/lp /usr/bin/lp.off
$ sudo mv /usr/bin/lpr /usr/bin/lpr.off
$ sudo mv /usr/bin/lpq /usr/bin/lpq.off
$ sudo mv /usr/bin/lprm /usr/bin/lprm.off

Printing now works correctly: lp file-name

$ lp file-to-print
request id is HP_Officejet_4620_series-2 (1 file(s))
$ lpstat -d
system default destination: HP_Officejet_4620_series

ISSUE RESOLVED...