Printing management (command line cups)
Hello!
The aim: Using cups to configure my printer (which I call as my_canon) by command line only. The suitable .ppd file is /usr/share/cups/model/C/bjc-7000.ppd (there is no .gz appended there since I've decompressed the former bjc-7000.ppd.gz file, just in case). What went wrong After introducing the printer (according to CUPS administrator's manual <http://www.cups.org/doc-1.1/sam.html>) I asked for a test printing: Code:
usr/bin/lpr -p my_canon /usr/share/cups/data/testprint.ps Code:
lpr: error - unable to access "my_canon" - No such file or directory Step1: making sure cups daemon is running Code:
# /etc/rc.d/rc.cups start Code:
$ /usr/sbin/lpinfo -v | less Code:
# /usr/sbin/lpadmin -p my_canon -m C/bjc-7000.ppd -v usb:/dev/usb/lp0 -E Code:
$ /usr/bin/lpstat -v Code:
# /usr/sbin/lpc status Code:
# /usr/bin/lpstat -a my_canon Thanks! |
Take a look at lpr's man page, to select the destination printer you've to use -P switch, not -p, like:
Code:
/usr/bin/lpr -P my_canon /usr/share/cups/data/testprint.ps |
Quote:
Grateful thanks! |
this is how i configure my parallel port HPDJ840 printer, this should work for most all parallel port printers...
edit /etc/rc.d/rc.modules and uncomment the two following lines: (or run em in a term as root (su)) /sbin/modprobe parport_pc /sbin/modprobe lp also make sure cupsd is running as a service. then open your favorite web browser and from within your browser you can configure cups to your particular printer at this address http://localhost:631 name: Printer Location: Local Printer address: lpd://parallel:/dev/lp0 or... DeviceURI: parallel:/dev/lp0 - - - - - - - hope this helps |
All times are GMT -5. The time now is 09:12 AM. |