translated by Google

Machine-translated page for increased accessibility for English questioners.

Press on FI

This article describes the printing possibilities of FI staff and doctoral students. Students can take advantage Paid SUPO printing in the hall . To print outside FI, go to other printers at MU .

For a list of printers that you have print enabled on, see Fadmin → My Account → Overview → Printers . If you need access to other printers, write to unix@fi.muni.cz .

For instructions on printing from your operating system, see one of the following sections:

List of printers

Name Location Hardware Comment CUPS Samba
copy2a block A, 2nd floor, kitchen Triumph-Adler 4505ci multifunction color printer / copier copy2a copy2a
lj2a block A, 2nd floor, kitchen HP LaserJet 600 M603 lj2a lj2a
copy3a block A, 3rd floor, kitchen Triumph-Adler 4505ci multifunction color printer / copier copy3a copy3a
lj3a block A, 3rd floor, kitchen HP LaserJet 600 M603 lj3a lj3a
lj-a302 block A, 3rd floor, A302, LaSArIS HP LaserJet 600 M603 lj-a302 lj-a302
copy4a block A, 4th floor, kitchen Triumph-Adler 4505ci multifunction color printer / copier copy4a copy4a
lj4a block A, 4th floor, kitchen HP LaserJet 600 M603 lj4a lj4a
lj-b010 block B, ground floor, building management OKI C531dn lj-b010 lj-b010
lj2b block B, 2nd floor, kitchen HP LaserJet P3015 lj2b lj2b
lj3b block B, 3rd floor, kitchen HP LaserJet P4515x lj3b lj3b
copy4b block B, 4th floor Triumph-Adler 5007ci multifunction color printer / copier (copy4b-a3 = print on A3, * -g = shades of gray) copy4b copy4b
lj4p block B, 4th floor, by the copier HP LaserJet P4015x lj4p lj4p
copy5b block B, 5th floor Triumph-Adler 5007ci multifunction color printer / copier (copy5b-a3 = print on A3, * -g = shades of gray) copy5b copy5b
copy4c block C, 4th floor Triumph-Adler 4505ci multifunction color printer / copier (copy4c-a3 = print on A3) copy4c copy4c
lj4c block C, 4th floor, by the copier HP LaserJet 600 M603 lj4c lj4c
copy5c block C, 5th floor Triumph-Adler 4505ci multifunction color printer / copier copy5c copy5c
lj5c block C, 5th floor, by the copier HP LaserJet 600 M603 lj5c lj5c

Printing from Windows

There are two ways to print:

  • printer sharing via Samba - can also be printed on WiFi
  • CUPS print server - need to have the same login on the PC as the faculty, only when connected with an Ethernet cable

Sharing printers via Samba

Download the installer from list of printers , the "Samba" column. Startup adds a new printer and installs the appropriate drivers.

You can also print to the printer installed in this way from the WiFi network Eduroam or wlan_fi.

CUPS print server

  • You must have the same login on the machine you are printing from as your faculty.
  • The machine must be connected to the network with an Ethernet cable and printing must be enabled. If you want to enable printing from your machine, type at unix@fi.muni.cz .
  • Download the installer from list of printers , column "CUPS". Startup adds a new printer and installs the appropriate drivers.

Note: Do not confuse the login with the so-called display name, which is displayed in the menu, for example Start . You can leave this unchanged.

To change the login name (login) perform the following steps + restart the PC:

  • Through the GUI: Right-click on the desktop Tento Počítač | My Computer | This PC → spravovat | manage → Lokální uživatelé a skupiny | Local Users and Groups → Uživatelé | Users → right to the given login and Přejmenovat | Rename
  • Through the command line with admin rights: wmic useraccount where name='AktuálníLogin' rename NovýLogin
Add a printer manually

During the installation, it is necessary to install the printer drivers yourself, according to the specific type of printer, see sections List of printers .

Start → Devices and Printers → Add a Printer → Add a network, wireless or Bluetooth printer → The printer that I want isn't listed → Select a shared printer by name (Location and naming may vary slightly in different versions of Windows). And enter in the box for the printer name http://print.fi.muni.cz:631/printers/ and the name of the printer, e.g. lj4b or lj5c . For example, the resulting string might look like this: http://print.fi.muni.cz:631/printers/lj3b .

Print from macOS

There are two ways to print:

  • printing via Samba - can also be printed on WiFi
  • using IPP (Internet Printing Protocol) - the need to have the same login on the PC as the faculty, only when connected by Ethernet cable

