Configuring the CMU SCS-Public printer on Linux
A year ago, I wrote a post on Configuring CMU SCS printers on Linux.
SCS Computing Facilities is rolling out a new single-queue print
system,
where you fetch your job from the queue to a particular printer using
your ID card. They don’t provide instructions for configuring this
on unfacilitized hosts, so here’s what worked for me. Edit 3:
They’ve added instructions, copied (almost) verbatim and without
attribution from below,
here.
Edit: It turns out one doesn’t actually need to use SAMBA, nor to authenticate against the printers. You can find the original instructions below the rule. The updated instructions are as follows.
Edit 2: It looks like the queue
lpd://SCSID@lpd.srv.cs.cmu.edu/scs_public
will be phased
out. Instead, use lpd://SCSID@scs-print.srv.cs.cmu.edu/SCS-Public
.
- Address:
lpd://SCSID@scs-print.srv.cs.cmu.edu/SCS-Public
- Make: Generic
- Model: Generic PostScript Printer
Don’t forget to change SCSID
to your SCS ID.
I normally add printers via the CUPS web interface:
- Navigate to http://localhost:631. If asked
for a username or password, enter your local
username/password. Make sure your user is in the
lpadmin
group. - Select the “Administration” tab.
- Click “Add Printer” under the “Printers” header.
- Select “LPD/LPR Host or Printer”.
- Paste in the printer address, found above, and continue to the next page.
- Give the printer an appropriate name, e.g.,
scs_public
, and continue. - Select the make “Generic” and model “Generic PostScript Printer” or “Generic PostScript Printer Foomatic/Postscript”.
- Add the printer. You can then configure duplexing, etc., as desired.
You can make this your (user) default printer using
lpoptions -d scs_public
N.B. In my experience, you must be connected to the CMU network to print to SCS printers.
Old instructions: Unfortunately, printing now requires SAMBA. On Debian-derived systems, you can install the required bits by going
sudo apt install smbclient
If you have not yet created an SCS Windows domain account password, do so now via the Kerberos Instance Manager. Then, assuming you’re using CUPS, the configuration details are:
- Address:
smb://SCS\scsID:scsWindowsPassword@scs-print.srv.cs.cmu.edu/SCS-public
- Make: Generic
- Model: Generic PostScript Printer
Of course, you should remember to change scsID
and scsWindowsPassword
to
your SCS ID and your SCS Windows domain account password.
I normally add printers via the CUPS web interface:
- Navigate to http://localhost:631. If asked
for a username or password, enter your local
username/password. Make sure your user is in the
lpadmin
group. - Select the “Administration” tab.
- Click “Add Printer” under the “Printers” header.
- Select “Windows Printer via SAMBA”.
- Paste in the SCS-public address,
smb://SCS\scsID:scsWindowsPassword@scs-print.srv.cs.cmu.edu/SCS-public
and continue to the next page. Again, make sure to changescsID
andscsWindowsPassword
to your SCS ID and your SCS Windows domain account password. - Give the printer an appropriate name, e.g.,
scs_public
, and continue. - Select the make “Generic” and model “Generic PostScript Printer” or “Generic PostScript Printer Foomatic/Postscript”.
- Add the printer. You can then configure duplexing, etc., as desired.
A few caveats:
-
Your SCS username and windows password will be stored in plaintext (!) in
/etc/cups/printers.conf
. If you do not want this, then use the addresssmb://scs-print.srv.cs.cmu.edu/SCS-public
. You will then be prompted for them every time you go to print. -
Even if you do specify your SCS username and windows password, you will likely be prompted for them every time you go to print from a GTK program. This is because
AuthInfoRequired
gets set tousername,password
in/etc/cups/printers.conf
. Commenting out this line seems to fix the problem:sudo service cups stop && \ sudo sed -i 's/^AuthInfoRequired/#&/g' /etc/cups/printers.conf && \ sudo service cups start
(note, this will apply the change indiscriminately to all of your printers…).
-
Editing the printer from the CUPS web interface will cause it to drop your username/password from the config file.
-
In my experience, you must be connected to the CMU network to print to SCS printers.
Comments: To comment on this post, send me an email following the template below. Your email address will not be posted, unless you choose to include it in the link: field. If your web browser is configured to handle mailto: links, click comment to load the template into your mail client.
To: Ryan Kavanagh <rak@rak.ac> Subject: [blog-comment] /blog/2017-09-21-configuring-the-cmu-scs-public-printer-on-linux/ post_id: /blog/2017-09-21-configuring-the-cmu-scs-public-printer-on-linux/ author: [How should you be identified? Usually your name or "Anonymous"] link: [optional link to your website] Your comments here. Markdown syntax accepted.
0 Comments