LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 10-19-2004, 09:03 PM   #1
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Rep: Reputation: 15
telling firefox to print to CUPS


(I'm using FreeBSD 5.3 Beta 7.)

How do I tell firefox to print to CUPS? I tried the print command "lpr-cups ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}" but it doesn't work.
 
Old 10-23-2004, 12:19 AM   #2
sjalex
Member
 
Registered: Oct 2004
Posts: 41

Rep: Reputation: 15
Do you get any error output from cups? any other error output in the logs?

the print command is ostensibly right, maybe specify full path (shot in the dark!)? I'm assuming the lpr-cups executable exists (:
 
Old 10-23-2004, 09:12 AM   #3
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Original Poster
Rep: Reputation: 15
No I didn't get any error. It just didn't do anything when I clicked "print."
 
Old 10-23-2004, 12:08 PM   #4
sjalex
Member
 
Registered: Oct 2004
Posts: 41

Rep: Reputation: 15
OK,

Should I assume cupsd is running, and the printer is all configured? I mean, can you print from other programs, or using the cups web interface (http://localhost:631) can you print a test page?

If so, you should then try the lpr-cups command on a command line to try printing a short text file, to make sure that executable is working.

If that works, then you should look at your cups error log, which will be somewhere like /var/log/cups/error_log to see if it sheds some light on the situation.
 
Old 10-23-2004, 12:22 PM   #5
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Original Poster
Rep: Reputation: 15
Yes, my printer was already configured properly and I printed a test page and everything. I don't see any problems in the error log. I don't think Firefox is communicating with cups.
 
Old 10-24-2004, 10:50 AM   #6
sjalex
Member
 
Registered: Oct 2004
Posts: 41

Rep: Reputation: 15
Firefox isn't supposed to communicate directly with cups, that's why there is a print command specified. Firefox calls the specified print command and pipes its output through that. Therefor you need to make sure that print command is working correctly.

If you know cups is working, you need to test the command you have listed in your firefox print command. In this case, lpr-cups as you noted in your first message.

just do 'lpr-cups xyz.txt' where xyz.txt is an arbitrary text file you create.

If this works, then I am out of ideas! But I am going to guess that it will fail. Additionally I am guessing that it'll fail because the file can't be found, either it's not on your path or doesn't exist, in which case you should probably change it (in firefox preferences) to lpr instead of lpr-cups.

That said, you can also test to determine whether the executable exists by doing 'locate lpr-cups' which will give you a list of files with that string in their path.
 
Old 11-05-2004, 05:50 AM   #7
ptrck
LQ Newbie
 
Registered: Nov 2004
Location: Australia
Posts: 1

Rep: Reputation: 0
Have you checked that your printer is set as the default one in cups (go to the printer page and click the set as default button)? That was the problem for me.
-ptrck
 
Old 11-05-2004, 08:15 AM   #8
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Original Poster
Rep: Reputation: 15
I found out the problem. lpr-cups doesn't exist.
 
Old 11-05-2004, 08:31 AM   #9
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
if you use kde you can use the command 'kprinter' for the print command in firefox and that works.
 
Old 11-21-2004, 08:21 AM   #10
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Rep: Reputation: 30
I am having the same problem. I have changed the command to lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

I can print out of anything but firefox. There is nothing in the error log. Any other thoughts?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
getting Firefox to print to CUPS with shared printer Lleb_KCir Linux - Software 5 07-27-2005 09:43 AM
Print to CUPS printer in FireFox pnellesen Slackware 6 01-30-2005 11:41 AM
Using Cups, K apps won't print, but Abiword does print tigerflag Slackware 10 01-14-2005 08:34 AM
OfficeJet G85, CUPS Web based Admin test print works, lpr/lp dose not. ptal-print OK. NLR Linux - Hardware 2 09-20-2004 02:59 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:31 PM.

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