View previous topic :: View next topic |
Author |
Message |
Thomy22 n00b
Joined: 22 Apr 2008 Posts: 2 Location: bei Heidelberg -> Germany
|
Posted: Tue Apr 22, 2008 10:18 am Post subject: Problem with CUPS Server |
|
|
Hi guys
Forst of all i must say that i'm pretty new to gentoo, sorry for that.
I emerged cups as i wanted to create a local CUPS-server (no need to be accessed from windows machines as they have their own printserver). I set the correct USE flags and emerged cups, all without problems. Now i edited the cups.d.conf
Code: |
#
# "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
Allow xxx.xxx.xxx.* these represents 4 subnets
Allow xxx.xxx.xxx.*
Allow xxx.xxx.xxx.*
Allow xxx.xxx.xxx.*
Deny all
</Location>
# Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order allow,deny
Allow localhost
Allow xxx.xxx.xxx.xxx this is the IP of my local machine, from which i want to access the CUPS webinterface
Deny all
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an adminstrator...
<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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an adminstrator to authenticate...
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
#
# End of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $".
#
|
When i try to access the webinterface, i always get and 403
my error_log says:
Code: |
I [22/Apr/2008:12:15:02 +0200] Scheduler shutting down normally.
I [22/Apr/2008:12:15:02 +0200] Saving remote.cache...
I [22/Apr/2008:12:15:02 +0200] Saving job cache file "/var/cache/cups/job.cache"...
I [22/Apr/2008:12:15:04 +0200] Listening to 0.0.0.0:631 (IPv4)
I [22/Apr/2008:12:15:04 +0200] Listening to :::631 (IPv6)
I [22/Apr/2008:12:15:04 +0200] Listening to /var/run/cups/cups.sock (Domain)
I [22/Apr/2008:12:15:04 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [22/Apr/2008:12:15:04 +0200] Using default TempDir of /var/spool/cups/tmp...
I [22/Apr/2008:12:15:04 +0200] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [22/Apr/2008:12:15:04 +0200] Configured for up to 100 clients.
I [22/Apr/2008:12:15:04 +0200] Allowing up to 100 client connections per host.
I [22/Apr/2008:12:15:04 +0200] Using policy "default" as the default!
I [22/Apr/2008:12:15:04 +0200] Full reload is required.
I [22/Apr/2008:12:15:04 +0200] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
I [22/Apr/2008:12:15:04 +0200] Loading job cache file "/var/cache/cups/job.cache"...
I [22/Apr/2008:12:15:04 +0200] Full reload complete.
I [22/Apr/2008:12:15:05 +0200] Listening to 0.0.0.0:631 on fd 2...
E [22/Apr/2008:12:15:05 +0200] Unable to open listen socket for address :::631 - Address family not supported by protocol.
I [22/Apr/2008:12:15:05 +0200] Listening to /var/run/cups/cups.sock on fd 3...
|
What is this, i don't have an idea? |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Tue Apr 22, 2008 10:26 am Post subject: |
|
|
Moved from Installing Gentoo to Networking & Security. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
Thomy22 n00b
Joined: 22 Apr 2008 Posts: 2 Location: bei Heidelberg -> Germany
|
Posted: Wed Apr 23, 2008 1:57 pm Post subject: |
|
|
Hi
The server is now installed as well as the printers. Now i have the problem that when i connect through my kde add-printer dialogue the available printers are displayed, but then i must enter the type and manufacturer of the printer (as for the ppd file). I want to make the printserver behave like in windows, e.g when i connect to it and add a printer, the "driver" should be downloaded and installed automatically. How can i do this (because otherwise it wouldn't make any sence to run a remote cups server, as it is only a summary of the installed printers and the user has to know, which manufacturer and model the printer is)?
Greets Thomy |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|