Printing from Athena (AC-18)


Table of Contents || Revision history || Copyright information

The Athena network makes it possible to print on any public Athena printer (i.e., any printer in an Athena cluster) from any Athena workstation. You can print part or all of a file or document, unformatted or formatted. You can print output from programs, images of your screen, and more.

Athena has approximately 25 Hewlett Packard LaserJet 4si and 5si MX printers. These print plain text and files written in PostScript, a language used by printers. Not all programs and text formatters on Athena produce output in these formats; fortunately, Athena provides programs that translate from one format to another. (For example, LaTeX, a text formatting program, produces device independent, or dvi output. You must convert this file to PostScript using dvips to print it on an Athena printer.) The necessary utilities for the different kinds of output are explained here.

This document assumes that you are familiar with Athena's printing policy (if not, see the section Athena Account Policies in the document Welcome to Athena for details).

The sections of this document cover the following topics:



Athena Printer Policy

Athena's printing policy exists to protect the printers. Printers are a limited resource, and Athena printers get a lot of use, often much more than they are able to handle successfully. This heavy use, especially near the end of the term, can result in poor print quality and printer failure.

Here are a few suggestions to ease the printers' load:



Before Printing

Before you even print your document, there are a few steps you have to go through. This section details the steps of finding a printer near you and specifying a default printer.


Locating a Printer

A list of all the printers located in Athena clusters, with their names and locations, is posted in every cluster. The list is also distributed on a small reference card entitled Athena Clusters Pocket Reference, which you can pick up for free in the Athena Consultants' Office (N42, first Floor) during office hours. You can also reach it through olc by typing olc at your Athena prompt, or online here.

To find out the current status of all Athena printers, type cview printers at the Athena prompt, or select Help>>Help on Athena>>Athena Cluster Map from the Dash menubar (the blue menubar on the top of your screen, if you are logged in at an Athena terminal). You can also call up xcluster by typing xcluster at your Athena prompt, or on a workstation without actually logging in by clicking on the Other Options button of the main login window (which says Welcome to Athena) and selecting the option Map/Status of Athena Clusters.

Each Athena printer is also labeled with its name and type, as well as the name of the cluster.


Specifying a Default Printer

All machines in clusters with printers have default printers. The default printer is the printer that is used if you do not specify any printer name with a print command.

If you want to see if your workstation has a default printer, you can use any command that tells you the name of your printer, such as the lpq command. If, when you type this at your Ahena prompt, it returns lpq: default: unknown printer, you have no default printer; otherwise, the printer named in the second line is the default. Here:

  athena% lpq
  MULCH.MIT.EDU...  no entries in fiber
fiber is the default printer. When there is a printer error, this will not necessarily work. In this situation, you can use a command such as xcluster and look for your current location.

If there is no default printer for your workstation, or if you want to use a different printer than the default, you can use the -P option to the print command. Following -P with the printer name will tell the print command to send the document to the stated printer. Also, if the specific application you are using has a printer selection command, you can use that.

Additionally, you can set the PRINTER environment variable. By doing this, you avoid having to type the printer name every time you use a print command such as lpr, lpq, ez, and xmh. To set this variable for the duration of your login session, type:

  athena% setenv PRINTER printername
You will need to type this once in each window that you print from. This lets you omit the -P option to commands like lpr when you type them in the same window. This command also sets the printer for programs like xmh, if you type the setenv command before you start the program.

To specify a default printer for every time you log in, put an appropriate setenv line in your ~/.environment file. If you do not have a ~/.environment file, you can create one; using you favorite text editor, create a file in your home directory named .environment with only this line. You can always override your default with the -P option (or the appropriate printer selection command, if any, in a specific application).



Previewing Documents

Previewing documents is helpful for finding formatting mistakes so that you can correct them before you print your file. Previewing helps you save paper and avoid long and unnecessary waits at the printer.

Many of the commands listed have special options not described here. To learn more about a particular previewing command, type a command of the form man commandname at the Athena prompt. For example, to learn more about the more command, type the following:

  athena% man more

Previewing LaTeX Documents: xdvi

