Quick reference guide Scientific Linux for DESY

Previous Contents Index Next 

7. Printing

At DESY the printing environment is mostly based on the CUPS package. In Hamburg LPRng is still in use and there the commands to communicate with LPRng print servers have been renamed to slpr, slpq etc. For details concerning printing at DESY the documentation on the web should be consulted.

a2ps [global_option[s]] [[file_option1] [file1]] [[file_option2] [file2]] ... F
Formats an ASCII file for printing on a postscript printer. The most useful global_options to change the default behavior are:
-B Don't print page headers
-c cut long lines instead of folding them
-o file Print output to file (default is to $PRINTER)
-P printer Send output to printer
The most useful file_options to change the default behavior are:
-1 Print only one page per physical page (default 2)
-b text Use text instead of the file name in the page header
--borders=no Don't print page surrounding borders
-fn Changes font size to n (default 9 for portrait, 6.4 for landscape mode)
-Ln Print n lines per page. The font size is scaled accordingly
-R Print files in portrait mode
-r Print files in landscape mode
--prologue=color generate color postscript
 
cancel [job_ID[s] or printer_name[s]]
Cancel requests with given job_ID[s] or cancel the currently queued job[s] on the given printer[s]. The job_ID[s] can be obtained by lpstat -o.  
ksnapshot
The KDE Screenshot Utility lets you grab arbitrary rectangular regions, windows or the whole screen and write its contents to a file or print it. The alternate gnome-screenshot is missing the immediate print function.  
lp [-dprinter] [-o filter_options] [file[s]] f
Send requests to printer or to the default printer. The following filter_options are useful:
sides=one-sided simplex
sides=two-sided-short-edge for documents in landscape format
media=Transparency for printing transparencies
number-up=number multiple pages per sheet (1,2,4,6,9,16)
PageSize=A3 printing A3 format
Documentation
lpq [-l] [-Pprinter] [job_ID[s]] [username[s]]
Show the print spool queue (with -l in long format) (for printer). See also lpstat.  
lpr [-Pprinter] [-ofilter_options] [file[s]] f
Send requests to printer or to the default printer. For a list of filter options see lp above. Documentation
lpstat[-a] [-o] [-p printer[s]]
Show the print spool queue (for printer[s]). Option -o shows a list of all active jobs. With option -a all available printer queues are displayed. In Hamburg only printer queues belonging to a given (CUPS) group are displayed. To see there all printer queues please use slpstat[-a].  
slpq [-l] [-Pprinter] [job_ID[s]] [username[s]] H
Show the LPRng print spool queue (with -l in long format) (for printer). See also lpq and lpstat.  
slpr [-Pprinter] [-Zfilter_options] [file[s]] fH
Send requests to printer or to the default printer using LPRng.  
slprm [-Pprinter] [-] [job_ID[s]] H
Remove jobs from an LPRng printer queue. To remove all your jobs use the - option.  
slpstat[-a] [-o] [-p printer[s]] H
Show the LPRng print spool queue (for printer[s]). Option -o shows a list of all active jobs. With option -a all available printer queues are displayed.  

Previous Contents Index Next