articles:cupsprinting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
articles:cupsprinting [2009/02/11 12:28] – timallen | articles:cupsprinting [2009/02/16 12:13] – timallen | ||
---|---|---|---|
Line 71: | Line 71: | ||
Using Samba, the CUPS Windows Postscript driver allows for " | Using Samba, the CUPS Windows Postscript driver allows for " | ||
- | Obtain the tarball from the CUPS website, extract and build. '' | + | Obtain the tarball from the CUPS website, extract and build. '' |
aptitude install libcupsys2-dev smbclient | aptitude install libcupsys2-dev smbclient | ||
cd /tmp | cd /tmp | ||
Line 233: | Line 234: | ||
BrowseAllow @LOCAL | BrowseAllow @LOCAL | ||
BrowsePoll server.domain.com | BrowsePoll server.domain.com | ||
+ | |||
+ | ===== Printing Text Files ===== | ||
+ | Print options can be specified on the '' | ||
+ | |||
+ | lpr -pLaserjet-6P -o cpi=11.5 -o lpi=6 -o page-top=33 [file] | ||
+ | |||
+ | Alternatively, | ||
+ | |||
+ | lpoptions -pLaserjet-6P -o cpi=11.5 -o lpi=6 -o page-top=33 | ||
+ | |||
+ | ==== Printer Instances ==== | ||
+ | Multiple options set can be set up using printer " | ||
+ | |||
+ | To set a printer instance, use: | ||
+ | |||
+ | lpoptions -pLaserjet-6P/ | ||
+ | |||
+ | To delete an instance: | ||
+ | |||
+ | lpoptions -xLaserjet-6P/ | ||
+ | |||
+ | Printer instances set by root are global. | ||
+ | |||
+ | Note that printer instances are not presented on the CUPS web interface. | ||
+ | |||
+ | === Printing Text Files From Windows Command Line === | ||
+ | There are a number of obstacles to printing with specific option sets through Samba with CUPS: | ||
+ | |||
+ | - Samba appears to not support printer instances via the CUPS API. They simply do not appear as listed printers. Furthermore, | ||
+ | - Any printer options set with '' | ||
+ | - It may be possible to define a special printer, printing = sysv, and define a specific '' | ||
+ | |||
+ | One solution is to give up on Samba and simply pipe the file to '' | ||
+ | |||
+ | type file | ssh cupsserver lpr -pLaserjet-6P -o cpi=11.5 -o lpi=6 -o page-top=33 | ||
+ | |||
articles/cupsprinting.txt · Last modified: 2010/02/08 08:54 by timallen