Printing
Contents
Printer Names
Command Line LPR Print Commands
Multiple Pages per Printed Sheet
Setting the Default Printer
Printer Quotas
Attaching University letterhead to a job
Printing From the Notebook Network
Defining MacOS Printers
Overview
Printers are located on each floor of Vincent Hall.
A list of printer names and locations is provided by the CUPS print server.
The default printer depends on computer and account settings and can be checked with lpq and set with lpoptions -dprinter.
The curious may want to read An Overview of the Common UNIX Printing System.
CUPS User Manual
Pdf version of CUPS User Manual
Classic LPR commands are provided by CUPS.
Printer Names
Department printers are linked to their queue on the print server's web interface.
Personal and workgroup printers are not listed, but show up on the print server web interface.
To view a queue, your web browser needs to be in the School of Mathematics network or proxy web traffic through SSH.
Command Line Lpr Print Commands
Mac, Linux and other operating systems use the Cups printing system.
Graphical print apps (like GtkLP) change between releases or differ between OSes, but they can be easy to figure out.
The "lpr" set of commands have been fairly stable for the past 20 years.
Below are some commands to control print jobs.
- Default Printer and Basic Commands
-
Set a default printer for your account with
lpoptions -dvinp105-cfdl
Print a job, see the queue, remove a job:
lpr sample.txt
lpq
lprm 55555
| Starting Print Jobs | lpr -Pvinp270d sample.txt |
| View Printer Queues | lpq -Pvinp314 |
| Deleting Print Jobs | lprm 55555 |
|
Replace vinp555 with the real printer and 'sample.txt' with the file to be printed.
Replace 5555 with the integer of the print job you would like to cancel.
|
- Multiple Pages per Printed Sheet
- To print four pages on a single sheet, use the number-up option for lpr.
lpr -o number-up=4 foobar.ps
- Single Side Printing with Duplex Printers
- Some printers have duplex attachements so they can print on both sides of paper sheets. By default the duplex option will be used. The lpr can pass an option to make the printer use only one side (aka simplex printing).
lpr -o sides=one-sided -Pvinp270d sample.txt
If the printer has duplex hardware, but is printing single sided, you can set the duplex option.
lpr -o sides=two-sided-long-edge -Pvinp270d sample.txt
- Changing Media Type
- If you would like to print on different media types, such as transperancies, you can set the media option.
*Note: You need to include the one-sided option so the printer does not do duplex printing*
lpr -h -o media=Transparency -o sides=one-sided -Pfructose sample.txt
- Mulitple Pages per Side
- Besides printing on both sides of a sheet, you can use mpage to print multiple pages on a single side but only for plain text or postscript files. PDFs can be converted to postscript using pdf2ps
pdf2ps lab7.pdf lab7.ps
mpage -2 -Pvinp005 lab7.ps lab6.txt
Setting the Default Printer
Command Line for Linux/Mac
Run lpoptions -d printername, or
add export PRINTER=printername to your ~/.bash_profile and restart any shells (or run the export printer command in them).
Linux Gnome desktop
- Choose System > Preferences > Hardware > Default Printer. The Printer List window appears.
- Select a printer from the list and click Close.
Mac desktop
- Choose System Preferences from the Apple menu and a new window should open up.
- Click Printers & Faxes. The Printer List window appears.
- Click the Add Printer button.
- Choose "LPR Printers using IP" from the pop-up menu.
- Enter the printer name.
Note that you may need to enter a password to make changes.
Windows
- Locate the new name for your daily usage printer. If you used cone, your new printer name will be vinp270d for instance.
- Open the printer list.
Determine which version of windows you are running, then follow these instructions:
For Windows XP:
Click Start, then Printers and Faxes.
For Windows 2000:
Click Start, then Settings, then Printers.
- Locate the printer in the list.
Right click on the printer and click "Set as Default Printer".
A black checkbox should appear in the printer icon if you did it correctly.
The School of Mathematics provides print services to its users, including faculty, staff, and students. Printers are intended to be used for university business purposes only. This may include printing of business documents, homework, exams, or research materials.
In an effort to keep the resources open for business use, as well as keep costs down, the School of Mathematics implements a per-user quota on printing. The quota definition is split into two parts: policy and implementation.
Policy
- Quota applies to non-faculty users only.
- Users are restricted to 1000 printed pages per month (defined to be 28 days).
- Printing restriction applies to public printers only. Private printers are not counted.
- The public printer in Vincent 105, vinp105-cfdl, will not restrict users from printing to it.
- Upon breaking quota, users will be banned from public printers for a period of one month.
Implementation
- All users’ current public printing usage levels will be checked on an hourly basis.
- Users that are found to be printing at a rate of above 250 pages/week will be sent a warning email that they are printing at too high a rate. No other action will be taken.
- Users will receive another warning email when they reach 75% of their allotted quota (750 printer pages). No other action will be taken.
- Users that print greater than 1000 pages in a 28 day period will be placed on a blacklist for a period of 28 days. They will be notified by email.
- All public printers are set to decline print jobs from any users that are on the blacklist.
- Appeals: Users may appeal their addition to the blacklist on reasonable grounds.
- Graduate students should speak with their advisor. If the advisor finds the appeal justifiable, they should speak to the department head on behalf of their student.
- Visitors and postdocs should speak directly with the department head.
- It is recommended that those seeking to print above the quota seek an appeal before they are added to the blacklist. The 750 page warning would be a good time to explore this.
Attaching University letterhead to a job
A print queue has been setup to allow the creation of pdf files from print jobs that attach University letterhead to the first page of the job. The name of the print queue is "Letterhead". Upon printing to it, an e-mail will be sent to the owner of the print job with an attached pdf. The pdf will be the print job in question, with the first page including the University letterhead.
Please note that this is intended for smaller jobs. Any e-mails sent over 25 megabytes - including attachments - will not be delivered.
Printing from the notebook network
Wireless connections don't have access to our print server, but wired laptop connections can print. Contact adm@math.umn.edu to try our beta service for authenticated wireless printing.
- Copy a printer's link from the list of printers.
For example, to use the printers in VinH 270d, copy the link for vinp270d which looks similar to http://toad.math.umn.edu:631/printers/vinp270d
- Add a new printer on your laptop. Details differ between OS versions.
- Linux/Unix
- These directions are for configuring with CUPS directly, but you can look in the desktop interface for a setup option that should be similar to the Mac OS X setup.
- Log in to your laptop's print server at http://localhost:631 with an administrator account.
- Click the "Add Printer" button.
- Add the name, location, and description.
- Select a Internet Printing Protocol (ipp) device.
- Paste the device URI for the printer (it was copied in the first step) and change the protocol from "http" to "ipp".
- Select the make of the printer.
- Select the printer model.
- Try to print a test page to see if everything is working.
-
- Mac OS X (10.7, Lion)
- Open "System Preferences..." from the Apple menu in the top left.
- In the "Hardware" row, click on "Print & Scan".
- Click the "+" button at the bottom of the printer list (you may have to click the lock to enable changes).
- In the "Add Printer" dialog window that opens, click the "IP" icon in the toolbar.
- Adapt the fields from the printer URL copied above. The fields will be something like... protocol:IPP, address:toad.math.umn.edu, queue:/printers/vinp888.
- Windows
- Click "Start > Settings > Printers & Faxes".
- Click on "Add a Printer".
- Select "Network Printer".
- Select "Connect to this printer on the internet" and paste the device URI for the printer (it was copied in the first step).
- Select the make and model of the printer.
- Tell windows if you want the printer to be the default.
- The printer should now be added.
Defining Mac OS Printers with LPR
Mac OS X
- Run the Printer Center program which resides in /Applications/Utilities folder.
- Choose 'Add Printer' from the Printers menu.
- Select 'IP printing' in the top pull down box of the window that step 2 opened.
- Enter toad.math.umn.edu in the Printer's Address box.
- Uncheck the 'Use default queue on server' check box.
- Enter the name of the printer (see above) in the Queue Name box.
- Choose the printer model (see above) in the bottom pull down box.
- Click on 'Add'.
- Note which printer is the default printer. You may want to change the choice.
Other Mac OS Printing Resources
Setting up Apple computers with
OS 9 for printing and
OS X for printing.