Skip to main content

Table of Contents

Printer Locations

Locations of public printers

Reviewed by bil hays 7.15.2017

We have a number of public printers that are available in Computer Science.  Each printer has a name from UNIX that you can use to specify a particular printer on our login machines, or is available via our print servers.

In general you can set up a printer:

  1. Through the unix print server,, using the name associated with the printer as the name of the queue.
  2. Through the windows print server,, selecting the printer from it’s list of printers.
  3. Manually creating the printer via your OS. We don’t recommend this method.

All of the public printers are capable of printing in duplex mode, i.e., on both sides of a sheet. To print in duplex from UNIX, append a “d” to the printer name, e.g., “ljsn314d”.

Please note, use of our printers and copiers is restricted to UNC CH Computer Science Faculty, Staff and Students and is restricted to Computer Science Department related printing only. Personal use (such as printing out homework, assignments, articles, handouts or flyers) is not allowed. Groups associated with CS may request printing privileges for special events, such requests should be sent to

Non affiliates or affiliates with personal items to print should use one of the UNC One Card printers, located next door in Peabody Hall and Carroll Hall.

Misuse of copiers or printers is an 
Honor Code Violation.

See the list of public printers for names, types and locations of printers.

Copier Locations

Where copiers are in the department

Below is a list of the various copiers to be found around the building.  The Ricoh copiers require a password, which we email to faculty, staff, and grads each semester.

FB131 – Richo Aficio MP2510

FB314 – Richo Aficio MP2510

SN107 – Xerox 5745

SN255 – Xerox 5745

FB309 – Xerox 5745

Xerox Printer/Copier/Scanner/Fax

Information on using the Xerox multifunction copier/printer/fax/scanner

Reviewed by Bil Hays 2019-07-03

The department has  Xerox AltaLink C8055 Printers multifunction devices in SN107, SN266, and FB309.  Each unit is a combination printer/copier/scanner/fax. One page instructions for printing, copying, scanning, and faxing are on the wall above the device.

To print to the Xerox multifunction device from a Windows system, you will need to add the printer to your computer. The names of the printers on Windows and Linux are xrxsn107, xrxsn266, and xrxfb309.

The scanner sends scans via email, so to scan, you select “Email” on the services page of the touch panel.  (Yes, this is counterintuitive.) While the printing and copying with Xerox multifunction device is not color, the scanner will scan in color, and you can also save your scans into searchable pdf files.

Faxes sent to the Xerox multifunction device print out on the small upper tray, while other jobs print to the larger lower tray.

Additional documentation is available from Xerox.  To search their knowledge base, go here and search for a keyword or phrase. You can also click the Documentation tab. In addition, you can call Xerox at 800-821-2797 and ask them questions. You’ll need to give them the system serial number; that is available at the keypad by pressing the “Machine Status” button.

2018 Update: you can find the user guide for the Xerox AltaLink C80XX Printers here.

Mac Printing

How to print from Macs using the UNIX print server or directly

Reviewed by bil hays 2018.11.01

All Macintosh computers and printers in Sitterson/Brooks are on the department’s network.  This allows printing from any Macintosh to any printer.

Some printers are located in private offices.  Please do not print to a printer that is not in a public location.  See here for a list of printers.

To print a document from a Macintosh, you must select the printer you wish to use and instruct the application to print your document. Drivers are available on our main storage server:

Using Finder, Go, Connect to Server, connect to:
Printer drivers for mac are here are on storage in:
public/Printer Drivers/_osx 2017
Xerox Print Driver 4.22.2.pkg are the drivers for the Xerox multifunction printer/scanner/copier.
hp-printer-essentials-SJ-5_3_2.pkg and hp-printer-essentials-S-4_9_0.pkg are drivers for HP printers we have in the building.
Mac_OS_X_HP_DesignJet_Installer.dmg has drivers for the plotter