If you are running the X Window System, use the xdvi program to look at your LaTeX document on screen. It reads .dvi files such as those LaTeX generates and displays approximately what the final copy will look like when printed. This makes it easier to revise your document before printing out a draft. To use xdvi, at the Athena prompt enter the following command:

  athena% xdvi filename &
Here filename is the file that LaTeX created when it processed your .tex file. This file should have the same first portion of its name as your .tex file did, and end in .dvi. The following options are available when the mouse cursor is in the xdvi window:

Additionally, when you start xdvi you will notice many buttons on the side. Here is a table of what they do:
Quit Ends the xdvi session.
Shrink2 Enlarges the screen greatly from the default.
Shrink4 Enlarges the screen slightly from the default.
Shrink6 Makes the page the default size.
Shrink8 Reduces the screen from the default.
Page-10 Goes back ten pages.
Page-5 Goes back five pages.
Prev Goes to the previous page.
Next Goes to the next page.
Page+5 Goes forward five pages.
Page+10 Goes forward ten pages.

If you need to edit your .tex file and run LaTeX again, you do not need to exit from xdvi every time you want to preview a new version. After you have created a revised .dvi file, type R in the xdvi window to load the new version of the .dvi file.

xdvi is not able to display all the fonts that LaTeX can produce. If it can't find a font, it gives you a warning and substitutes a similar font.


Previewing EZ Documents

The EZ editor comes with a built-in previewer for viewing your formatted file. To preview your file, select the Preview option from the File menu. The mouse pointer changes into a clock and the following message appears in the message box:

  Processing preview request.
After a few moments, the mouse pointer returns to normal and a new message appears in the message box:

  Preview window should appear soon.
The preview window has its own set of menus that are used for moving from page to page, printing specific pages, and scaling the text displayed on the previewer. Keep in mind that files are loaded into the previewer page by page; therefore, later pages of your document are not immediately ready for viewing when the viewer first pops up. Note that the Quit option in the viewer closes the viewer window, not the original EZ window.


Previewing Plain Text Files: more

If you want to view a plain text (ASCII) file, use the more command to display the file's contents one screen at a time. It displays one screeful of text, then pauses to let you read it. To look at a file with more, type:

  athena% more filename
When more has filled up the screen, you must give it a subcommand to tell it to continue. There are many such subcommands. Here are the most common ones:

Spacebar Move forward one screenful
Return Move forward one line
b Move back one page
/word (RETURN) Search forward for word (case sensitive)
q, Ctrl-c Quit
? Help


Previewing PostScript Files with ghostview

ghostview is a program which allows you to preview PostScript files without having to print them. To run ghostview:
  athena% ghostview filename &
The ghostview window will immediately appear; your document will appear as ghostview loads it in. (Sometimes this takes a little while.) There are bars on the right and bottom of the document; click on these to maneuver about the page. The file name will appear in the upper left corner. Below that is the time it was last edited; below that, there are five choices.

File Lets you open, reopen, or print a file, mark pages (for later printing), or quit ghostview.
Page Lets you go to the next and previous pages, redisplay the current page, center the document in the window, and mark and unmark pages.
Magstep Allows you to magnify or demagnify the page which you are viewing.
Orientation Lets you switch between portrait, landscape, upside-down, and seascape (an upside-down landscape) orientations.
Media Allows you to state the sort of paper you will be printing on.



Basic Printing Commands

This section covers the commands for:

All of these printing commands have more options than are described here. To see the full set, type a command of the form man commandname at the Athena prompt. For example, to see the full list of options for the lpr command, you would type the following command:

  athena% man lpr

The Basic Printing Command: lpr

To print a file to your default printer, type:

  athena% lpr filename
If you wish to use a different printer than the default:
  athena% lpr -Pprintername filename
For printername, use the name of the printer to which you want to send the file (look at the printer if you are uncertain of the name). For filename, use the name of the file (or files) you want to print. For example, to print the file mydoc to the printer ajax, type the following:

  athena% lpr -Pajax mydoc
You can also use the lpr command to send the output from another command directly to the printer without having to create a file. To do this, "pipe" the output of the command through lpr:

  athena% program_name | lpr -Pprintername
