Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-21-2005, 09:59 AM   #1
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
gnome print manager dosn't see valid printer queue

I have a laserjet IIIp (wPCL5) on lp0, it configures fine and I can print a cups test page OK. However, the gnome print manager insists that "no printer detected" and wants to start the printer configuration wizard.

I havn't tried this logged in as root, so it may be a permission problem. However, it has been going before - I'll get to that in a bit.

On command line, if I try:

$ lpr /dev/lp0 test.txt

I get: "permission denied" ... well OK so:

# lpr /dev/lp0 test.txt

and I get: "lpr: error - scheduler not responding!"

However, if I try it this way:

$ lpr -P laserjet3p test.txt

It prints away and generally looks innocent.

Interestingly, the last printing I did was via dvips thus:

$dvips mybook.dvi

which worked fine then, but gives me
This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (
' TeX output 2005.05.08:1956' -> |lpr
lpr: error - scheduler not responding!
<>Broken pipe
though it works fine with:

$ dvips -P laserjet3p mybook.dvi

I'm pretty sure this is a clue!

Now - it's been a while since I printed anything. Two major changes have occured since:

1. Network set up - with NFS shares. This computer is the server.
2. Mozilla Firefox installed

Now Firefox had the famouse "cannot print" trouble - which I was testing when I found that the print manager couldn't detect the printer queue. However, I got firefox to print by replacing the default print command with "lpr -P laserjet3p".

So - I understand why lpr /dev/lp0 gives permission denied - but why cannot the print server see the printer dammit!
Old 05-22-2005, 08:23 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Well - what to say mate? :)

I suggest reading
man lpr

CUPS has never intended for you to try and use a
raw device in the first place, what it's trying to do (I
assume that this is what happens) to queue the CONTENT
of /dev/lp0 to the QUEUE.

For all I know the only "problem" you may have that
there's no default queue defined within CUPS, in which
case a
$dvips mybook.dvi
would fail indeed.

Old 05-23-2005, 03:36 AM   #3
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Original Poster
Rep: Reputation: 198Reputation: 198
Sure - have read lpr man page - as well as the associated pages.
For eg.
# lpstat -p
lpstat: get-printers failed: client-error-forbidden
I have gone through the regular FC printer setup - and checked the printer as default and still Gnome Print Manager says there are no printers.

There is still a possibility this is a permissions problem - but what is this "scheduler" thing?

The command from the print-manager launcher says " %F" so I guess I go look for that perl script ...
$ ls -l
-rwxrwxr-x  1 root root 8891 Dec 18  2003
This is 0775 - still didn't work with 0777 so I put it back.

Looking thorugh the script, I see there is an optional logfile commented out. With the logfile enabled, I redid the printer config ... here's what got stuck in /tmp/tryprint.log
Got -1 arguments to try doing something with
This comes from the very first part of the script:
$title = "--title \"Desktop Print Dialog\"";
$printer_list = "";

$homedir = $ENV{'HOME'};

open(LOG, ">/tmp/tryprint.log");
#open(LOG, ">/dev/null");

print LOG "Got $#ARGV arguments to try doing something with\n";

if ($#ARGV < 0) {
    # assume that they are trying to manage queues
    #$msg = "You passed no files to print, starting print queue manager.";
    #$foo = `gdialog $title --infobox "Your print request could not be completed for the following reason: $msg" 40 40 2>&1`;
So I try looking for "gnome-print-manager":
$ man gnome-print-manager
No manual entry for gnome-print-manager
$ gnome-print-manager
lpstat: get-printers failed: client-error-forbidden
So the first thing that happens is that the print manager asks lprstat and, as we know, lprsts is not allowed to look ... where? Presumably there's a config file of some kind that lprstat look in?

It did occur to me that this may be trouble from deleting the first line in /etc/hosts ... so I restored the line:
Code: lo loopback
- shut down the network services - started them up again - still no joy.
Old 05-23-2005, 04:12 AM   #4
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Original Poster
Rep: Reputation: 198Reputation: 198
Googling the error message (lpstat: get-printers failed: client-error-forbidden) I end up with
which is a blog ... hunting for entries about get-printers, I end up with screeds about setting up a cups printer server,
but learned what the conf file was ...

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  <!-- Only root can send this message -->
  <policy user="root">
    <allow send_interface="com.redhat.PrinterSpooler"/>

  <!-- Allow any connection to receive the message -->
  <policy context="default">
    <allow receive_interface="com.redhat.PrinterSpooler"/>


still looking - but I've gotta go: 8:27pm
Old 05-23-2005, 06:01 AM   #5
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Original Poster
Rep: Reputation: 198Reputation: 198
Had a look through cups.conf ... and read the rror logs. kept seeing browse errors. Stood awhile in uffish thought did I...

Recalled: when I deitied the /etc/hosts file, it was because the host was set to the same address as the loopback interface ... now it is set to the local lan address - could this be it?

!!!!! YESSS !!!!!
Good grief! Perhaps I should set the browse path in the cups.conf?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE 3.2.3 Print Manager not detecting printer? m_lp_ql_m Linux - Hardware 0 08-23-2004 10:58 PM
Can't select Parellel printer with Cups Admin or KDE Print Manager EnigmaX Linux - Newbie 6 08-16-2004 09:29 PM
GNOME print manager not finding installed printer wfpoole Red Hat 12 10-31-2003 08:53 PM
Gnome print manager problem wfpoole Linux - Software 0 09-04-2003 02:10 PM
location of print queue in gnome/redhat7.1 gwydian Linux - Newbie 1 12-10-2001 05:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration