LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-17-2005, 01:13 PM   #1
chuki
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Network printing CUPS-LPD problem.


I am running Fedora Core 4 on AMD 64 bit Opteron Dual Processors
and have HP LaserJet 2300 attached to it. Printer works fine (print test page). I want to share this printer with the other machine running Linux RedHat kernel 2.4.24.
On my side I have cups-libs-1.1.23-15 and xinetd-2.3.13-6 installed, since they were not were with default installation.
I have
cupsd (pid 19905) is running...
cups-config-daemon (pid 19892) is running...
xinetd (pid 19930) is running...

xinetd based services:
chargen: off
chargen-udp: off
cups-lpd: on
cvs: off

these are lines from /etc/cups/cupsd.conf

<Location /printers/HPLaser2300>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
AuthType None
Allow from All
</Location>

<Location /printers/MyPrinter>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
AuthType None
</Location>


Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
BrowseAddress 255.255.255.255
Listen *:631

I enable sharing of the printer in system-config-printer-gui for all hosts and enable LPD protocol as well.


On the client machine I tried to add UNIX printer LPD queue
with the the server my Fedora machine and queue name "HPLaser2300"

Once I finished it and try to see statistics by
lpq -a

I get that

Printer 'HPLaser2300@FEDORA' - cannot open connection - No route to host


I thought there might be problem with firewall on FEDORA so some of the ports are not allowed.

so I tried to add UNIX LPD printer on my FEDORA machine
I called it "MyPrinter"

after I tried to print a test page I got

"Remote host did not respond with the comand status byte after 300 second"
in the description column, and in the log file I see

D [17/Aug/2005:13:04:15 -0500] AcceptClient: 6 from localhost:631.
D [17/Aug/2005:13:04:15 -0500] ReadClient: 6 POST / HTTP/1.1
D [17/Aug/2005:13:04:15 -0500] ProcessIPPRequest: 6 status_code=1
D [17/Aug/2005:13:04:15 -0500] CloseClient: 6
D [17/Aug/2005:13:04:19 -0500] AcceptClient: 6 from localhost:631.
D [17/Aug/2005:13:04:19 -0500] ReadClient: 6 POST / HTTP/1.1
D [17/Aug/2005:13:04:19 -0500] ProcessIPPRequest: 6 status_code=1
D [17/Aug/2005:13:04:19 -0500] ReadClient: 6 POST / HTTP/1.1
D [17/Aug/2005:13:04:20 -0500] ProcessIPPRequest: 6 status_code=1
D [17/Aug/2005:13:04:20 -0500] ReadClient: 6 POST / HTTP/1.1
D [17/Aug/2005:13:04:20 -0500] ProcessIPPRequest: 6 status_code=0
D [17/Aug/2005:13:04:20 -0500] CloseClient: 6
D [17/Aug/2005:13:04:20 -0500] AcceptClient: 6 from localhost:631.
D [17/Aug/2005:13:04:20 -0500] ReadClient: 6 POST /printers/MyPrinter HTTP/1.1
D [17/Aug/2005:13:04:20 -0500] print_job: auto-typing file...
D [17/Aug/2005:13:04:20 -0500] print_job: request file type is application/postscript.
D [17/Aug/2005:13:04:20 -0500] check_quotas: requesting-user-name = 'root'
D [17/Aug/2005:13:04:20 -0500] print_job: requesting-user-name = 'root'
I [17/Aug/2005:13:04:20 -0500] Adding start banner page "none" to job 19.
I [17/Aug/2005:13:04:20 -0500] Adding end banner page "none" to job 19.
I [17/Aug/2005:13:04:20 -0500] Job 19 queued on 'MyPrinter' by 'root'.
D [17/Aug/2005:13:04:20 -0500] Job 19 hold_until = 0
D [17/Aug/2005:13:04:20 -0500] ProcessIPPRequest: 6 status_code=0
D [17/Aug/2005:13:04:20 -0500] CloseClient: 6
D [17/Aug/2005:13:04:30 -0500] AcceptClient: 6 from localhost:631.
D [17/Aug/2005:13:04:30 -0500] ReadClient: 6 POST / HTTP/1.1
D [17/Aug/2005:13:04:30 -0500] ProcessIPPRequest: 6 status_code=1
D [17/Aug/2005:13:04:30 -0500] CloseClient: 6


so what did I do wrong?
thank you
 
Old 08-17-2005, 04:59 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Change your "Order Deny,Allow" to "Order Allow,Deny"

Everything is hitting the Deny All block first and stopping..

Then place the Allow lines in the order you need.. eg,
Allow From 127.0.0.1
Allow From 192.168.1.0/24
Deny From All

Same with the Browse section..

The idea of the Order is to allow the most specific definition first and the most general last..
eg to block 3 pcs but allow the rest of the subnet..
 
  


Reply


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
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
samba + cups + network printing -> problem... tisam Linux - Software 2 12-28-2004 09:48 PM
samba + cups + network printing ->problem tisam Linux - Hardware 0 12-28-2004 06:03 AM
Cups and lpd printing problem visu Linux - General 0 02-02-2004 02:31 PM
How can I replace Redhat 9 printing via cups with lpd as in RH7 and 8? jhodge Red Hat 3 11-03-2003 05:29 PM


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

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