Fedora This forum is for the discussion of the Fedora Project. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
10-06-2004, 12:30 AM
|
#1
|
Member
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40
Rep:
|
Network printing
I've been struggling to get my Samsung ML-1710 printer shared between two FC2 systems. The printer works fine on both systems when locally connected (via USB) but I am unable to share it on my server. I should have the correct port open on my firewall (631), but even with my firewall disabled I can't print to the shared printer. I'm assuming its now an issue of CUPS not accepting the external print request. I tried editing cupsd.conf file (adding ALLOW ip_address) but I'm not sure if I added the line in the right place. The cupsd.conf file is rather large so heres the section regarding allowed network hosts: (if more is needed let me know).
----------
## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 10.100.36.31
#Encryption Required
</Location>
#
# End of "$Id: cupsd.conf.in,v 1.13 2003/04/10 20:14:04 mike Exp $".
#
<Location /printers/lp>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
AuthType None
</Location>
# Lines below are automatically generated - DO NOT EDIT
<Location /printers/printer>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
AuthType None
Allow from All
</Location>
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
BrowseAddress 255.255.255.255
Listen *:631
--------
The "Allow From 10.100.36.31" line is the line I added to try to get CUPS to accept requests from that IP. Also according to my (server) print manager my printer is marked as being shared. In the (client) print manager the networked printer's description is "Unable to get printer status (client-error-forbidden)!", other than that I'm not getting any errors to help with this problem. Nothing happens when I send a file to that shared printer. What am I missing?
|
|
|
10-06-2004, 04:17 PM
|
#2
|
Member
Registered: Jan 2002
Location: Canada
Distribution: redhat7.2
Posts: 169
Rep:
|
My setup is almost exactly the same as yours: My printer server has an USB samsung connected to it and my client is running a triple boot Windows2000, Fedora Core2 and Slack 10.
I'm at work and don't have my cupsd. conf config file in front of me ( I used to run Linux at work but my stupid manager obliged me to scrap my Linux partition ).
Just 1 question: you post on the Fedora Forum, but your distro is Slack 10.0 which one do you run ?
I have both on my client ( as previously mentioned ) and was unable to connect to the printer server because on Slack the cupsd service is desabled by default.
I'll post my cupsd.conf tonight, 3 or 4 extra lines only must be added to the default one.
P.S. If you run Fedora on the server, you can share the printer using KDE printer manager, select the printer and on the action menu click "share" or something like that
|
|
|
10-06-2004, 09:37 PM
|
#3
|
Member
Registered: Jan 2002
Location: Canada
Distribution: redhat7.2
Posts: 169
Rep:
|
First, here are my own network iP adresses:
192.168.0.1 Printer server
192.168.0.2 Client
Here are the lines I added or changed in my /etc/cupsd.conf:
#
# End of "$Id: cupsd.conf.in,v 1.13 2003/04/10 20:14:04 mike Exp $".
#
# Added by Biased turkey
Browsing On
BrowseAddress 192.168.0.2
<Location /printers>
Order Deny,Allow
Deny from All
BrowseAllow from 127.0.0.1
BrowseAllow from 192.168.0.2
Allow from 127.0.0.1
Allow from 192.168.0.2
</Location>
|
|
|
10-07-2004, 02:01 AM
|
#4
|
Member
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40
Original Poster
Rep:
|
Still not working. Biased, I made the changes you made to your cupsd.conf file. When you add a new printer, i assume you select Networked CUPS, then what path is yours? mine defaults to /printers/queue1, but in my cupsd.conf file there are multiple references to /printers/lp. I tried both paths with no success. It sounds like you've accomplished what I've been working at, so I have to be missing something. As for why I'm posting in the FC forum when I have Slack in my profile, its because my HDD crashed and I'm giving FC2 a whirl. So far everything has been going great except for this printer issue. This problem will not get the best of me, so I'm going to continue reading deeper into the wonderful world of CUPS. Hopefully someone will save me. Maybe I'll have better luck doing this via samba?
This is my new cupsd.conf file with the changes I thought I needed:
Whats up with the automatically generated section? Should my changes be present in there?
-------
## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
#Encryption Required
</Location>
#
# End of "$Id: cupsd.conf.in,v 1.13 2003/04/10 20:14:04 mike Exp $".
#
Browsing On
BrowseAddress 10.100.36.31
<Location /printers/lp>
Order Deny,Allow
Deny From All
BrowseAllow From 127.0.0.1
BrowseAllow From 10.100.36.31
Allow From 127.0.0.1
Allow From 10.100.36.31
AuthType None
</Location>
# Lines below are automatically generated - DO NOT EDIT
<Location /printers/printer>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
AuthType None
Allow from All
</Location>
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
BrowseAddress 255.255.255.255
Listen *:631
------
|
|
|
10-07-2004, 10:23 AM
|
#5
|
Member
Registered: Jan 2002
Location: Canada
Distribution: redhat7.2
Posts: 169
Rep:
|
First, a small question:
Did you configure the printer on the server with gnome, kde or via the web interface
http://localhost:631/admin ?
To make a clean start,
1) On the client, use gnome or kde to remove any printer
2) Do the same on the server + erase anything you added to the /etc/cupsd.conf
3) reboot the server and use ONLY the web interface to add a new printer on the server.
When using the web interface, nothing will be added to the cupsd.conf file, you'll have to edit it by hand ( that fact is mentionned in the cups administrator manual ).
On the other side, using gnome or kde will add automatically stuff to your cupsd.conf and that's bad.
Then restart server and client.
The client should ( as mentioned in the cups manual ) "automagically detect the shared printer
I've been through the 150+ pages Cups manual, but at least I got it working
It looks like your problem is that you try to config a printer using both ways.
If you want, tonight I can email you my complete cupsd.conf
|
|
|
10-09-2004, 12:50 PM
|
#6
|
Member
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40
Original Poster
Rep:
|
Originally I tried configuring the printer in the Gnome print manager, but after that didn't work I tried configuring it in the CUPS web interface. I'm away from home right now but when I get back I'll remove everything and start new. I'll work with just the CUPS web interface then add the proper lines to the cupsd.conf file. Quick question tho, where would the automatically detected printer show up? Where should I be able to browse to it? Thanks for all your help.
|
|
|
10-12-2004, 09:14 PM
|
#7
|
Member
Registered: Jan 2002
Location: Canada
Distribution: redhat7.2
Posts: 169
Rep:
|
To see on the client if the printer was detected, go to the KDE menu->System Settings->Printing.
Under the "queue name" title you should see "Browsed Queues" then click on the little triangle next to it.
You should then see the name of the printer located on the server.
|
|
|
All times are GMT -5. The time now is 12:44 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|