Contents

  1. Printing with Cups Server ZNCUPS
    1. Network Printers
      1. Overview Public Printers
      2. Additional Information about Multifunctional Devices
    2. Windows Printing
    3. UNIX Printing
    4. Overview of Cups Printing Options on UNIX
    5. Frequently Asked Questions
      1. Which file formats can Cups process ?
      2. Which applications do offer a tight cups integration on a UNIX system ?
      3. How can I select the simplex mode on a duplex printer under UNIX ?
      4. How can I change personal printer specific option settings?
      5. How can I print multiple copies of a document using the CLI?
      6. How can I change the layout of the output pages when using N-Up printing?
      7. I do get printouts sometimes in letter format, why A4 is not the default?
      8. What is the best way to print man pages ?
      9. How can I print utf-8 encoded text?
      10. I'm using psutils (pstops,psnup,psbook). Even though I'm using the option ''sides=two-sided-short-edge'' the output was not arranged in the correct order. What can I do?
      11. I'm using psutils (pstops,psnup,psbook). On the Xerox Color Printer I get wrong output with a different font. What can I do?
      12. Can I change the fontsize when printing ASCII-text?
      13. I can't print the postscript file. What can I do?
      14. I'm using ps2pdf, but the generated pdf file was incomplete. What can I do?
      15. I'm at DESY Hamburg and working on Zeuthen's systems. Is it possible to print on Hamburg printers?
      16. I'm missing the bannerpage when I print from OpenOffice,Firefox (e.g. Indigo pages) or evince, what can I do?
    6. Printing from Linux Notebooks
      1. using cups
        1. use a local cups-daemon
        2. bypassing the local cups configuration
        3. permanent configuration without local cups-daemon
      2. lpr/lp based printing system
    7. Adding a Printer in MacOS
    8. Known Problems using Cups

Printing with Cups Server ZNCUPS

The Common Unix Printing System (CUPS) is the central printing system on all UNIX machines at DESY Zeuthen.

Network Printers

Overview Public Printers

Additional Information about Multifunctional Devices

Windows Printing

/!\ Please note, to increase the number of copies in application (e.g. Word, Adobe Reader, Acrobat DC ...) go to print menu --> click on Properties and change the number there.

UNIX Printing

Overview of Cups Printing Options on UNIX

Printing Options are passed to Cups using the -o Option of lp and lpr:

Option

Meaning

Example

Comment

sides=one-sided

disables duplex printing

lpr -o sides=one-sided testpage.ps

use printer/simplex if supported

sides=two-sided-short-edge

enables duplex printing for landcape pages

lpr -o sides=two-sided-short-edge myfile.gif

sides=two-sided-long-edge

enables duplex printing for portrait pages

lpr -o sides=two-sided-long-edge info.txt

default

page-ranges=RANGE

not the complete document is printed, but only the specified pages

lpr -o page-ranges=1,3-5,7 textfile

only for ASCII-text

number-up=number

places multiple document pages on a single printed page

lpr -o number-up=4 project.pdf

supported are: 1, 2, 4, 6, 9, and 16

Resolution=xxx

changes printers resolution

lpr -o Resolution=600dpi testpage.ps

lpoptions can be used to find out supported Resoltions fo a queue:  lpoptions -p queuename -l |grep Resolution 

media=Transparency

prints on transparent Media

lpr -o media=Transparency talk.ps

use printer/transp if supported

PageSize=A3

prints on DIN A3 paper

lpr -o PageSize=A3 picture.gif

use printer/A3 if supported

scaling=number

The scaling value is a number from 1 to 800 specifying the size in relation to the page (not the image.)

lpr -o scaling=100 pict.gif

can be used for image formats (GIF,JPEG,TIFF,...)

landscape

rotate the page 90 degrees to print in landscape orientation

lpr -o landscape picture.jpg

orientation-requested=N

rotates the page depending on the value of N

lpr -o orientation-requested=4 file.ps

possible values: 3: no rotation, 4: 90 degrees, 5: 270 degrees, 6: 180 degrees

job-sheets=none

do not print bannerpages

lpr -o job-sheets=none file.ps

cpi=NUMBER

scale font to NUMBER characters per inch

lpr -o cpi=9 textfile

only for ASCII-text

lpi=NUMBER

scale font to NUMBER lines per inch

lpr -o lpi=9 textfile

only for ASCII-text, this overwrites the cpi-option

For more options and additional information see the "Cups Commandline and Options Manual"

Frequently Asked Questions

Which file formats can Cups process ?

Which applications do offer a tight cups integration on a UNIX system ?

How can I select the simplex mode on a duplex printer under UNIX ?

How can I change personal printer specific option settings?

How can I print multiple copies of a document using the CLI?

Copies are not collated by default. Use the -o Collate=True option to get collated copies:

How can I change the layout of the output pages when using N-Up printing?

In order to change the borders around each page, use the -o page-border=value option. Supported borders are:

Example: lp -o number-up=4 -o page-border=double myfile

In order to change the arrangement of the pages on each output page, use the -o number-up-layout=value option. Possible values are:

Explanation: The default layout is lrtb(Left to right, top to bottom). This means: using a number-up of 4, the first page will be printed on the top-left of the outputpage, the second page will be printed on the top-right, the third page will be printed on the bottem-left and the fourth page on the bottom-right of the outputpage.

Example: lp -o number-up=4 -o number-up-layout=btrl myfile

I do get printouts sometimes in letter format, why A4 is not the default?

What is the best way to print man pages ?

To print man pages use: man -t <man-doc> | lp ...

How can I print utf-8 encoded text?

To print iso8859-1 characters encoded in utf-8, just print the file as usual. Cups will select the correct filter automatically. If you want to print non-iso8859-1 characters (e.g. Cyrillic or Chinese characters):

I'm using psutils (pstops,psnup,psbook). Even though I'm using the option ''sides=two-sided-short-edge'' the output was not arranged in the correct order. What can I do?

I'm using psutils (pstops,psnup,psbook). On the Xerox Color Printer I get wrong output with a different font. What can I do?

Can I change the fontsize when printing ASCII-text?

YES! The size of ASCII-text can be changed by using the cpi (characters per inch) or lpi (lines per inch) options. Unlike Cups-default, the cpi -option will be ignored if both options are present. Default is a value of 80 characters per virtual line in portrait, and 113 characters per virtual line in landscape mode. This means a value of round about 9.7 characters per inch.

I can't print the postscript file. What can I do?

I'm using ps2pdf, but the generated pdf file was incomplete. What can I do?

I'm at DESY Hamburg and working on Zeuthen's systems. Is it possible to print on Hamburg printers?

I'm missing the bannerpage when I print from OpenOffice,Firefox (e.g. Indigo pages) or evince, what can I do?

Printing from Linux Notebooks

using cups

Use one of the following two methods to let your local cups communicate with our server. Afterwards you can use cups as described above.

use a local cups-daemon

bypassing the local cups configuration

permanent configuration without local cups-daemon

If you have no local cupsd running, just change the Servername directive in /etc/cups/client.conf to zncups.zeuthen.desy.de

lpr/lp based printing system

Adding a Printer in MacOS

Known Problems using Cups

Printing_with_Cups (last edited 2017-09-27 08:18:20 by ManuelaBrehmer)