*BSDThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.