# mkdir /etc/lp/interface/model.orig (if you don't have it) # chown lp:bin /etc/lp/interface/model.orig # chmod 755 /etc/lp/interface/model.origThen go ahead and setup your printer with 'lpadmin' after you shutdown the scheduler. Nobody can print on this system while the scheduler is down, so it may be necessary to schedule print down on heavily used print servers.
# /usr/sbin/lpshut # /usr/sbin/lpadmin -p<queue_name> -v/dev/null -m<interface_modelscript>
Verify that the interface model scripts for JetAdmin printers are in the correct directories:
# cd /var/spool/lp/interface # mv <printer_name> model.orig/<printer_name> # cp /opt/hpnpl/sh/hpnp.model <printer_name> # chown lp:lp <printer_name> model.orig/<printer_name> # chmod 755 <printer_name> model.orig/<printer_name>
# accept <printer_name> # enable <printer_name> # /usr/sbin/lpsched
# lp -d<queue_name> <file_to_print>To test if the connection to the printer can be establish without sending a print job through the spooler use "hpnpg" command:
# /opt/hpnpl/bin/hpnpf -x <printer_name_or_ip> -l <log_file_name> <file_name_to_print>
0 comments:
Post a Comment