Contents
Printer Names
Command Line LPR Print Commands
Multiple Pages per Printed Sheet
Setting the Default Printer
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's website.
Personal printers are listed, but not linked.
To view a queue, your web browser needs to be in the School of Mathematics network.
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.
Wireless connections don't have access to our print server, but wired laptop connections can print.
- 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://samus.math.umn.edu:631/printers/vinp270d
- Add a new printer on your laptop. Details differ between OS versions.
- Linux/Unix and Mac OS X
- 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.
-
- 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.
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 samus.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.
|