Printing via Samba

  1. System Preferences → Printers → Add Printer ( + ), -> Advanced (right - click between toolbar icons - for example, between IP and Windows , select upravit panel nástrojů and drag there Pokročilé )

  2. The printer settings are as follows:

    • type: Windows printer via spoolss
    • device: jiné zařízení
    • URL: smb://print.fi.muni.cz/lj3b-duplex
    • Fill in the Name and Location separately
    • Download the appropriate driver according to the printer hardware, or try to select Generic Postscript Printer , it should also usually work.
  3. Then just add the printer. In the case of a duplex queue, it is necessary to select after entering and confirming this data Duplex Printing Unit .
  4. The first time you print, the authentication dialog should pop up, where you need to enter the faculty login and faculty password. They can be stored in a keychain, then it will no longer require authentication every time you print.

Internet Printing Protocol (IPP) printing

  • You must have the same login on the machine you are printing from as your faculty.
  • The machine must be connected to the network with an Ethernet cable and printing must be enabled. If you want to enable printing from your machine, type at unix@fi.muni.cz .

You can add a new printer via System Preferences → Print & Scan and in the window that appears below the list of existing printers, create another with the plus button. Then you need to fill in the configuration in the IP card, for example for lj3b-duplex:

  • Address: print.fi.muni.cz
  • Protocol: IPP
  • Queue: printers / lj3b-duplex
  • Name: Print lj3b duplex
  • Use: Generic PostScript Printer

In the case of a duplex queue, it is necessary to select after entering and confirming this data Duplex Printing Unit .

Printing from Linux

You can print in the following ways:

  • using pure IPP (Internet Printing Protocol) - the need to have the same login on the PC as the faculty, only when connected by Ethernet cable
  • IPP + Kerberos - need to set up Kerberos and use kinit ; can also be printed on WiFi

Internet Printing Protocol (IPP) printing

  • You must have the same login on the machine you are printing from as your faculty.
  • The machine must be connected to the network with an Ethernet cable and printing must be enabled. If you want to enable printing from your machine, type at unix@fi.muni.cz .

It is necessary to have a printing system installed CUPS . After installing CUPS it is needed to file /etc/cups/client.conf add (or edit an existing) item on a separate line ServerName :

ServerName print.fi.muni.cz

Print jobs must be sent from a user account whose login is the same as your faculty login. Therefore, we generally recommend working under an account with a faculty login.

In other cases, printing can alternatively be done by creating an auxiliary account with a faculty login and then run the programs from which to print from the command line, either via gksudo :

mujlogin$ gksudo -u xlogin libreoffice &

or if you have an SSH server installed and working on your machine, using ssh :

mujlogin$ ssh -CY xlogin@localhost
xlogin$ libreoffice &

IPP + Kerberos printing

It is necessary to have a printing system installed CUPS . After installing CUPS it is needed to file /etc/cups/client.conf add (or edit an existing) item on a separate line ServerName :

ServerName print.fi.muni.cz

If you have previously used pure IPP printing, you must cancel the printing permission from your machine, otherwise Kerberos will not try to use it at all. Send the request to unix@fi.muni.cz .

Next, set up Kerberos. Install basic support on Ubuntu:

# apt install krb5-user

or on Fedora / CentOS:

# yum install krb5-workstation

and configure the faculty domain (or realm):

$ cat /etc/krb5.conf
[libdefaults]
        default_realm = FI.MUNI.CZ
…
[realms]
…
        FI.MUNI.CZ = {
                kdc = krb.fi.muni.cz
                kdc = krb1.fi.muni.cz
                default_domain = fi.muni.cz
        }
…
[domain_realm]
…
        .fi.muni.cz = FI.MUNI.CZ
        fi.muni.cz = FI.MUNI.CZ

Before accessing the printing system, you must obtain a Kerberos ticket on the command line by entering the command kinit . You authenticate with your faculty login (in our example xlogin ) and the faculty motto:

$ kinit xlogin
Password for xlogin@FI.MUNI.CZ: 

The ticket obtained in this way will last you about 24 hours, then you have to authenticate again.

Printing should now work from both graphics applications and the command line.

Print from the command line

Basic commands:

  • Printing: lpr -Ptiskárna soubor1 soubor2 ...
  • Print queue contents list: lpq -Ptiskárna
  • To cancel a print job: lprm -Ptiskárna identifikace_úlohy

Example:

anxur$ lpr -Plj2b soubor.pdf
anxur$ lpq -Plj2b
lj2b is ready and printing
Rank    Owner   Job     File(s)                         Total Size
active  xlogin  224     soubor.pdf                      1024 bytes
anxur$ lprm -Plj2b 224

In more detail about lpr (individual parameters lpr it is usually possible to enter it at once in one command):

  • Enforce paper size (see also tips below): lpr -o media=a5 soubor
  • Force duplex printing (rotate over the longer side of the sheet): lpr -o sides=two-sided-long-edge soubor
  • Force duplex printing (rotate over the shorter side of the sheet): lpr -o sides=two-sided-short-edge soubor
  • More (reduced) pages of a document per page: lpr -o number-up=4 soubor
  • Print in three copies: lpr -#3 soubor
  • ... a complete list of generally applicable options can be found here

