LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   telling firefox to print to CUPS (https://www.linuxquestions.org/questions/%2Absd-17/telling-firefox-to-print-to-cups-244877/)

Rhatlinux 10-19-2004 09:03 PM

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.

sjalex 10-23-2004 12:19 AM

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 (:

Rhatlinux 10-23-2004 09:12 AM

No I didn't get any error. It just didn't do anything when I clicked "print."

sjalex 10-23-2004 12:08 PM

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.

Rhatlinux 10-23-2004 12:22 PM

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.

sjalex 10-24-2004 10:50 AM

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.

ptrck 11-05-2004 05:50 AM

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

Rhatlinux 11-05-2004 08:15 AM

I found out the problem. lpr-cups doesn't exist.

mAineAc 11-05-2004 08:31 AM

if you use kde you can use the command 'kprinter' for the print command in firefox and that works.

degraffenried13 11-21-2004 08:21 AM

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?


All times are GMT -5. The time now is 04:12 AM.