Sign up to Submit Content

Sign Up / Login
debiantutorials.org accepts no advertising. Quit asking me.
feed image
Guests 25
If you can walk and chew gum at the same time, you can run Linux

debian tutorials | debian support forum
I invite anyone familiar with Linux or Debian to register here at debiantutorials.org and write tutorials or related articles in order that everyone in the community can benefit. I'm talking to you. You say it better than I do. Your ideas just flow like water. There's so much more that needs to be written in ways that your cousin or an office manager can benefit from. Consider it.
debiantutorials.org is built on and runs on Debian.
Creative Commons License
Printing in Debian
Printing in Debian (Firefox and Opera, too) PDF Print E-mail
Written by machiner   
Wednesday, 25 May 2005 04:42

[EDIT: This article is pretty old news. It's not bad info, but it's so much easier now. Nothing in it is necessary in Debian Lenny except for installing hpijs, hplip and cups; that is, if you have an HP printer.]

I don't know what kind of printer you have. Mine is a popular HP OfficeJet 7110. Like you, I want to print. (see this print server tutorial to share your printer LAN wide.) In Windows you pop the CD-ROM that came with your printer into your "cup-holder" and it fires up for you asking to be installed. It's terribly easy and only slightly less easy to set up your printer in Linux.

You must know right off that not all printers have drivers for Linux. Lexmark is notoriously difficult to set up, well, some models. HP's work fine. I hear tell Epsons are easy enough to set up, etc., etc., etc. Like I said, I have an HP OfficeJet and it's a piece of cake.

Fire up Synaptic and do a search for cupsys. If it's not already installed, install it cupsys and its dependencies. If you've been following along you already have cupsys and cupsys-client installed. It went in when you installed your desktop(s) via base-config.

If you want to be able to print from the traditional Linux tools and utilities, say Emacs, then you will also want to install cupsys-bsd. It's a replacement and bridge, if you will, to LPD and the like. It's terrific. Go ahead and install it. Also, if you use Mozilla products (and some other programs) you probably want to install gtklp.

Now lets install the Foomatics. Search for foomatic in Synaptic and mark to install the following:foomatic-db, foomatic-filters-ppds, foomatic-filters, foomatic-db-hpijs, (for HP) also if you have an HP OfficeJet go ahead and install hplip. Hplip replaces hpoj. Let any dependencies be installed.

See, only slightly less easy than using a CD-ROM. After these packages are installed you have the option of setting your printer up via the gnome-cups-manager widget (Applications, Desktop Preferences, System Tools, Printing) or in your browser pointing to 127.0.0.1:631. Both are using Cups, they're both the same thing. I use my browser because it's always open. Go ahead and set your printer up going through the succeeding prompts using either cups front-end. See, printing in Linux (Debian) is a piece of cake. Play around with your settings - sometimes I print a "confidential" cover page just to mess with my kids, or when we're playing "super-spy". Super-spy ROCKS!

You may have problems printing from Mozilla, Firefox and/or Thunderbird. (Firefox 1.5 prints just fine without modification.) No problem, we anticipated this. Install (or revel in your foresight!) gtklp either from the Debian repositories or grab the tar file and compile it like all the cool kids do. Once it's installed, open Firefox (do the same in Mozilla and T.Bird) and then click "Print" from the file menu. When the dialog box opens, click Properties. Replace this line:

lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

with the following

/usr/bin/gtklp

If you're using KDE add this line instead:

kprinter --stdin

...and how about this - my old favorite Windows browser - Opera - has once again secured a position among my favorite apps. I won't go into why I like Opera so much here, but if you want to use it and if you want to print with it you should probably do the following: Click File, Print. Choose the tab on the right Printer Program and fill in the following spaces with the following commands: for Printer Program type in gtklp and for the Parameter type in -stdin. That's it. Now, print that cool-ass page.


machiner 25 may 05 09:45:27



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.
Comments
Add New RSS
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly:
:dry::lol::kiss::D:pinch::(:shock:
:X:side::):P:unsure::woohoo::huh:
:whistle:;):s:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.
Guest  - Worked great   |70.19.195.xxx |2005-10-03 02:41:10
You sir are officially bookmarked!!!
Guest  - Tom Walder   |70.22.186.xxx |2005-10-10 09:38:09
Works like a dream - thanks
Guest  - Tim Hardy   |70.19.233.xxx |2005-09-21 13:07:30
I wish I'd found this yesterday, it would have saved me a lot of time. However, you have solved my
"firefox isn't printing" issue so thank you for that. Excellent site and an excellent set of
tutorials. Thank you for sharing all this information.
Guest   |70.22.159.xxx |2005-09-09 18:49:00
This was exactly the information I needed. The instructions for KDE worked perfectly. Thank you. :grin
Guest  - Easy and Useful   |70.19.220.xxx |2005-10-13 14:02:39
It solves a big problem printing from firefox in debian: great!
Guest  - Thanks for the How-To   |70.22.156.xxx |2005-11-04 02:41:21
The information worked perfectly.
Great job!
Guest  - Spot on   |71.126.60.xxx |2005-11-28 13:36:20
Thank you!!! :grin
Guest  - Thanks   |203.87.37.xxx |2005-12-09 12:29:34
Finally, success thanks to your guidance. :grin
Guest  - Thanks!   |80.63.164.xxx |2006-01-17 01:29:06
With a tiny amount of package installer wrestlinng, your howto worked even on my broken Linux installation.
Good work
Guest   |71.162.70.xxx |2006-03-05 07:41:36
thanks...made the change in mozilla and it works!

not sure about your reference to using KDE and adding
"kprinter --stdin". Does this mean if I use Konqueror? Or in KDE Print Manager? I have no clue where
to add the line. wud appreciate any additional info. Thanks again.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Wednesday, 25 February 2009 15:02