The | is a vertical bar, also known as a "pipe" (Shift-\ on most keyboards). A pipe takes the output from one program and sends it as the input to another program. You can use this method for any program whose output normally goes to "standard output" (i.e., your screen). For example, if you want a printed copy of the list of files in your directory, send the output from the ls command directly to the printer of your choice by typing:

  athena% ls | lpr -Pprintername
and to print out the manual page for a command, type:
  athena% man command | lpr
The lpr command acknowledges a number of other useful switches in addition to the -P option, including the following (type man lpr for the complete list):

These options (as can most options) can be used in conjunction with each other. To make lpr -hz your default command (i.e. what actually happens when you type lpr), type setup save at your Athena prompt.

Printing Two-Sided Documents

The HP LaserJets support "duplex printing," the ability to print on both sides of a page (double-sided). This is implemented on all public Athena printers.

To print a document double-sided, add a numeral 2 to the regular printername in the print command. For example, to print file mydoc in duplex mode on the printer ajax, type:

  athena% lpr -Pajax2 mydoc
This sends the job to ajax's duplex queue (ajax2), which adds the necessary PostScript code to enable duplex mode.

You can also use the 2 appendix to specify double-sided output with all other printing commands. For example:

  athena% setenv PRINTER ajax2
  athena% ls | lpr -Pajax2
  athena% ezprint -Pajax2 mydoc.ez
  athena% dvips -Pajax2 mydoc.dvi 

Printing Duplex or Tumble

