*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-19-2004, 09:03 PM
|
#1
|
|
Member
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128
Rep:
|
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.
|
|
|
|
10-23-2004, 12:19 AM
|
#2
|
|
Member
Registered: Oct 2004
Location: Houston
Distribution: CentOS, ubuntu
Posts: 41
Rep:
|
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 (:
|
|
|
|
10-23-2004, 09:12 AM
|
#3
|
|
Member
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128
Original Poster
Rep:
|
No I didn't get any error. It just didn't do anything when I clicked "print."
|
|
|
|
10-23-2004, 12:08 PM
|
#4
|
|
Member
Registered: Oct 2004
Location: Houston
Distribution: CentOS, ubuntu
Posts: 41
Rep:
|
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.
|
|
|
|
10-23-2004, 12:22 PM
|
#5
|
|
Member
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128
Original Poster
Rep:
|
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.
|
|
|
|
10-24-2004, 10:50 AM
|
#6
|
|
Member
Registered: Oct 2004
Location: Houston
Distribution: CentOS, ubuntu
Posts: 41
Rep:
|
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.
|
|
|
|
11-05-2004, 05:50 AM
|
#7
|
|
LQ Newbie
Registered: Nov 2004
Location: Australia
Posts: 1
Rep:
|
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
|
|
|
|
11-05-2004, 08:15 AM
|
#8
|
|
Member
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128
Original Poster
Rep:
|
I found out the problem. lpr-cups doesn't exist.
|
|
|
|
11-05-2004, 08:31 AM
|
#9
|
|
Member
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201
Rep:
|
if you use kde you can use the command 'kprinter' for the print command in firefox and that works.
|
|
|
|
11-21-2004, 08:21 AM
|
#10
|
|
Member
Registered: Sep 2003
Posts: 228
Rep:
|
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?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:37 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|