Printers also provide model-specific parameters. Their list can be found by the command lpoptions -l -p copy2b :

LPOptionName/LP Option Description: *DefaultValue AnotherValue YetAnotherValue

and then use:

lpr -o LPOptionName=AnotherValue file.pdf

Tips for printing from Linux

Print from Aisa or Anxura

If printing does not work for you (because the Kerberos ticket has expired, or you have logged in using a key and not a password), you need to enter the command kinit and enter the password.

Automatic stapling of sheets when printing

The corresponding parameter lpr are for Triumph-Adler 4505ci

-o KCStaple=Upperleft   # lowercase l
-o KCStaple=UpperRight  # actually results in LowerLeft
-o KCStaple=Ćenter

and for the Triumph-Adler 5007ci

-o Stpl=Rear            # means UpperLeft
-o Stpl=Front           # actually results in LowerLeft
-o Stpl=Center

If you print multiple copies using the parameter -#n , it is also necessary to add a parameter -o Collate=true .

Default printer settings

So that you do not have to enter a parameter all the time -Pnázev_tiskarny , you can set the default printer using the command lpoptions -d název_tiskárny . For example, the command lpoptions -d lj4p-duplex sets the default printer to lj4p-duplex.

Raw printing

There is a virtual queue for each printer, through which jobs are sent directly to the printer without intermediate processing by the print server. The name of this queue is derived from the system name of the printer, just add an extension -raw . Alternatively, use a parameter -o raw at lpr . E.g. therefore lpr -Plj2b -o raw soubor.ps whose lpr -Plj2b-raw soubor.ps .

Locales and printing text files

For the correct output of text files with accents, it is necessary to have locales set appropriately, specifically the LANG and LC_MESSAGES environment variables (according to the CUPS version, the correct setting of both variables is a certainty). For example, for a file containing Czech characters in ISO-8859-2 encoding, the setting is correct:

LANG=cs_CZ.ISO8859-2
LC_MESSAGES=cs_CZ.ISO8859-2

or

LANG=en_US.ISO8859-2
LC_MESSAGES=en_US.ISO8859-2

apod.

Non-functional printing from Mozilla / Firefox browsers; documents intended for "letter" paper format

Especially printers on the 4th floor of building B tend not to print the job entered correctly from Mozilla or Firefox unless you explicitly select the paper size as A4 in the print dialog (Ctrl + P) in the printer settings (Properties). This can also help with non-functional printing of documents that are written in "letter" format. If you are entering a job from a shell, append after the command lpr parameter -o media=a4 .

Problems with psutils

If you want to print multiple pages on one, do not use psnup but use the parameter -o number-up=počet . Program psnup does not generate correct Postscript and you may encounter problems with subsequent duplex printing. If for some reason already Postscript which passed psnup you have, so you can try to convert it with a program ps2ps (available eg on aise in module gs ) to the correct Postscript or ps2pdf on PDF.

If converting with help ps2ps will generate a document that is unsightly from the original, you can try to fix the original Postscript with the following command (file names vstupni.ps and vystupni.ps replace with appropriate names):

$ sed 's/^%%BeginProcSet/%%Page: 1/;/^%%EndProcSet/d' vstupni.ps >
vystupni.ps
Print A3 on copy4b

When printing A3 documents on the general queues of these printers, printing may remain waiting for the correct paper tray to be selected on the display because those printers cannot automatically select / change the tray to A3 according to the size of the printed document.

There are several ways to solve this problem: you can use the -a3 printer queue where the correct tray is set, or you can manually set in the print dialog in addition to A3 paper size using the "Cassette 2" tray. In the case of printing, the A3 queue can be used analogously or the following switches can be specified:

-o media=a3 -o InputSlot=PF730B
Problems with Duplex Landscape Printing

For some printers (such as copy5c, copy2a), when printing some Landscape PDF / PS documents (such as IS attendance lists), the contents of all pages are printed on both sides, starting with the second, rotated ninety degrees from the paper media, which also truncates the print. The problem can be circumvented by modifying the PS document with Perl script psmangle.pl . If you want to print a PDF document, you must first apply a pdf2ps tool to it.

This problem does not affect single-sided or double-sided portrait printing. It also does not apply to printing via IS, where the correction is applied automatically.

Booklet printing

Thanks to the presence of a finisher, printers are the most suitable for this task copy4b and copy5b . Example:

anxur$ lpr -Pcopy4b -o PageSize=a4 -o Duplex=DuplexNoTumble \
    -o Collate=true -o KCBooklet=Left -o Fold=True -o Stpl=Center brochure.pdf

If the PDF pages are A5 in size, A4 sheets (and analogously for A4) are used for printing. We do not recommend using the switch if you need to print multiple copies -#n but send multiple identical print jobs sequentially.