IRB Printer

The IRB provides a printing service via CUPS (Common Unix Printing System) for the staff and students of Computer Science.

The printing service gives staff access to all IRB printers; students have access to all public IRB printers.

Print­ing un­der Linux

To send a print job to the university's CUPS server, the local CUPS service must

  • support Kerberos
  • have entered the university's CUPS server
  • the local login to be used for printing must be identical to the IMT login

Firstly, you must ensure that you have a valid Kerberos ticket. If you haven't yet institutionalised Kerberos, you can find information here.

Once you have ensured this, enter the following as a student in the /etc/cups/client.conf file on your computer:

Encryption Required
SSLOptions MinTLS1.2 DenyCBC
TrustOnFirstUse No
ValidateCerts Yes

ServerName cups.cs.uni-paderborn.de:443


As an employee (authorised by membership of the Unix group info-fgs), change the ServerName line to

ServerName cupsmit.cs.uni-paderborn.de:443

If the file does not exist, you can create it.

After saving, your local CUPS service must be restarted. Once the restart is complete, you can print to IRB printers via the Cups server with a valid Kerberos ticket.

Arch Linux problems

The cups package does not work on Arch Linux because CUPS has deprecated Kerberos support and it is no longer compiled with it by default. Alternatively the AUR package cups-gssapi can be used or cups itself can be compiled with --enable-gssapi.

The general print command for printing from the console:

$ lpr -P <printer name> -o <options> <document.ps>

All additional options for CUPS must be appended with -o. Each option must be specified individually with -o. Options differ from printer to printer. Individual options are e.g:

  • Duplex: -o sides=two-sided-long-edge for reflections on the long edge (for portrait format) or o sides=two-sided-short-edge for reflections on the short edge (for landscape format)
  • Landscape format: -o landscape
  • Margin: -o page-left=NN (where left can also be replaced by right, top, bottom, "NN" stands for dots (1 dot = 0.35cm))
  • Wrap overlong lines: -owrap=true
  • own fan selection: -o InputSlot=Lower (unfortunately this is a bit more complicated as each printer model has its own designations for different subject areas).
  • Setresolution (DPI): -o ColourModel -o Resolution=600dpi This can be used to set the print quality of the printout

See also lpr(1) in your man pages and the CUPS documentation.

Printing PDF files

PDF files should be converted to Postscript files before printing.

This can be achieved via CLI using the following command:

$ pdf2ps [PDF file] [PS file]

If PDF files are sent directly to the printer, the printer itself must be able to process them (otherwise there will be pages of jumbled characters). In addition, options such as duplex printing, etc. are not always evaluated correctly.

Examples:

Print text file with approx. 1cm left margin and automatic line break:

$ lpr -P compinet -o page-left=70 -o wrap=true file.txt

Print PDF file:

$ pdf2ps file.pdf - | lpr -P compinet

The use of such options is unfortunately somewhat cumbersome, so for more difficult projects it is recommended to use a graphical lpr replacement, such as kprinter (see below).

General options such as manual subject area and slide can be predefined by instances.

