Ashoori Group

Ashoori Group | Homepage

  • Increase font size
  • Default font size
  • Decrease font size

Printing from UNIX

There are two reasonable choices for printing from Unix; CUPS and LPRNG. CUPS integrates better with most graphical software, while LPRNG is a tiny bit better from the command line. I recommend CUPS.

Using CUPS (recommended)

Install cups. Become root with su and type

apt-get update; apt-get install cupsys cupsys-bsd cups-pdf

You can control your CUPS installation using your web browser; start a web browser and type http://localhost:631/ into the address bar.

Go to the "Administration" page, and make sure "Show printers shared by other systems" is on. You may have to type in "root" and your root password if it asks for authentication.

Go to the "Printers" page. You should see all the printers attached to electron.

To print from programs, just pick the printer. To print from the shell, type lpr filename to print to your default printer, or lpr -Pprintername filename to print to a different printer, ie:

lpr This e-mail address is being protected from spambots. You need JavaScript enabled to view it .0.1 foo.ps

lpr foo.ps

lpr This e-mail address is being protected from spambots. You need JavaScript enabled to view it .0.1 color_foo.ps

Using LPRNG

Install lprng. Become root with su and type

apt-get update; apt-get install lprng

To print from the shell, just type lpr -Pprintername@host filename, where printername is the printer name, and host is the host. For example

lpr -Plp@electron foo.ps; lpr -Pcolor@electron color_foo.ps

Different programs will integrate with this to lesser or tiny extents. You may have the best luck printing to a file, then printing the file from the shell.