Setting up a USB Printer for Solaris 10
A few month ago I set up an HP usb printer on Solaris 10. It was not a difficult task but finding out how to do it took some time. Here is the approach, which worked very well for me:
-
Connect the printer, check
/var/adm/messages -
/dev/usb/printer0device should get created automatically, supposing this the first usb printer connected to your computer -
Add the printer:
- A generic command:
$ lpadmin -p your_printer_name -v /dev/usb/printer0 -o banner=never - Command specific for HP930C:
$ lpadmin -p your_printer_name> -o banner=never -v /dev/usb/printer0 -T PS -I postscript -m standard_foomatic -n /root/HP-DeskJet_930C-hpijs.ppd
/usr/lib/lp/model/ppd/system/foomatic/HP - A generic command:
-
Start LP service:
$ /usr/lib/lpsched; but wait SMF is available, so use:$ svcadm enable application/print/server -
enable(1) the printer:
$ /usr/bin/enable your_printer_name -
Let the printer accept(1M) jobs:
$ /usr/sbin/accept your_printer_name -
To check what is going on use lpstat(1):
$ lpstat -aor$ lpstat -r -
Add filter for text file:
$ lpfilter -f a2ps -F /etc/lp/fd/a2ps.fd