Setting up a parallel printer using CUPS
From NewbieDOC
- Chris Lale
- chrislale AT users DOT berlios DOT de
Go to NewbieDOC index
Revision History
Revision 1.0 | 2nd July 2005 | Revised by Chris Lale | ||||||||||
Initial release. | ||||||||||||
| ||||||||||||
Revision 1.1 | 8th February 2006 | Revised by Chris Lale | ||||||||||
Adapted for NewbieDOC wiki by converting source to wikitext. Some formatting and other minor changes made. Removed the section on OpenOffice.org which is no longer relevant. Added a few screenshots. | ||||||||||||
| ||||||||||||
Revision 1.2 | 18th April 2006 | Revised by Chris Lale | ||||||||||
Added package gs-esp to the list of packages and a recommendation for BIOS parallel port setting following discussion on the Debian-user list. | ||||||||||||
| ||||||||||||
Revision 1.3 | 27th November 2007 | Revised by Chris Lale | ||||||||||
Reformatted for newbiedoc package. | ||||||||||||
This article explains how to install a parallel port printer on a Debian GNU/Linux computer using CUPS (the Common Unix Printing System). These instructions have been tested with Debian 3.1 (Sarge).
1 Installing the Debian packagesInstall these packages using Aptitude, gnome-cups-manager (may be already installed) - CUPS printer admin tool for GNOME cupsomatic.ppd - linuxprinting.org printer support - transition package cups-pdf - PDF printer for CUPS cupsys - Common UNIX Printing System(tm) - server cupsys-bsd - Common UNIX Printing System(tm) - BSD commands cupsys-client - Common UNIX Printing System(tm) - client programs (SysV) cupsys-driver-gimpprint - Gimp-Print printer drivers for CUPS gs-esp - The Ghostscript PostScript interpreter - ESP version During installation, you will be asked to configure cupsys-bsd. Configuring cupsys-bsd This package contains a server that can accept BSD-style print jobs and submit them to CUPS. It should only be set up if you have other computers that submit jobs over the network via "BSD" or "LPR" services, and these computers cannot be converted to use the IPP protocol that CUPS uses. Do you want to set up the BSD lpd compatibility server? Choose No, the default, unless you know otherwise. 2 BIOS setting for parallel portYou may need to change your printer port setting in BIOS to EPP mode. You can access the BIOS setup program at boot time before the bootloader or Linux is booted. Usually, this means pressing the Del or F1 key a few times immediately after switching on the computer. (The key or key combination itself it usually displayed immediately after you turn the system on.) Find the setting for parallel port and change it to EPP (Enhanced Parallel Port). 3 Checking that the kernel supports the parallel port (optional)You can check that the kernel supports the parallel port by checking that the appropriate kernel modules are loaded. Open a terminal (or a terminal window in X) and log in as root. Use the # lsmod | grep parport parport_pc 33348 0 parport 37320 1 parport_pc If you do not find them, use a utility such as 4 Installing a printer using the CUPS web interfaceUse a web browser eg Links (in a console) or Firefox (in X). To use CUPS, visit this URL: http://localhost:631/ Follow the link 'Do Administration Tasks', and enter 'root' and the root password when prompted for a user.
This takes you to the Admin page. From the Printers menu choose Add Printer.
Enter the details for your printer and choose a driver. For instance, here is an example showing how to add a Samsung ML-1450 printer.
Printer Samsung has been added successfully. 5 Configuring the printer and printing a test pageClick on the link to the printer. If you have followed the previous section, follow the link to Samsung. If you cannot see a link, choose Printers from the main menu at the top of the page first.
Default Destination: Samsung Samsung Samsung ML-1450 Foomatic/pxlmono (recommended) Description: Samsung ML-1450 Location: Office Printer State: idle, accepting jobs. Device URI: parallel:/dev/lp0 Configure the printer by clicking on the Configure Printer button in the menu.
Check that the Page Size corresponds to your printer.
Print a test page and check that it prints correctly.
Hopefully, your page will print perfectly. If the page does not fill the paper exactly, you may need to go back and choose a different driver. If the worst comes to the worst, try a generic driver such as 'Epson' or 'HP Laserjet'. Check your printer manual for the generic emulations available on your printer. If you have lost the manual, try Google. 6 Appendix A: LicenceCopyright © 2005-2007 Chris Lale, chrislale AT users DOT berlios DOT de.
Go to NewbieDOC index |