Printer Help



Available Printers

To see which printers are available from your current machine use the following Solaris 2.x command:

lpstat -a

Under Solaris 1.x, either look in the /etc/printcap file or run:

lpc status

The lpc command can also be used to fix problems with the printers.


Printing a file

There are two commands which allow you to print: lpr and lp. lpr is the BSD command which you are used to from our SunOS machines. Here is a synopsis of general commands:

lpr -Pscrap image.ps Print a PostScript image to the scrap paper printer.
lpr -s image.ps Use the full pathname of the file to print instead of copying the file. Don't modify the file until printing is finished.

The other printing command, lp, is the SVR4 version of lpr, with completely different options, of course:

lp -d scrap image.ps Print a PostScript image to the scrap paper printer.
lp image.ps Use the full pathname of the file to print instead of copying the file. Don't modify the file until printing is finished. Notice that this is the default!
lp -c image.ps Make a copy of the file before printing. This is the default when using lpr.

Printing Images on the Mitsubishi CP210 Color Video Printer

In general, you only want to print Sun Raster images to this printer, mainly because they will be resized to fit the size of the paper. Since we are using Sun's Newsprint software, the raster format is automatically detected and dealt with appropriately.

If you have a problem which isn't covered here, check the APUNIX manual. It is in a brown binder labeled:

APUNIX CP210 Printer Subsystem

Occasionally, the image will appear too dark and a lot of subtle detail will be lost. To fix this, you need to manipulate the raster file with some programs from the Newsprint distribution. There are at least four commands you need to know: rasttopnm, pngamma, pnmscale and rastocp.

Now we have to put these commands together to make it all work. In general you just do the following:

rasttopnm "rasterfile" | pngamma 2.0 | pnmscale -xyscale 1280 940 | rastocp

By playing around with the gamma value, you should be able to get the image to come out looking pretty nice.


© J Kevin McFadden
Last modified: Thu Sep 19 12:26:10 EDT