Archive for September, 2008

Linux Printing System

There are 3 Types of Linux Printing System, which are:


(Barkley Standard Distribution – Line Printing Demand)

  • In first linux distro
  • Consists of Daemon (lpd)
  • Config files in /etc (princap)
  • spooling directory (/var/spool/lpd)
  • Basic commands (lpr, lprm, lpq)

2.LPRng (Next Generation)

  • Same printcap file format
  • Advance filtering
  • User defined queues (~/.printcap)
  • Allows system V commands (lp , lp stat)


  • Based on internet printing protocol standard (IPP)
  • IPP makes deployment over WAN easy
  • IPP can be secured using auth and SSL connections
  • Recognizes Postcript Printer Definition (PPD)
  • Extends usage to non-ps printers
  • Allows multitude of filters (backend filters, document conversion filters,traslation filters)

Advantage of CUPS

  • Automatic network configuration
  • LPD and system V interfaces
  • Web based administration interface
  • Easily handles non-postscript docs
  • Intelligent filtering /etc/cups/*.convs
  • Basic C API allows easy integration
  • GNOME & KDE provide tools

You can do the CUP setting either by GUI, terminal or through your web browser by accesing port 631 of your local system (http://localhost:631)


1.Conversion filters- convert postcript to native language of printer
2.I/O filters -transfer data to device
3.Processing filters – transform document data

The following is part of the /etc/printcap file (as the configuration file and it lists all printers in your system):

lp|Generic dot-matrix printer entry:\

lp is the printer device.

sd is the spooling directory.

lf is the log file.

mx is the maximum size of the file which is being printed.

If You haven’t installed your CUPS (but it is installed by default in your computer), You can install it by running the following command in your terminal:

apt-get install cupsys

To send the file to be printed, u just have to run the following command:

lpr (filename)

It doesn’t require to put the printer name if u have set the default printer.

The LPC status can be checked by running the following command:

aya@ayaPC:/var/run$ lpc
lpc> status
queuing is enabled
printing is enabled
no entries
printer idle
lpc> exit

To display the queue in your printer, all u need to do is just run the following command:


It will returns no entries if there is no file to be printed.

To cancel or remove a queue process, just run the following commad:

lprm [users] [job#s]

to know the job#, u can check it by running the lpq command.

more infomation in :


Leave a Comment


For those of u who wanna try remote login in Linux (I use Ubuntu HH in this case),..U can try to enable XDMCP (XDMCP is the protocol that allows remote login. ) protocol..

In the terminal please type:

sudo vi /etc/gdm/gdm.conf

gdm.conf is a read-only file, so we must login as root ๐Ÿ™‚

then edit the XDMCP part of the file


then restart the GDM..

sudo /etc/init.d/gdm restart

then it will show u list of remote logins (if there is more than 1 remote logins,..if only one,then u will just see 1 remote login option)

Leave a Comment