Printer Configurations
All material presented are licensed under The GNU Free Documentation License.
- Prerequisite.
- Local Printers.
- Network Printers.
- Example Network Printer Setup.
- Frequently Asked Questions.
- References.
Prerequisite
- Prior to purchasing the desired printer, check with openprinting.org to see if your printer is supported under Linux.
- A working linux computer is required.
- Install the following using apt-get or synaptics package manager:
- CUPS.
- cupsys-bsd for printing with
lp
in a terminal.
- gtklp for printing from Gnome.
If network printing with security is desired, a print server will need to be setup with user administration.
Updated: 2006-11-17
Back to top
Local Printers
Local printers are printers connected to your computer directly. Either through a usb connection, a parallel port or a serial port.
- Assemble your physical printer.
- Do a test page before connecting to the computer.
- Install your printer drivers identified from openprinting.org. Choose apt-get or synaptics package manager on your desktop or laptop for this task.
- Connect the physical printer to the computer using either a parallel cable if it's a parallel printer or a usb cable if it is a usb printer. Reboot your computer or restart your printer services for the advance users.
- open a web browser and go to CUPS. i.e.
http://localhost:631
- Select the
Administration
Tab and press Add Printer
.
- Select the device connection type
USB # x
or LPT # x
, where x is the port number.
- Enter the device uri
- Select the make of the printer and press continue.
- Select the model of the printer and press
Add Printer
.
You will need to enter printer administrator and the administrator password at this point unless you belonged in lpadmin group.
- Press the
Printers
tab after a confirmation of printer setup.
- Press the
Print Test Page
to do a real test.
Updated: 2006-11-17
Back to top
Network Printers
Because network printers are servers, administration should be carefully planned.
In a larger firm, printer administration is a special headache because of wider impact.
It involves user administrations, physical security, heterogeneous network environment, viruses etc. e.g. a cheque printer or a shared SAMBA printer between MS Windows® machines and Linux machines.
Print server administration is beyond the scope of this discussion, please check out CUPS in reference section for details.
The following refers to printers already administered or the printer is a standalone printer with locally spooled printer services.
- Assemble your physical printer.
- Do a test page before connecting to the network.
- Optional but recommended - setup your printer with a static IP address or better yet - a domain name.
On some network, DHCP server may change the initially assigned IP address of your printer depending on leases and clients coming and going - resulting in a mysterious lost connection later on.
- Connect it to the network.
- Test your printer using a web browser and go to your printer's address. You should see your printer responding.
- Install your printer drivers identified from openprinting.org. Choose apt-get or synaptics package manager on your desktop or laptop for this task.
- open a web browser and go to CUPS. ie.
http://localhost:631
- Select the
Administration
Tab and press Add Printer
.
- Select the device connection type, for example:
- AppSocket/HP JetDirect,
- Internet Printing Protocol (http),
- Internet Printing Protocol (ipp),
- Windows Printer via SAMBA.
- Enter the device uri
- Select the make of the printer and press
continue
.
- Select the model of the printer and press
Add Printer
.
You will need to enter printer administrator and the administrator password at this point unless you belonged in lpadmin group.
- Press the
Printers
tab after a confirmation of printer setup.
- Press the
Print Test Page
to do a real test.
- To setup the fax printer, repeat the above starting at add printer and enter the fax-uri and choose the fax driver instead.
Updated: 2006-11-17
Back to top
Example Network Printer Setup
This example is base on HP 6310 OfficeJet All-in-One. It is a standalone network printer with local spooling and no user security.
- Assemble your physical printer.
- Do a test page before connecting to the network.
- Optional but recommended - setup your printer with a static IP address or better yet - a domain name. For this example, say it was 192.168.15.135.
On some network, DHCP server may change the initially assigned IP address of your printer depending on leases and clients coming and going - resulting in a mysterious lost connection later on.
- Connect it to the network.
- Test your printer using a web browser and go to your printer's IP address. You should see your printer responding.
- Install hpijs-ppds, hplip, hplip-data either through apt-get or synaptics package manager on your desktop or laptop.
- Open a root terminal (sudo,su etc.) and run
# hp-makeuri 192.168.15.135
Make a note of the CUPS uri.
- open a web browser and go to CUPS.
http://localhost:631
- Select the
Administration
Tab and press Add Printer
.
- Select the device connection type
AppSocket/HP JetDirect
.
- Enter the CUPS uri
- Select the make of the printer
HP
and press continue.
- Select the model of the printer
HP OfficeJet 6300 Foomatic/hpijs (recommended) - HPLIP 1.6.10 (en)
and press Add Printer
.
You will need to enter root
and the root password at this point unless you belonged in lpadmin group.
- Press the
Printers
tab after a confirmation of printer setup.
- Press the
Print Test Page
to do a real test.
- To setup the fax printer, repeat the above starting at add printer and enter the HP Fax-uri and choose the HP FAX -HPLIP 1.6.10 (en) instead.
- Faxing with this HP printer only works with
HPLIP Toolbox
's sendfax utility. It encapsulates the printer data in fax information prior to sending to this printer.
- Install Xane to test scanning. No additional configuration is required.
This example was tested under Debian Linux Etch, hpijs 2.6.10+2.6.10-2, hplip 1.6.10-2, cups 1.2.7-1, foomatic-db/db-hpijs 20061031-1, Xane 0.991, sane 1.0.18-3.
Updated: 2006-12-27
Back to top
Frequently Asked Questions
Printer test successful but Mozilla Firefox won't print12
For Firefox users with version 1.5+, install gtklp and restart your print services. Okay, less advance users can just reboot.
For Firefox users with version 1.5-, do the following:
- from the Firefox File menu, choose Print,
- select a print queue in the Print dialog box. e.g. Postscript/queue_name,
- press Properties,
- Print Command setup:
For Opera users:
- Select File, Print.
- Choose the tab on the right Printer Program
- enter
gtklp
for Printer Program type and -stdin
for the Parameter type.
Printing is too big
Check the printer resolution. If you are set to 600dpi and the printer support 300dpi it will printer too big to fit the page.
Background not Printing in Mozilla Firefox/Iceweasel
Select File->Page Setup and check Printer background (background & images).
Printer test successful but how do I print from a terminal.
3
From a terminal/shell $ lp <filename>
Updated: 2006-12-27
Back to top
References
- OpenPrinting from the Free Standards Group on all printers and drivers.
- HPLIP - HP Linux Imaging and Printing on HP specific printers.
- CUPS - Common Unix Printing Systems, printing/spooling layer in Linux/Unix using Internet Printing Protocol (IPP)
- DHCP - Dynamic Host Configuration Protocol configuration depends on your router, server in your locally administered network. Read more in wiki.
- SAMBA - Not only does it provide file and print services for various Microsoft Windows® clients but can also integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a Domain Member. It can also be part of an Active Directory domain. Print sharing for windows clients is one of its functions.
- CERT - a computer security website where common posting of vulnerability can be found.
- 1Setting Up Mozilla/FireFox Printing - LINUX from Cornel Centre for Material Research Computing Facility.
- 2Printing in Debian (Firefox and Opera, too) by machiner 2005-05-25 from www.debiantutorial.org
- 3Debian and Windows Shared Printing mini-HOWTO from www.docmirror.net.
Back to top