LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2004, 05:59 PM   #1
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Rep: Reputation: 30
printer settings in programs?


well, i fallowed the CUPS quick start guide at linuxprinting.org and got my printer going to the point where I can print a test page by going to http://localhost:631/printers/ and clicking the "print test page" button under my printer.

but when I click the print button in mozilla or openoffice.org's swriter nothing hapens. when i click on print properties in mozilla it gives this for the printing command
"lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}"
but I dont know where those properties are stored or even what to set them to.

heres what localhost:631/printers says about my printer
Quote:
deskjet3420 HP DeskJet 3420 Foomatic/hpijs (recommended)
Description: usb printer
Location: /dev/
Printer State: idle, accepting jobs.
Device URI: usb://hp/deskjet%203420

#Oh yea, my ppd script is /usr/share/cups/model/HP-DeskJet_3420-hpijs.ppd

based on that what should I set those mozilla varriables to? (and how/where do i set them)
also, if i wanted to print a text file in the command line, what would i type? (i think its "lp" but i dont know what arguements to use)

Last edited by e1000; 01-10-2004 at 06:17 PM.
 
Old 07-16-2004, 11:51 AM   #2
brother
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
setting for mozilla etc..

If your printer works correctly from cups you need only execute:
lpoptions -d <name_of_your_printer>

in your case: lpoptions -d deskjet3420

this command create .lpoptions file and all cups client will be using this printer like default.

If your mozilla still will be not print, this means that probably 'lpr' command which is executing
by mozilla is not from cups but for example form lpRNG system.
Solution for this is check or you have lpr.cups binary and if is like this replace 'lpr'. Or more save
create link lpr.cups to for example /usr/local/bin and then set in your PATH variable this dir on the top.
For example edit your .bashrc and put
export PATH=/usr/local/bin:$PATH

should works :> Generally if you can print from CUPS you need only check your 'lpr'

regards :>
b.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Netbios settins in windows 2000 elynum Linux - Networking 1 02-06-2004 10:09 PM
Printer only working with K- programs odin123 Slackware 5 12-31-2003 04:35 PM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 07:39 PM
Programs are not using my printer (even though test page in cups works) TheOneAndOnlySM Slackware 4 10-14-2003 08:04 PM
Itnernational language settins, only english? ByNature Linux - Newbie 3 08-07-2003 12:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration