Printing with Linux

The Data Center provides copiers all over campus, which may also be used for printing and scanning. If you send a print request to a Data Center printer you can print it on all copiers on campus. You can find a tutorial on how to use the printers here.

This tutorial shows how to set up the Data Center printer on Linux.


Install packages

You need the following packages.:

  • cups
  • foomatic-db-engine
  • foomatic-db-compressed-ppds

These packages come pre installed on most distributions. Install them if necessary.

Graphical set up

Step 1: open your printer settings

Open your printer settings by visiting localhost:631/admin in your web browser.

Click on Add Printer.

You will then be asked for your local username and password (you may choose any user on the system as long as they have admin privileges).


Step 2: printer connection

Select Windows Printer via Samba.
Click on Continue


Step 3: define printer connection

As connection enter: smb://uni-mainz/jgu-ps-1.zdv.net/Drucken
Click on Continue.


Step 4: name your printer

Enter a printer name (e.g. ZDV-Printer), give a description (e.g. all public printer) and a location (e.g. Uni Mainz).
Click on Continue.


Step 5: select maker


As make select Generic.
Click on Continue.


Step 6: select model

Select Generic PCL 6/PCL XL Printer Foomatic/pxcolor (recomended) (en).
Click on Add Printer.


Step 7: set printer settings


Select A4 as the default media size.


 

Terminal setup

To set up the ZDV printer using the terminal, run the following command with admin privileges.
lpadmin -p ZDV -v "smb://uni-mainz/jgu-ps-1.zdv.net/Drucken" -L "ZDV Drucker auf dem Campus" -m foomatic-db-compressed-ppds:0/ppd/foomatic-ppd/Generic-PCL_6_PCL_XL_Printer-pxlcolor.ppd -o printer-is-shared=false && lpadmin -p ZDV -o PageSize=A4 -o MediaSize=A4 -E


Printing

When printing, select the Data Center printer from your printing dialogue. You will be ask for a username and password. Enter your university username and password.

Document is in queue but not printing
Open localhost:631/printers, all printers are listed. If the status shows "Unable to connect to CIFS host" a file needs to be changed.
Open /etc/samba/smb.conf with root rights. Add below [Global] the following line:
client max protocol = SMB3
Inside the file it should look like this:

[Global]
client max protocol = SMB3