LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-12-2011, 06:47 PM   #1
vielmaj
LQ Newbie
 
Registered: Jun 2009
Posts: 24
Blog Entries: 1

Rep: Reputation: 0
Setting up CUPS clients


Hello,

I maintain a small cluster and I am trying to get all print jobs to go through the server instead of each client connected to the printer.

I have my server setup and I can run lpstat -v" and get

device for color405: ipp://128.193.96.74:631/printers/color405
device for EPSON_Stylus_Photo_R380: ipp://128.193.96.7:631/printers/EPSON_Stylus_Photo_R380
device for HP_Deskjet_F4400_series: ipp://128.193.96.7:631/printers/HP_Deskjet_F4400_series
device for Weniger303a: ipp://128.193.96.74:631/printers/Weniger303a
device for Weniger303a-Color: ipp://128.193.96.74:631/printers/Weniger303a-Color
device for Weniger412: ipp://128.193.96.74:631/printers/Weniger412
device for wngr412: socket://128.193.96.33
device for wngr497: dnssd://WNGR497-PRN2._printer._tcp.local/

The bottom two are the printers that are ran through the server.

I run "lpstat -r" and get

scheduler is running

Where I am confused is setting up the cups.conf file. The IP addresses I am connecting to are 128.193.97.x where x=1 to 37. On the server, I added

Listen *:631

and under <Location /> I added

Allow 128.193.97.0/255.255.255.0

On the client, in the /etc/cups/client.conf file I added the following

NameServer 128.193.97.2

I restart cups on both systems. Then on the client I go to
Desktop--->Administration--->Printing and it fails.

I am checking to see if I did anything wrong. Thanks!
 
Old 09-13-2011, 12:18 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi,

Just to make sure, what's the subnet mask on the server? All printers seem to be in the range 128.193.96.X so I assume the server is also in that range. Depending on the subnet mask set on the server your clients might not be able to connect.

Kind regards,

Eric
 
Old 09-13-2011, 05:51 PM   #3
vielmaj
LQ Newbie
 
Registered: Jun 2009
Posts: 24
Blog Entries: 1

Original Poster
Rep: Reputation: 0
I found out that when I setup the printers, I forgot to select "to share the printers connected to the system".

Now I get 4 different printers from other cups servers that I do not control. How do I tell a client machine to only look at my cups server. Here is my cupsd.conf file if needed.

LogLevel warn
MaxLogSize 1m
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseLocalProtocols
DefaultAuthType Basic
<Location />
# Restrict access to the server...
Order allow,deny
</Location>
<Location /admin>
# Restrict access to the admin pages...
Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Restrict access to the configuration files...
Order allow,deny
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
<Limit Create-Job Print-Job Print-URI>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
 
  


Reply

Tags
client, cups, server


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
Samba, CUPS, Windows NT clients : cannot add printer checkmate3001 Linux - Server 3 03-14-2008 10:10 AM
Samba, CUPS and Windows Clients billlagr Linux - Server 2 08-05-2007 10:31 PM
DISCUSSION: CUPS server with WinXP clients (SuSE 9.1) tp11235 LinuxAnswers Discussion 0 06-15-2006 04:23 PM
Print from cups server to lpd clients Drunkalot Linux - General 0 04-19-2005 04:49 AM
Setting up web clients g452 Linux - Networking 10 09-11-2004 12:24 PM


All times are GMT -5. The time now is 11:16 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