Linux

This guide shows how to set up an ETH print service printer on Linux. The names of the D-INFK printers and their location can be found in this list.

Do not use the CUPS Print Test Page feature, as this will not use the correct authentication method. Instead, use the native print function on your Linux system.

On CentOS8 and RHEL8 you will need to install the RPM package samba-krb5-printing.x86_64. On Debian and Ubuntu you might need to install the DEB packages smbclient and python3-smbc.

Driver

Download the latest multibrand driver for the printers here multibrand-X.ppd .

For card-ethz and card-stud please use also this multibrand driver.

Setup

Open the following URL in your web browser of choice. It will open the local printer configuration interface.

http://localhost:631/

Step 1 Go to the Administration tab and click Add Printer to add a new printer. In case you have to authenticate yourself to get on this page, use your local system root credentials or your account with sudoers permissions.

Step 2 Choose Windows Printer via SAMBA under Other Network Printers.

Step 3 Set SMB Printer to smb://pia01.ethz.ch/ followed by the printer name.

Step 4 Edit the printer's name, description and location, then click Continue to go to the next step.

Step 5 Under Or Provide a PPD File choose driver file from your hard disk that you have downloaded earlier.

Step 6
Set the default options for the printer.

Click Set Default Options to finish the installation.

Authentication

Enter the following command in your shell (as root or using sudo) before printing for the first time.
The printer name must be the one you've set previously during the printer installation.
"username,password" is meant literally and is not supposed to be replaced by an actual username and password.
 lpadmin -p <printer-name> -o auth-info-required=username,password 

Screenshot 9 When printing for the first time on this printer, the system will prompt you to enter your credentials. Do this and click Authenticate. Remember to put d\ in front of your username.

Remove Credentials

In case you have entered wrong credentials during the installation process, you can remove them by launching the application Password and Keys.

Step 9 Under Login select the entry that starts with ipp://localhsot:631/printers/ followed by your printer name. You can delete the entry by performing a right-click and selecting Delete. After that, you will be prompted to enter your password again when you print the next time.

Default Printer

Run the following command as root or using sudo to set a default printer: lpadmin -d <printer-name>

Further Instructions

Further instructions by ITS can be found here.

Are these instructions wrong, incomplete or outdated? Are they not helpful?
Please let us know.

Page URL: https://www.isg.inf.ethz.ch/bin/view/Main/HelpPrintingClientSetupLinux
2024-04-27
© 2024 Eidgenössische Technische Hochschule Zürich