Network :: Printing via IPP :: Linux

This document explains how to configure your Linux PC to print to the heavy-duty laser printers in the Computer centre i.e lp3 ( lp3 prints both/dual sides of the paper)  or lp2 (lp2 is single side of the paper) and lp4 (lp4 prints both/dual sides of the paper) which is present in B block first floor B 133. 

Requirements:

  • A PC in your office running Linux with Cups or LPRng
  • root  privileges to the computer
  • A working TCP/IP network connection.

First find out which printer daemon is running in the system with the command ps -ax | more. If it is Cups follow Cups procedure. If it is LPRng / lpd follow the LPRng procedure below.  

RedHat Linux 9 with Cups.

1. Open the "Printer configuration" window from system settings ==> printing.
2. Click on New. "Add a new print queue" will appear. click on "Forward" button.
3. In th "Queue name" window, type lp3 in Name field. Type "CC printer" in the description filed. Click on "Forward" button.
4. In the "Queue type" window, select "Networked CUPS(IPP) and type "printer.tifr.res.in" in "Server" field. type "/printers/lp3" in Path field for printing to lp3 printer in computer centre which is double side printer.
/printer/lp2 for single side printer.
/printer/lp4 for double side printer present in B133.
5. Click "Forward" button and proceed. 
6.In the "Printer model" window, select "Postscript printer" and click "Forward" button.
click "Apply" to finish the settings. 
7. A window will appear asking to print test page or not. Select "No" to test page. Similarly the same setup can be done for lp2 and lp4.

Linux with LPRng or lpd daemons.

1. To setup for the printers in computer centre, save the /etc/printcap to /etc/printcap.old. Copy this printcap file in the /etc folder.

2. Create directories with command 
 mkdir /var/spool/lpd/lp2
mkdir /var/spool/lpd/lp3
mkdir /var/spool/lpd/lp4

3. Now restart the LPRng daemon with the command line /etc/init.d/lpd  restart. 

Now one shoul able to print using commands like,
lpr -Plp2 <file name> 
lpr -Plp3 <file name> 
lpr -Plp4 <file name> 

 Note: 

 lp3 prints both/dual sides of the paper which is present in Computer Centre.

lp2 is single side of the paper which is present in Computer Centre.

lp4 prints both/dual sides of the paper which is present in B block first floor B 133.