By default, when duplex mode is activated, the text is read by flipping the page about a vertical axis, i.e., the top of side one and the top of side two are along the same edge. If you want this to be inverted, so that you would flip the page about a horizontal axis, this is called tumble mode. (Tumble mode is useful if you're printing in landscape orientation - that is, sideways on the paper.) Options for either of these modes are given below.

To print normal text or a PostScript file, you can use the lpr2 command in the consult locker. To do so, type:

  athena% add consult
  athena% lpr2 -d -Pprinter filename
The -d option turns on duplex mode for the given files. You may also use any other options associated with lpr, such as -h or -z.

For tumble mode, use -m instead of -d.

lpr2 does not work with standard input. This means that you cannot pipe things through lpr2 in the fashion that you can pipe them through lpr.

For more information, type man lpr2 after adding the consult locker.


Checking the Printer Queue: lpq

The lpr command sends a copy of your job to a print server, a machine that keeps track of printing requests in a list called a print queue. Because you share a printer with other people, the print server takes the jobs submitted to it and sends them out to the printer one by one in order.

If your file does not print right away, it might be waiting in line for the printer. To find out what print jobs are waiting to be printed, type lpq at your Athena prompt. For a printer different from your default, use:

  athena% lpq -Pprintername
For example:

  athena% lpq -Pajax
  PAPER-PUSHER.MIT.EDU...  ajax is ready and printing
  Rank   Owner      Job  Files                        Total Size
  active joeuser    2    report.abstract.PS           8069 bytes
  1st    janeuser   3    letter.PS                    12841 bytes
  2nd    joeuser    3    lab.report.PS                19942 bytes
Specifying ajax or ajax2 shows all the jobs in line for that printer. The lpq command also gives limited information about the physical status of the printer. For example, typing lpq -Pbob might give back:

  IO.MIT.EDU...  bob is ready and printing
or:
  IO.MIT.EDU...  Warning: bob is down: 
  Warning: bob queue is turned off
  no entries in bob
You might also receive Zephyr windowgrams from the print server telling you about problems. For example, if the printer runs out of paper while your job is printing, you may receive a zephyr telling you so.


Removing Jobs from the Printer Queue: lprm

If you want to send your file to a different printer (e.g., if the printer is down or the queue is too long), or if you sent the wrong file or no longer want the printout, you can remove your job from the queue. To remove an entry from the queue:

  athena% lprm jobnumber
Here, jobnumber is the number in the "Job" column of the lpq information. For example, to remove the file lab.report.PS from the print queue for ajax, jruser would type the following command:

  athena% lprm -Pajax 3
It doesn't matter whether jruser specifies ajax or ajax2; the job numbers are unique. If you want to remove all of your jobs on the printer, type:

  athena% lprm -
The final dash is important.



Printing Special Files and Output from Software Packages

This section details how to print from some of the most common software packages on Athena. For help printing from many software packages, or for a more in-depth look at printing, you can consult the help for the individual package, On-Line Consulting, or Athena On-Line Help's documentation on that package.


Printing All or Part of LaTeX .dvi Files

The latex program processes a file ending in .tex and produces a file ending in .dvi. It is not possible to print .dvi files directly on Athena printers (as in lpr myfile.dvi, for example). Instead, use the dvips program to convert the .dvi file to PostScript and print it, as follows:

  athena% dvips filename.dvi 
To print selected pages of LaTeX .dvi files, use the -p (page) and -l (last) options to dvips. For example, to print the first 7 pages of a .dvi file to the printer bob, type:

  athena% dvips -l =7 -Pbob filename 
Use the = sign before the number to specify a sequence number rather than a real number, so that you print the first 7 pages regardless of how the pages are actually numbered.

To print out pages 22 to 31:

  athena% dvips -p 22 -l 31 -Pprintername filename 
To print a .dvi file two-sided with dvips, use the -h option, located in the sipb locker:

  athena% add sipb
  athena% dvips -h duplex -Pprinter file.dvi
For tumble mode, the command would read:

  athena% dvips -h tumble -Pprinter file.dvi
For more information about duplex and tumble mode, see the section Printing Two-Sided Documents.

dvips has many other useful options. Type man dvips for more information.


Printing EZ Files

There are two methods of printing EZ files. The first is to use the pull-down menus from within EZ; the second is from the Athena prompt. (In this case, you do not need to have an EZ window open.)

Printing EZ Files from Within EZ (Using the Menus)

This tends to be the faster and more reliable of the two methods. If you do not already have a default printer chosen (see Specifying a Default Printer), you first need to tell EZ which printer to use. To do this, select the EZ menu option Printer Setup from the File menu. A window appears asking you for the name of the printer (with the default printer, if any, filled in). You can also make choices in the window about printing the table of contents, enumerating the table of contents, putting footnotes at the end of each page or the end of the document, and swapping right and left headers on even-numbered pages. After you have chosen a printer and verified your other choices, click on Done.

You must set the printer name for each EZ window before you select Print from that window's File menu.

You can now select the Print menu option from the File menu. This sends the current version of your document to the printer you specified with the Printer Setup command.

To print selected pages of EZ documents, you need to use the EZ previewer. Set a printer as noted above, then open the preview window by choosing Preview from the File menu. When the document is loaded in, view the page of interest and choose Print Page from the front menu card of the preview window. (EZ has no way to print a selected range of pages; it prints the entire document or only one page at a time.)

Printing EZ Files from the Athena System Prompt

To print EZ documents without having to open an EZ window, tell your workstation where to send your file (to which printer) and then specify which file to send. You can do this all on one command line by typing:

  athena% ezprint -Pprintername filename
The Athena prompt returns after a short pause indicating that your file has been sent to the printer.

If you are printing out a large number of files, you can avoid specifying the printer on each ezprint command line by making a certain printer your default printer for the duration of your login session. To do this, use the setenv command explained in Specifying a Default Printer.

  athena% setenv PRINTER printername
The prompt should return almost immediately. You need to execute this command only once in each of the xterm windows you will use for sending files to the printer. Now to send an EZ file to the printer, type:

  athena% ezprint filename

Printing Plain Text Files in PostScript: enscript

The enscript program takes plain text files and converts them to PostScript. For example, to convert the plain-text file myfile to PostScript and save the output in a file newfile, type:

  athena% enscript -pnewfile myfile
To send output from enscript directly to the printer, type:

  athena% enscript -Pprintername filename
or simply:
  athena% enscript filename
Note that the option for sending a file to a printer is a capital P; use a lowercase p for sending output to a file.

The enscript command offers options to scale, rotate, and change the font of the text, as well as to produce two-columned text and add headers to a page. For example, you can print a plain text file rotated (landscape, -r) in two columns (-2) mode by typing:

  athena% enscript -2r -Pprintername filename
This is often done with code, for instance. For more information about enscript and its options, type man enscript at your Athena prompt.


Printing Mail Messages

Printing Mail Messages from the Athena System Prompt

To print a mail message from your Athena prompt, combine the MH show command and the lpr print command:

  athena% show message-number | lpr
For example, to print message number 10 on the printer ajax:

  athena% show 10 | lpr -Pajax
Because this command involves a pipe, the header page of the printed file is labeled with the filename stdin, which means "standard input".

You can print the files containing your messages directly (i.e., without the pipe). The files are stored in the ~/Mail/inbox directory, by default. So, if you type:

  athena% lpr ~/Mail/inbox/1
your first mail message is sent to your default printer.

Printing Mail Messages from xmh

To print a mail message from the xmh mail program, select the printer before you start xmh (you cannot specify a printer from within xmh). From the Athena prompt, type:

  athena% setenv PRINTER printername
If you do not do this, xmh will assume your default printer. Then start xmh from the same window. You can select one message or a range of messages, then use the Print command on the Message pull-down menu, and the selected message or messages are sent to the printer.


Printing an Emacs Buffer

To print the contents of an Emacs buffer, you must first set a printer, unless you have set a default printer. From the Emacs window, type:

  M-x set-variable
(The notation used here is the same as in the Emacs documentation: M-x stands for Meta-x, which means holding down the Meta key -- i.e., Alt, Esc, or a black diamond, depending on your workstation type -- while pressing the x.)

When prompted, type the variable and its value in the minibuffer at the bottom of the Emacs screen:

  Set variable:  lpr-switches
  Set lpr-switches to value: '("-Pajax")

To print the contents of the current buffer, use the print buffer command. From the Tools menu in Emacs, choose Print Buffer, or type:

  M-x print-buffer
You will get messages like:

  Loading lpr...
  Spooling...
  Spooling...done

You can also choose Postscript Print Buffer from the Tools menu. This option adds a header to each page of the printout with the filename, date, and page number.

Additionally, you can simply lpr or enscript the file at your Athena prompt.

If you have a default printer, you can use any version of the print buffer command without setting the variable first.


Printing FrameMaker Files

To print a file from FrameMaker, select Print from the File menu. Specify the pages you wish to print, and select the other options accordingly.

To print in modes other than normal single-sided printing, use the following entries in place of the printer name:

duplex duplex:printername
tumble tumble:printername
draft draft:printername

The draft option places the word "draft" diagonally across the page behind the text of the document.


Printing an OLC Conversation

As you ask a question in OLC, everything you and the consultants send to each other is saved as a log. To print out this conversation, type:

  olc> !olc replay | lpr
This sends the entire replay of the OLC conversation to the default printer. You can use the -P option to lpr to specify a printer. See Specifying a Default Printer and The Basic Printing Command for more information.


Printing MATLAB Graphs

The simple way to print a graph created with MATLAB is to use the print command. To send an image of the current graphics window to the printer called ajax, type:

  >> print -Pajax
Just typing print will send the image to the default printer.


Printing Netscape Files

To print a web page in Netscape, select Print from the File menu. (If you are printing a frame, follow the same steps after clicking on the frame.) You will be given a list of options. In the print command box, type the name of your desired print command, along with any options you want. (For instance, to use lpr and sent the job to ajax, type lpr -Pajax.) To print to a file, click on the "File" button at the top and type in the filename. When the options are as you like them, hit the "print" button at the bottom and Netscape will do as you wish.

Occasionally, when printing a file from Netscape, you will get a "lpr: copy file is too large" error; often, webpages can get very large with graphics and such. To circumvent this error, try removing the graphics if you can; if you cannot, try cutting and pasting portions of the page (with the Copy and Paste commands in the Edit menu) into an Emacs buffer, and printing these as plaintext.


Printing Lynx Files

To print a page in Lynx, go to the page you wish to print and type p. From there, you can email the page to youself by selecting "Mail the file". Print out the mail message once it arrives (see our section on Printing Mail Messages); you cannot efficiently print directly from Lynx.


Printing Xess Files

Printing out a spreadsheet in Xess (Athena's default spreadsheet program) can be done by first setting the printing options, then sending the document to the printer.

Selecting options can be done by selecting Printer Options from the Options menu. Here, you can specify whether you want to send the printout to a printer, file, or both; specify a print area (if you do not highlight one); or dictate a print command. You can also select a printer here; if you do not do so, Xess assumes your default printer.

To actually print, select Print or Print As from the File menu. Print As allows you to access the above options; Print prints with the most current settings.


Printing rn Files

From rn, the standard command-based news reader on Athena, you can print a message by using the # key, which prints the last article. This is done on the article level - i.e. you do this when you are reading the article that you wish to print.


Printing Non-Athena Files on Athena

Programs that run on other machines than Athena (e.g., WordPerfect, which runs on IBM-PCs and Apple Macintoshes) may use formatting commands or fonts that are not compatible with Athena printers. To print these files, save the file in text, ASCII, or PostScript format, then copy the files to Athena via modem or zip disk. See Working on Athena for details about using zip disks.

On Athena, you can use EZ, LaTeX, or FrameMaker to format the file if you want to print more than plain text. You can then process the file appropriately and print it on any Athena printer.



Printing Pictures

Athena's printers have graphical capabilities as well as text capabilities. In this section, we explain how to print out pictures on Athena.

When printing complicated images (such as photographs, not simple graphs), keep in mind that these take large amounts of time and printer resources such as toner. If you have to print these, please try to do so when the cluster is not busy out of consideration for other users.


Printing Screen and Window Dumps

You can send an image of a window or of the entire workstation screen to a printer. There are two ways to do this.


Printing Bitmaps

The following commands give you a PostScript file containing your bitmap image:

  athena% add consult
  athena% showbitmap mybitmap &
  athena% xwd -out mybitmap.dump
When the cursor changes into a plus sign, click on the bitmap window and it will be saved to file mybitmap.dump. To save this X dump file to a PostScript file named mybitmap.ps, type:

  athena% xpr -device ps -output mybitmap.ps mybitmap.dump
You now have a PostScript file, mybitmap.ps, containing the bitmap. You can print this file as any other PostScript file, or you can include it in larger PostScript documents. To get rid of the bitmap window, click on it again.


Printing from xv

xv is a graphics editing program which can be found in the graphics locker on Athena. To print a picture from xv, click with the right mouse button to bring up the menu. From the menu, click with the left mouse button on "Print". It will ask you for a command to read a PostScript file and print it to the desired printer (the default is lpr). After entering the command, click on your choice of color, grayscale, and black and white (although Athena printers cannot print in color; there is a color printer in Copy Tech, 11-004; consult them for details of its use), and it will print your document.


Printing from xfig

Printing an image from xfig (a drawing program on Athena) can be done by clicking on the Print button in the upper right of the xfig window. Here, you are given a choice of printer, orientation, and magnification. When you have selected the choices you like, click on "Print FIGURE to Printer" to send the file to a printer.



Troubleshooting

Printing on Athena can sometimes give you problems. Often, however, the problems that arise are easily and quickly solved without having to go to olc (the On-Line Consulting program) or the Athena Hardware Hotline. (For instance, the printer will often send you a zephyr telling you what is wrong.) This section reviews some of those situations, giving you a possible solution for each problem.


Checking the Queue

One of the first things to check if you think there is trouble with a printer is the print queue. Sometimes, lpq can give you useful information that will help in the diagnosis of the problem (see Checking the Printer Queue: lpq). Most error messages are self-explanatory. However, if you need help figuring out what's wrong, call the Athena Consulting Hotline (x3-4435), ask a question in olc (type olc at the Athena prompt), or call the Athena Hardware Hotline (x3-1410).


Physical Problems and Adding Paper

Many times a printer appears to be stopped when it is actually receiving data to be printed. Pages that contain a lot of detail (and graphics) may take some time for the printer to process and print. Check the indicator panel on the printer for error messages before assuming a printer is broken. Flashing On Line and Form Feed lights indicate the printer is printing.

When there is something physically wrong with a printer, the message on the front panel should be self-explanatory. If a printer needs a toner cartridge or a service call, please phone the Athena Hardware Hotline (x3-1410) and let them know the name of the printer, its location, and the error.

When the Paper Tray is Empty

The HPs print from the first of the three paper trays by default. When that tray is empty, printing automatically switches to the second tray, then the third. If you notice that one tray is empty, it is courteous to load more paper, even if another is still full, to avoid delays in printing. The control panel messages indicating empty trays will tell you which tray is empty. If a paper tray isn't inserted completely, the control panel still displays a TRAY EMPTY message.

To insert more paper into a printer:

  1. Remove the tray from the printer by lifting up and pulling it out.

  2. Remove the cover, if there is one.

  3. Load the paper. Paper should be located near the printer. Make sure that you insert it with the correct side up. The wrapper around the paper has an arrow indicating which side is up. The paper trays hold 500 sheets of 20 pound paper (one pack). Please put a whole pack in at a time -- don't put a partial pack in if you see the paper running low.

  4. Make sure the paper is flat at all four corners of the tray.

  5. Replace the cover if there is one, and replace the tray.

Always insert the paper right side up. Adding paper upside down can potentially jam the printer, and the print quality will not be as good as if the paper were inserted correctly. The paper has been treated on one side so that the toner adheres to the paper more easily. Substituting other kinds of paper can jam the printer. Never re-insert paper that has already been through the printer.

If there is no paper located near the printer, or when supplies begin to run very low, please call the Athena Hardware Hotline (x3-1410) to have more delivered to that site.

"79 Service Error"

This is another correctable printer error. To fix this, you will need to turn off the printer; the on/off switch is located on the bottom of the printer. Once you have done this, count to 10. Only after counting should you turn the printer back on. Once the printer goes through its warm-up, it should be ready to print.

Paper Jams

When a piece of paper is stuck in the printer, you can report it to the Athena Hardware Hotline at x3-1410. Alternatively, if you are feeling adventurous, you can attempt to fix the jam yourself. Open the panels of the printer and attempt to remove the paper if you can find it; do not force the paper out of the printer, as this is likely to cause it to tear.


Errors from lpr

Sometimes, when trying to print a file, you will receive an error message immediately, and the file will not be sent to the printer. Some common errors and their causes are listed below. If you need further help, ask a consultant for help (Athena Consulting Hotline x3-4435, or type olc for On-Line Help).

unknown printer
The name of the printer was incorrect. Check the name and the spelling of the name and try again.

cannot stat filename
The filename was incorrect or the permissions on the directory make the file unreadable by you:

  • If the filename was incorrect, the filename may have been misspelled, or the file specified does not exist, or exists in a different directory. You can check which directory you are in by typing pwd and change to the correct directory by using cd directory. Type ls to see if the file exists in that directory.

  • If you were denied permission, and if the file is in one of your directories, you can change the permissions with fs sa. See Working on Athena for more information about fs sa and changing directory permissions.

filename is an empty file
The file specified was empty, or the program you used to generate the output sent no data. Type ls -l to make sure that the file is not zero-length; if it is zero-length, you may be over quota, and the file was not written out by whatever program you were using. To find out how to check your quota, see the document Working on Athena. Also, check to make sure that you are using the correct commands to generate output from that program (read the section Printing Special Files and Output from Software Packages).

You may also receive the following error printed on a page when you look for your printout:

spooled binary file rejected
Either you have tried to send a file to a printer that is not equipped to handle it, or there is something wrong with your PostScript file.

If you try to print out a PostScript file and instead get a printout of the PostScript commands, check to make sure that you are sending the file to a PostScript printer. (All Athena printers are PostScript printers.) Also, all PostScript files should begin with the characters %!. There cannot be any blank lines or spaces before these two characters. The percent sign and exclamation point tell a PostScript printer to execute the commands in that file rather than print out the text of those commands. If your file is missing these two characters, you can edit the file with Emacs and insert them; or, if the PostScript file was generated by a software package, try generating the file again.



MIT Information Systems Comments and feedback to olh-suggest@mit.edu