Save print server authentication credentials

At my work, I print through a print server.

My /etc/cups.d/client.conf file is:

ServerName the.appropriate.server.location

With this configuration I have to log in with a username and a password every time I have to print (and even twice each time, the first time to get the printer settings, and the second time to effectively print).

I precise that I am usually printing via Evince (since I print PDF files and Evince is my favorite PDF viewer).

  • How can I avoid logging in twice?
  • Is it possible not to have to log in, even once, at each printing?

To get rid of the "Authentication Required to Print" dialog this is done by directly editing the file, /etc/cups/printers.conf as follows:

  1. Open a terminal window:
  2. Stop the cups server: sudo service cups stop
  3. Edit the printers.conf file.

sudo gedit /etc/cups/printers.conf

Near the top of file /etc/cups/printers.conf is a line:

AuthInfoRequired username,password

Insert a "#" char in the first column (or, just delete the line):

#AuthInfoRequired username,password

  1. Save edited file
  2. Restart cups server:

sudo service cups start

This should fix the problem.

Reference