How do I print from the Solaris workstations?
-
What printers are available for student use?
The department has 2 printers available for student use located in Math 319: a line printer, netlp1 and a laser printer, laser. The line printer is capable of text-only printing while the laser printer can print both text and graphics.
-
How do I print to the line printer in Room 319?
Printing in UNIX is done via the use of the lp command. To print a file to the line printer simple type:
lp -d netlp1 <filename>
where <filename> is the name of the file that you are trying to print. Only text files such as your program source code should be printed. Please do not try to print Java .class files, Adobe Acrobat files (.pdf), Microsoft Office Documents (.doc, .ppt, .xls), or any other type of graphics or binary files on this printer.
-
How do I print to the laser printer in Room 319?
The following command can be used to send a text file (e.g. your program source) to the laser printer:
lp -d laser <filename>
where <filename> is the name of the file that you are trying to print. Do not try to send a binary (i.e. non ASCII text) file to the printer using this command. To print such a file, you must first open the file in its respective application program and print from there.
-
How do I print an Adobe Acrobat file (.pdf)?
To print an Adobe Acrobat file (.pdf), you would do the following:
acroread <filename>
Then from within the Acrobat Reader application, click on File » Print and a dialog box should appear. In the Printer Command field, type in lp -d laser and click OK to print the file.
-
How do I print a postscript file (.ps)?
To print a postscript file, you would do the following:
sdtimage <filename>
Then from within the sdtimage application, click on File » Print and a dialog box should appear. In the Printers field, click laser and click OK to print the file.
-
How do I print a HTML File (.htm, .htm, .shtml)?
To print a HTML file (.htm, .htm, .shtml), you would do the following:
netscape [<url>]
Then from within the netscape application, open the page you want to print and click on File » Print. A dialog box should appear. In the Printer Command field, type in lp -d laser and click OK to print the file.
-
How do I print images?
There are a number of different ways to print images from the desktop. The simplest is to open the netscape browser, open the graphics file and print as you would any HTML document (see Number 6). Another option is to use the xv command. To use the xv command, you would do the following:
xv <filename>
xv is a full function image editor that will allow you to edit the image as well as print it. After opening your document, right click your mouse on the image. A dialog box should appear. In the dialog box, click the print button, another box appears. In the Printer Command field, type in lp -d laser and click grayscale to print the file. Another dialog box appears that allows you to move the placement of the image on the page as well as resetting the scale of the image. For the default settings, simply click "ok" to print the file.
-
How do I "pretty print" my source code?
To "pretty print" your source code (i.e. print it with key words highlighted and correct indentation), use the a2ps command. The syntax of this command is simply:
a2ps <filename>
Output from this command will be available on the laser printer.
-
Are there any restrictions on what I can print?
Yes. Anything that you print must be related to your Computer Science coursework. You may not print anything not explicitly related to this. In addition, the following restrictions apply:
- Rough drafts of source code should not be printed on the laser printer; use the line printer for this purpose.
- It is preferred that you use a2ps to print source code on the laser printer. This has the benefit of formatting the pages in a manner suitable for the turnin of your homework.
- You may not print extremely large slide sets or class notes (greater than 10 pages) on the laser printer without the permission of the systems administration staff. Patrons doing this will have their accounts locked for 48 hours and the print out will be disposed of.
