Unix Technical Forum

cups works lpr doesn't

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 07:42 PM
john connolly
 
Posts: n/a
Default cups works lpr doesn't

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 07:42 PM
Bar
 
Posts: n/a
Default Re: cups works lpr doesn't

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 07:42 PM
Old Man
 
Posts: n/a
Default Re: cups works lpr doesn't

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 07:42 PM
Franz M. Sauerzopf
 
Posts: n/a
Default Re: cups works lpr doesn't

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 07:42 PM
Mikhail Zotov
 
Posts: n/a
Default Re: cups works lpr doesn't

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 07:42 PM
Kees Theunissen
 
Posts: n/a
Default Re: cups works lpr doesn't

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 07:42 PM
Peter
 
Posts: n/a
Default Re: cups works lpr doesn't

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 07:42 PM
Mikhail Zotov
 
Posts: n/a
Default Re: cups works lpr doesn't

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 07:42 PM
john connolly
 
Posts: n/a
Default Re: cups works lpr doesn't

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 07:42 PM
Old Man
 
Posts: n/a
Default Re: cups works lpr doesn't

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:02 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com