Print­ing un­der Win­dows

  1. To add a new printer from a CUPS server, open the Start menu and enter"\\cupsad.cs.uni-paderborn University.de" in the lower field ("Search programs/files") ( do not use the short form \\cupsad.cs.upb.de"!), on older Windows systems you must first select "Run".
  2. If you cannot access \\cupsad.cs.uni-paderborn University.de, please start your VPN connection. If you are asked for a login, use your IMT user name preceded by ad\ and your normal password. Now double-click on the desired printer.
  3. If you receive a message that no driver was found in the network, confirm the dialogue with "OK" and select a suitable driver manually.
  4. You can find the exact printer type here. First select the manufacturer (usually Kyocera or HP) in the left-hand column and the printer in the right-hand column. If the printer is not in the list, try selecting a "similar" printer (e.g. "Kyocera FS-3900DN" for Kyocera FS-3830N)
  5. Confirm with "OK". The printer is now available and ready for use.

Prerequisites

  • In order to print as a student, you must purchase printer pages from the Student Council in E1.311.

Printing via Cups

  • Printing is done via the IRB's cups server.
  • If a printer name exists more than once in the printer list, please use the entry with the highest number in the name.

Installation

  • Before a printer can be used, a script must first be executed. This can be found under:
    • Start menu -> All programmes -> printer CUPSAD ....
  • The printer is then available and can be selected in the usual print dialogues.

Print­ing un­der Ma­cOS

To send a print job to the university's CUPS server, the local CUPS service must

  • support Kerberos
  • have entered the university's CUPS server
  • the local login to be used for printing must be identical to the IMT login

Firstly, you must ensure that you have a valid Kerberos ticket. If you haven't yet institutionalised Kerberos, you can find information here.

Once you have ensured this, enter the following as a student in the /etc/cups/client.conf file on your computer:

Encryption Required
SSLOptions MinTLS1.2 DenyCBC
TrustOnFirstUse No
ValidateCerts Yes

ServerName cups.cs.uni-paderborn.de:443


As an employee (authorised by membership of the Unix group info-fgs), change the ServerName line to

ServerName cupsmit.cs.uni-paderborn.de:443

If the file does not exist, you can create it.

After saving, your local CUPS service must be restarted. Once the restart is complete, you can print to IRB printers via the Cups server with a valid Kerberos ticket.

Arch Linux problems

The cups package does not work on Arch Linux because CUPS has deprecated Kerberos support and it is no longer compiled with it by default. Alternatively the AUR package cups-gssapi can be used or cups itself can be compiled with --enable-gssapi.

Installing the driver

Before you can install a printer, you must download and install the appropriate driver on your Mac.

You can find these for Kyocera at https://www.kyoceradocumentsolutions.de/de/support/downloads.html

Adding a printer

  • Add the printer in the system settings under "Printers & scanners".
  • To use the "Advanced" tab in the new "Add printer" window in the tab panel, click in the tab panel with the "Control" button pressed and select "Customise menu bar". Drag the "Advanced" icon from the new window into the tab panel
  • The best way to print at the moment is via the "HP Jetdirect - Socket" protocol. Simply select this under "Protocol"
  • Enter the selected printer name in the address line and add ":9100". For example, ¨lw-f2-520-color:9100¨. If everything is entered correctly and a connection is established, the printer name and the driver used are automatically selected. Now just confirm by clicking on "Add".
  • If the correct driver is not selected in the "Use" dropdown, select "Select software" here

Since the OS update to macOS 10.13.2 there have been problems between Apple devices and all common KYOCERA printers.
The error pattern is varied and occurs irregularly. KYOCERA is already aware of this problem and driver updates are being made available.

These can be found at:

www.kyoceradocumentsolutions.de/index/serviceworld/downloadcenter.html
Simply install the latest driver and everything should work as usual again.

Attention!

For some devices, the desired printer must be removed once and added again.

The general print command for printing from the console:

$ lpr -P <printer name> -o <options> <document.ps>

All additional options for CUPS must be appended with -o. Each option must be specified individually with -o. Options differ from printer to printer. Individual options are e.g:

  • Duplex: -o sides=two-sided-long-edge for reflections on the long edge (for portrait format) or o sides=two-sided-short-edge for reflections on the short edge (for landscape format)
  • Landscape format: -o landscape
  • Margin: -o page-left=NN (where left can also be replaced by right, top, bottom, "NN" stands for dots (1 dot = 0.35cm))
  • Wrap overlong lines: -owrap=true
  • own fan selection: -o InputSlot=Lower (unfortunately this is a bit more complicated as each printer model has its own designations for different subject areas).
  • Setresolution (DPI): -o ColourModel -o Resolution=600dpi This can be used to set the print quality of the printout

See also lpr(1) in your man pages and the CUPS documentation.

Printing PDF files

PDF files should be converted to Postscript files before printing.

This can be achieved via CLI using the following command:

$ pdf2ps [PDF file] [PS file]

If PDF files are sent directly to the printer, the printer itself must be able to process them (otherwise there will be pages of jumbled characters). In addition, options such as duplex printing, etc. are not always evaluated correctly.

Example:

Print text file with approx. 1cm left margin and automatic line break:

$ lpr -Pcompinet -o page-left=70 -o wrap=true file.txt

Print PDF file:

$ pdf2ps file.pdf - | lpr -Pcompinet

The use of such options is unfortunately somewhat cumbersome, so for more difficult projects it is recommended to use a graphical lpr replacement, such as kprinter (see below).

General options such as manual subject area and slide can be predefined by instances.