Printing to Xerox printers from the Linux command line

Objective

To print to a Xerox printer installed by Xerox Print Manager via the Linux command line.

Environment

RHEL, Fedora, Debian, or Ubuntu machines that have Xerox Print Manager and a printer installed.

Procedure

 Note
Standard print utilities, such as lpr, will not work. Also, xeroxprint requires a filename argument; it does not recognize stdin pipelines.
  1. Please read over the article on Printing from Linux, if you are just getting started.
  2. If your print queues are not already installed, and you have confirmed you have an account on the LSA Technology Services Randall Linux print server, you may use one of the following links to install Xerox Print Manager and a printer:
  3. In the directory of the document you want printed, enter: xeroxprint -d printername documenttobeprinted
  4. For RHEL 8 and Fedora 30+ installations, the command is: xeroxofficeprint -d printername documenttobeprinted
  5. If you are using a GUI or X session, the Xerox print dialog box will appear (options such as stapling and hole punching are specified here). If there is no display present (e.g., a normal SSH session), the print job will go ahead with the default settings.
 Caution
If you are accessing a system remotely via X11 forwarding, the Xerox printer dialog may try to use the system console, where you probably won't see it. Although command-line printing from a terminal window may work according to the above instructions, we recommend at this time that you download the file and print from your local system. Alternatively, you can print via MPrint if no special printer options are required.