Printing via the UNIX print server

  1. Select File, Print from the application’s main menu, or use command-P to open the Print dialog box. You will see a list of configured printers in the popup menu for the printers.
  2. If you don’t see the printer you want in the list, open the System Preferences, Print and Fax (10.5 and later) or in earlier versions of the OS, use the Printer Utility application and click on Add (10.4 and earlier).
  3. In the dialog box to add a printer, select IP, and then select Line Printer Daemon – LPD.
    -For the address, use
    -For the queue, use the name of the printer, eg. ljfb209 for the laserjet in FB209.  See the list of printer locations for details.
    -For the name, use whatever you wish, but change it to something meaningful, because by default OSX will use to the print server name.
    -Choose the printer driver for the printer model you are using (listed here).

Printing directly via IP from OS X

This is not recommended and may not work unless you are on the wired network with a address.

    1. Select File, Print from the application’s main menu, or use command-P to open the Print dialog box.  You will see a list of configured printers in the popup menu for the printers.
    2. If you don’t see the printer you want in the list, open the System Preferences, Print and Fax (10.5 and later) and click on the plus button below the list of printers.  in earlier version of OS X, open the Printer Utility application and click on Add.
    3. Select IP Printer tab.  Then select Line Printer Daemon-LPD, and check the Use Default Queue box.
    4. If your mac doesn’t automatically choose the type of printer, select the model of printer from the pop up list at the bottom of the dialog box. Use generic if you don’t find the appropriate model (listed here)

Please refill printer paper trays after long print jobs.  If a printer is out of toner, send email to to have the cartridge properly installed, we routinely run with cartridges low on toner.  Please use another printer rather than install the cartridge yourself.

Windows Printing

How to print from Windows machines in the CS Department
Reviewed by bil hays, 2018.10.15

Adding printers via the print server is done by browsing to the print server on the network and double-clicking on the printers, which should appear as a list on the upper level view of this machine.

Using the Run command from the Start Menu , you can quickly add printers with the following method:


Windows 7:

Click on the START menu and click in Search Programs and Files:



Type: \\ and hit the Enter key.  A window for \\ should open, with a list of all the available printers on the print server. If you are prompted for an id and password, use as the id–computers that are not bound to our Active Directly need you to authenticate against us for you to access the printer objects.

Windows 10:

Click on the Windows icon in the bottom-left hand corner, or press the Windows key on your keyboard.


Type \\ and hit ‘Enter’. A window with the currently installed printers on the print server should appear. If you are prompted for an id and password, use as the id–computers that are not bound to our Active Directly need you to authenticate against us for you to access the printer objects. Either double-click the printer you wish to use, or right-click and select ‘Connect…’.

UNIX Printing

Printing from UNIX systems

Reviewed by Murray Anderegg 02/27/2013

This article describes how to print jobs from the Department’s UNIX computer systems.  Additional information on printing, including printing from other operating systems, can be found in the documents listed at the end of this article.

Printer naming conventions

Here is a list of example printer names:

ljsn156 – HP LaserJet printer room SN156
delsn107 – Dell Color printer in room SN107
djsn245 – HP DesignJet plotter in SN245
ljfb131 – HP LaserJet printer in room FB131

That is, there are two or three characters indicating the kind of printer, then two letters indicating the building, and three digits giving the room.  Most printers also are available with duplexing, i.e., printing on both sides of the page, enabled by adding a lower-case ‘d’ as a suffix to the printer name, e.g. ljsn266d.

UNIX Printing commands

NOTE: Linux users will probably prefer to use the document viewer to print most types of files under Linux. The GNOME document viewer is named ‘evince’. The document viewer applications have a rich palette of formatting options that can be altered and previewed.

Linux supports both BSD and System V style printing commands.  BSD UNIX uses the commands ‘lpr’ to print, ‘lpq’ to list a queue of jobs waiting for a printer and ‘lprm’ to remove a job from a queue.  Use the ‘-P’ flag to specify the printer.  For example, to print a job on ljsn156d, check the status of the queue, and cancel your job, execute:

