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:

  1. Connect the printer, check /var/adm/messages
  2. /dev/usb/printer0 device should get created automatically, supposing this the first usb printer connected to your computer
  3. 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
    The PPD files can be found at: /usr/lib/lp/model/ppd/system/foomatic/HP
  4. Start LP service: $ /usr/lib/lpsched; but wait SMF is available, so use: $ svcadm enable application/print/server
  5. enable(1) the printer: $ /usr/bin/enable your_printer_name
  6. Let the printer accept(1M) jobs: $ /usr/sbin/accept your_printer_name
  7. To check what is going on use lpstat(1): $ lpstat -a or $ lpstat -r
  8. Add filter for text file: $ lpfilter -f a2ps -F /etc/lp/fd/a2ps.fd
Check the following links if you want to learn more:

Comments:

Post a Comment:
Comments are closed for this entry.

This blog copyright 2008 by lr