This is a discussion on cups works lpr doesn't within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I have just installed slack 11.0. Cups works after setting up the printer but printing jobs using lpr ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I have just installed slack 11.0. Cups works after setting up the printer but printing jobs using lpr don't. lpstat -d tells me: lpr: Error - no default destination available. What do I need to set to get the printer to work with lpr? Thanks, jwc |
| |||
| john connolly wrote: > Hi, > I have just installed slack 11.0. Cups works after setting up the printer > but printing jobs using lpr don't. lpstat -d tells me: lpr: Error - no > default destination available. What do I need to set to get the printer to > work with lpr? > Thanks, jwc You may have to uninstall CUPS and install apsfilter (check out Slackware 11.0 /pasture for package) and follow the instructions here: http://www.userlocal.com/articles/sl...inting-faq.php Hope that helps. Best regards, Bar |
| |||
| Bar wrote: > You may have to uninstall CUPS and install apsfilter (check out Slackware > 11.0 /pasture for package) and follow the instructions here: > > http://www.userlocal.com/articles/sl...inting-faq.php > > Hope that helps. It would certainly break CUPS. If Slack 11 and the cups package were installed recently, then /usr/bin/lpr should be a symlink to /usr/bin/lpr-cups, and it should work. The OP should be able to set a default destination (printer) at http://localhost:631/printers Each printer listing should include a button labelled "set as default." > > Best regards, > > Bar -- Old Man "I could be wrong again I remember once in August 1993 I was wrong, and I could be wrong again" - Paul Simon |
| |||
| In <2oudnZgbleWwV9fYnZ2dnUVZ_rudnZ2d@comcast.com>, Old Man wrote: > Bar wrote: > >> You may have to uninstall CUPS and install apsfilter (check out Slackware >> 11.0 /pasture for package) and follow the instructions here: >> Brute force. But cups is much better now than it used to be... > It would certainly break CUPS. If Slack 11 and the cups package were > installed recently, then /usr/bin/lpr should be a symlink > to /usr/bin/lpr-cups, and it should work. > > The OP should be able to set a default destination (printer) at > http://localhost:631/printers > Each printer listing should include a button labelled "set as default." Alternatively, "lpadmin -d name-of-the-printer" (as root, obviously). I had strange problems with the web-interface. Whenever I tried to set the default it wanted to load some non-existing remote web page. The lpadmin tool worked nicely. Maybe try "lpr -P name-of-the-printer name-of-the -file" first. Good luck Franz |
| |||
| On Fri, 03 Nov 2006 01:23:41 GMT john connolly <jconnolly@kc.rr.com> wrote: > Hi, > I have just installed slack 11.0. Cups works after setting up the printer > but printing jobs using lpr don't. lpstat -d tells me: lpr: Error - no > default destination available. What do I need to set to get the printer to > work with lpr? What do you mean by saying that "cups works"? lpr is a soft link to /usr/bin/lpr-cups, and, say, "lpr filename.txt" should work if "cups works". -- Mikhail |
| |||
| Mikhail Zotov wrote: > What do you mean by saying that "cups works"? lpr is a soft link to > /usr/bin/lpr-cups, and, say, "lpr filename.txt" should work if "cups works". > > -- Mikhail It should be a symbolic lint to /usr/bin/lpr-cups. But you can't be sure about that. If the OP installed also lprng after installing cups the lpr symbolic link will point to the lprng print spooler. The same logic applies to lpq and lprm. Regards, Kees. -- Kees Theunissen |
| |||
| On Fri, 03 Nov 2006 01:23:41 +0000, john connolly wrote: > Hi, > I have just installed slack 11.0. Cups works after setting up the printer > but printing jobs using lpr don't. lpstat -d tells me: lpr: Error - no > default destination available. What do I need to set to get the printer to > work with lpr? > Thanks, jwc Not much. http://localhost:631 administer your printers from the web interface. Cups is more or less the standard now and using any other printer system is asking for future incompatibilities. Cups can function just like LPRng and installing it or anything else from pasture is a mistake IMO. They're in the pasture because they are no longer part of most modern distros. -- Peter |
| |||
| On Fri, 03 Nov 2006 11:06:55 +0100 Kees Theunissen <theuniss@rijnh.nl> wrote: > Mikhail Zotov wrote: > > > What do you mean by saying that "cups works"? lpr is a soft link to > > /usr/bin/lpr-cups, and, say, "lpr filename.txt" should work if "cups works". > > > > -- Mikhail > > It should be a symbolic lint to /usr/bin/lpr-cups. > But you can't be sure about that. If the OP installed also lprng after > installing cups the lpr symbolic link will point to the lprng print > spooler. The same logic applies to lpq and lprm. You are surely right but I did the OP say he installed lprng? Regards, Mikhail |
| |||
| On Fri, 03 Nov 2006 01:23:41 +0000, john connolly wrote: > Hi, > I have just installed slack 11.0. Cups works after setting up the printer > but printing jobs using lpr don't. lpstat -d tells me: lpr: Error - no > default destination available. What do I need to set to get the printer to > work with lpr? > Thanks, jwc Just to finish this off: I installed slack 11 fresh using the setup screen. Later on I set cups up and it printed the test page ok and some printing jobs using openoffice worked. Yesterday I tried to print a job using lpr and the job didn't print, a new problem for me. Just now I discovered that lp -dhp5740 <file> works. Apparently in the past lpr knew where my printer is but now it doesn't. Presumably there is a config file somewhere that will fix this. Cheers, jwc |
| ||||
| john connolly wrote: > Just to finish this off: > I installed slack 11 fresh using the setup screen. Later on I set cups up > and it printed the test page ok and some printing jobs using openoffice > worked. Yesterday I tried to print a job using lpr and the job didn't > print, a new problem for me. Just now I discovered that lp -dhp5740 > <file> works. Apparently in the past lpr knew where my printer is but now > it doesn't. Presumably there is a config file somewhere that will fix > this. Cheers, jwc John, Please see my post and Franz' followup. There are two ways to fix it. Editing the config file is not one of them. The config file in question is actually /etc/cups/printers.conf which contains the pointer to the default printer location, _but it is written by cupsd_. Use the web interface or lpadmin to write the correct data into the file. Here is how the beginning of that file looks when you have designated a default printer: # Printer configuration file for CUPS v1.1.23 # Written by cupsd on Wed Oct 25 12:47:20 2006 <DefaultPrinter HP8540> <snip> -- Old Man "I could be wrong again I remember once in August 1993 I was wrong, and I could be wrong again" - Paul Simon |