lpr -Pljsn156d /etc/ntp.conf
lpq -Pljsn156d
lprm -Pljsn156d <job number>

System V UNIX uses the commands ‘lp’ to print, ‘lpstat’ to list print jobs and ‘cancel’ to remove job from a queue. ‘lp’ uses the ‘-d’ flag to specify the printer destination.  ‘lpstat’ and ‘cancel’ specify the printer queue as one of the options.  For example, to print a job on ljsn156d, check the status of the queue, and cancel your job, execute:

lp -d ljsn156d <filename>
lpstat ljsn156d
cancel <id> <ljsn156d>

A rough correlation between BSD and System V print commands is:

lpr – lp
lpq – lpstat
lprm – cancel

Read the manual pages on these commands for specifics.

Changing Your Default Printer

Unless you specify another printer at the time you submit a print job, your printout will print on the default printer.  If you wish to change your personal default printer, execute:

in tcsh or csh, setenv PRINTER <printername>
in bash or ksh, export PRINTER=<printername>

Executing the above commands will change your default printer for the current login session.  To change it permanently, place these commands in the appropriate rc file for your shell, e.g. .bashrc, .cshrc or .kshrc.

Changing your GNOME environment default printer

From the menus in the GNOME desktop environment, select:
‘System’ -> ‘Administration’ -> ‘Printing’
right-click on the printer and choose ‘Set as Default’.

Printing unformatted ASCII text

The standard UNIX commands to send jobs to printers are: ‘lpr’ and ‘lp’.  Without any options, these commands send output to the default printer.  To direct your job to another printer, use the appropriate option, e.g. ‘-P<printername>’ for ‘lpr’ or ‘-d <printername>’ for ‘lp’.  For example, to print a file to ljsn266d, use either:

lpr -Pljsn266d <filename>
lp -d ljsn266d <filename>

Printing formatted ASCII text

To print formatted ASCII text from a bsd system, use the ‘pr’ command.   This will send output to your default printer.   The input will be separated into 66-line pages, each with a 5-line header that includes the page number, date, time and the path name of the file and a 5-line trailer consisting of blank lines.   For example,

pr <pr-options> <filename> | lpr <lpr-options>
pr <pr-options> <filename> | lp <lp-options>

If you wish to do more advanced formatting on a printer, use the ‘enscript’ command.  Some features offered by enscript include the ability to print in landscape (rotated) mode, to specify your font, and to word-wrap text.  A common usage of the ‘enscript’ command is the command

enscript -2rG -P<printer> <filename>

This prints your text in landscape (rotated) mode, includes a “fancy” header, word-wraps your text, and prints in two columns. For more details on the enscript command, see the enscript manual page.

Printing PDF and PostScript file

A PDF file can be opened and printed in a document viewer application such as evince. This may be easier than trying to debug manual lpr/lp options.

Printing PDF and PostScript files in the Computer Science department is easy.  Postscript files are commonly given names ending in “.ps”, and they are files that begin with the characters “%!”.

PDF files are commonly given names ending in “.pdf”.  Although PDF files are binary and contain bytes that won’t display well in a terminal, they may be sent directly to a printer, using the same commands that you would use to print ASCII text:

lpr -P<printername> <filename>
lp -d <printername> <filename>

Please note that you should not attempt to use any ASCII text formatting commands, such as ‘print’ or ‘pr’, with either PDF or PostScript files.  For example, to print a file called myfile.txt to ljsn107d

lpr -P ljsn107 myfile.txt

To check the printer status:

lpstat -p ljsn107
lpq -Pljsn107

To cancel a print job:

cancel [ request-ID… ] [ printer… ]
lprm [ -Pprinter ] [ – ] [ job # … ]

More information about lp, lpr, lpstat, lpq, lpc, lprm and cancel can be found in the man pages.

Printing from a web browser

The web browsers in place on Red Hat Enterprise and Ubuntu Linux support printing directly from the browser.  Select the print item under File, then select the desired printer, and finally select Print.

Printing from the OpenOffice suite

The OpenOffice Suite under Linux supports printing directly to system printers.  Select the print item under File, then select the desired printer, and finally select Print.

Printing other kinds of files

Try opening the file that you wish to print in either its default application, editor or the document viewer (evince). This will usually be faster and end up with more usable output on the printer.

The Linux printing system supports printing many types of files directly using an lpr or lp command including: JPEG, GIF, PNG, PDF, PostScript and text.

In addition, under the GNOME Environment it can be helpful to try opening a document by double-clicking on it in the file browser, Nautilus, in order to ascertain whether Linux is able to understand the format of the file.

More information

These UNIX manual pages may also be helpful:

enscript – convert text files to PostScript – advanced formatting

BSD Style Print Commands:
lpq – display the queue of printer jobs
lpr – send a job to the printer
lprm – remove jobs from the printer queue

System V Style Print Commands:
lpstat – display the queue of printer jobs
lp – send a job to the printer
cancel – remove jobs from the printer queue

Printing Tips

Printing tips and techniques

Reviewed by Murray Anderegg 02/27/2013

This article describes various printing tips and techniques that were sent in by the users of this department. Further suggestions can be mailed to  Computer Services does not guarantee that all tips/techniques will work. Linux users wishing to configure complex printing options under GNOME or KDE may wish to consider using the document viewer application for their environment. The GNOME document viewer is ‘evince’. The document viewers can usually handle PDF files.

Simplex (one-sided) and duplex (two-sided) printing on HP LaserJet printers

When printing with the ‘lpr’ or ‘lp’ commands, append the desired option for the number of sides, e.g.

lpr -Pljsn266d -o sides=one-sided /etc/ntp.conf
lp -dljsn266d -o sides=one-sided /etc/ntp.conf


lpr -Pljsn266d -o sides=two-sided-long-edge /etc/ntp.conf
lp -dljsn266d -o sides=two-sided-long-edge /etc/ntp.conf

All of the public HP LaserJet printers are duplex capable and have duplexing enabled by default.

When printing from the Linux document viewer, evince, there is a large palette of selectable options including duplex under the ‘Page Setup’ tab.

How to print a TeX or LaTeX file

First convert a (La)TeX file to a DVI file:

tex file[.tex]


latex file[.tex]

This processes file.tex (optional .tex suffix) and writes to file.dvi.  Second, convert the dvi file to a pdv file:

dvipdf -o file.pdf file[.dvi]

This converts dvi file to pdf and writes to specified file file.pdf.  Then print the pdf file:

lpr -Pprintername file.pdf

Display utilities for dvi and ps files

xdvi displays dvi files.  evince (Document Viewer) displays pdf and ps (PostScript) files in the GNOME desktop environment.  dvi files can be converted to pdf and PostScript (see above) and viewed via evince.  This is especially convenient when you have PostScript included in your dvi file.  (xdvi doesn’t display included PostScript.)

evince is useful for previewing and/or printing the whole document or individual pages.  Since certain features of LaTeX don’t consistently work properly, please preview LaTeX-produced documents.

When debugging custom postscript try to do as much as possible with a previewer, but sometimes there are differences between evince and the real adobe implementations.

evince is available on the command-line.  evince is also the default application when a .pdf or a .ps file is clicked on in the nautilus file manager in the GNOME desktop environment.

Two-Up printing of ASCII text

Printing 2 pages of ASCII text on a single sheet:

enscript -2r <filename>

Or, to receive a fancier file header on each page,

enscript -2rG <filename>

pstops program

The ‘pstops’ program may be used to do almost any kind of rearranging of standard postscript documents, given the right arguments.  Unfortunately, figuring out the proper arguments can be quite a challenge.  Here are some easy answers.

Note that pstops operates as a unix filter, and thus it accepts the document to be formated as standard input and outputs the rearranged document as standard output.   It also lets you specify an input file, and, if given an input file, it lets you specify an output file as well.

Landscape mode:  We assume that the pages are already formated for portrait mode, so just turning them sideways would be pointless, unless you wanted to put two per page.  The incantation for doing this is:

pstops ‘2:0L@.65(7.825in,0)+1L@.65(7.825in,5.5in)’

Supposing you wanted to print 4 per page, it’s:

pstops ‘4:0@.5(0,5.5in)+1@.5(4.25in,5.5in)+2@.5(0,0)+3@.5(4.25in,0)’

To print a PostScript file two pages on one, use:

pstops ‘2:0L@.7(8.3in,-.2in)+1L@.7(8.3in,4.9in)’ | lpr -P<printer_name>

This prints two pages on one in landscape mode.

To reverse the page order of a document (This is useful when printing a document formated for a printer whose pages come out face up on a printer whose pages come out face down.):

pstops ‘1:-0’
psselect -r

To print a ps file that has been formated for A4 paper on letter-size paper, use the following:

pstops ‘(0,-1.3cm)’ | lpr -P$LASER

This shifts the text down a bit, so that there is a little more room at the top of the page.

To select a certain range of pages to be printed, use:

psselect -pS-E

Where “S” and “E” are the starting and ending page numbers. Either may be omitted, and the first and last pages will be assumed, respectively.

Capturing and printing X-Windows

To capture a copy of a window under X Windows or the GNOME or KDE desktop environments, use the xwd utility.  xwd grabs the focus from the window manager, and presents a cross-shaped cursor to the user.  xwd will then capture or dump the next window, in which the mouse is clicked.  By default, the screen capture is sent in binary output to the standard output of the terminal, in which the command was executed.  xwd provides the -out <filename> option to redirect the output to <filename>.  For example,

xwd -out my-terminal.xwd

xwd saves its output in XWD (X Window Dump) image data format.  The mogrify utility can be used to convert the data format to a more common format such as JPEG:

mogrify -format jpg my-terminal.xwd

This will create a new file my-terminal.jpg with a JPEG version of the window capture.

General suggestions

Occasionally files get corrupted. Therefore, preview a file before sending it to the printer.

When printing on odd sized paper (labels, etc.), use the manual feed option.  Then, bring your custom paper to the printer.

For more information on printing and printers, see our other help articles on printing, and the UNIX on-line maunal pages for ‘lpr’, ‘lp’, ‘pr’, ‘enscript’, and the various DVI utilities.  Online help is available from within evince.

Secure Printing

How to securely print on a Xerox multifunction device

This documents how to securely print to a Xerox multifunction device. It is assumed throughout this document that the user is already connected to the <> network.

Before you can secure print or send a fax using the print interface, you must connect to the printer and install the driver, as described in the help page on Windows printing.

Once you have installed the driver you can send a document to a Xerox multifunction device in SN107, SN266, or FB309.  Here is an example of how to send a secure print job from Microsoft Word.  Click on “File” in the top right hand corner of the Microsoft Word toolbar and navigate down to the “Print” option on the menu:

copy_of_pic5 (1)


Then, under “Printer”, select “xrxsn107” (red circle).

Click on “Printer Properties” to open the printing properties window (blue circle).

Next, select “Secure Print” from the “Job Type drop” down box.  This will open the Secure Print window, which will ask you to enter and then re-enter a 4-10 digit passcode that you will enter when you go to the Xerox device to pick-up your print job.


Once you have entered a passcode, go to the Xerox device and press the “Job Status” button.  Select “Secure Print Jobs”.  Press the line with your job, which should be listed with your login.  You will be prompted for your passcode.  Press “Release All” to release all of your jobs, or press the job you want to release and select “Release”.  Your job or jobs should now print.

For additional help or troubleshooting tips, please email

Making Posters