cups da browser

Se avete problemi con l'installazione e la configurazione di Slackware postate qui. Non usate questo forum per argomenti generali... per quelli usate Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
gambo
Linux 0.x
Linux 0.x
Messaggi: 16
Iscritto il: mer 20 ott 2004, 0:00

cups da browser

Messaggio da gambo »

Saluti a tutti
<BR>
<BR>Questo è il mio primo messaggio di aiuto su questo sito.
<BR>
<BR>Sto usando o almeno cercando di usare una slack 10.
<BR>Ho però un problema con cups.
<BR>Ho già letto i vari messaggi riguardo a questo argomento (magari qualcuno mi è sfuggito).
<BR>Quando mi connetto a localhost:631 non ho nessuna risposta pur avendo installato cups, avendolo attivato e reso eseguibile.
<BR>Ho provato anche a disinstallare il pacchetto e reinstallarlo ma il risultato non cambia.
<BR>Quando stoppo e riavvio cups con /etc/rc.d/rc.cups start e stop o viceversa non mi si presenta alcun messaggio indice che il comando è stato accettato (credo)
<BR>
<BR>Ho provato anche a usare cupsd e mi risponde:
<BR>
<BR>cupsd: Child exited with status 98!
<BR>
<BR>Nella gestione stampanti di kde se uso cups si blocca tutto
<BR>
<BR>Se riavvio cups con restart mi dice:
<BR>
<BR>cups: restarted scheduler.
<BR>
<BR>In breve non riesco a connettermi alla porta 631
<BR>
<BR>Non so più che fare !!!!
<BR>
<BR>Grazie in anticipo per l´aiuto.<br>

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

cups da browser

Messaggio da samiel »

Prova a controllare /etc/cups/cupsd.conf
<BR>e accertati che ci sia una e una sola riga del tipo
<BR>Port 631. Se ne hai per qualche motivo un´altra
<BR>come Listen 192.168.100:631 toglila.
<BR>comunque posta il file in questione che ci diamo un´occhiata...
<BR>
<BR>M.<br>

gambo
Linux 0.x
Linux 0.x
Messaggi: 16
Iscritto il: mer 20 ott 2004, 0:00

cups da browser

Messaggio da gambo »

Perdona la mia ignoranza ma cosa significherebbe quel "posta"
<BR>
<BR>Comunque nel file cupsd.conf c´e la riga port:631 non commentata e anche delle righe tipo
<BR>
<BR>Location />
<BR>Order Deny,Allow
<BR>Deny From All
<BR>Allow From 127.0.0.1
<BR></Location>
<BR>
<BR>e simili non commentate.
<BR>
<BR>Grazie<br>

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

cups da browser

Messaggio da samiel »

Sembrerebbe in ordine... "Posta" significa
<BR>riportarlo qui ... Hai un firewall attivato?
<BR>
<BR>M.<br>

gambo
Linux 0.x
Linux 0.x
Messaggi: 16
Iscritto il: mer 20 ott 2004, 0:00

cups da browser

Messaggio da gambo »

guarddog è disattivato.
<BR>
<BR>Siccome mi son venuti n-mila dubbi quali sarebbero i servizi che dovrebbero essere partiti per far si che tutto funzioni?
<BR>
<BR>e soprattutto chmod a-x serve per disattivarli ?
<BR>
<BR>e ancora per renderli attivabili all´avvio uso chmod 755?
<BR>
<BR>sto dicendo fesserie???
<BR>
<BR>fermate il mondo.
<BR>
<BR>ecco il file
<BR>------------------------
<BR>
<BR>#
<BR># "$Id: cupsd.conf.in,v 1.13 2003/04/10 20:14:04 mike Exp $"
<BR>#
<BR># Sample configuration file for the Common UNIX Printing System (CUPS)
<BR># scheduler.
<BR>#
<BR># Copyright 1997-2003 by Easy Software Products, all rights reserved.
<BR>#
<BR># These coded instructions, statements, and computer programs are the
<BR># property of Easy Software Products and are protected by Federal
<BR># copyright law. Distribution and use rights are outlined in the file
<BR># "LICENSE.txt" which should have been included with this file. If this
<BR># file is missing or damaged please contact Easy Software Products
<BR># at:
<BR>#
<BR># Attn: CUPS Licensing Information
<BR># Easy Software Products
<BR># 44141 Airport View Drive, Suite 204
<BR># Hollywood, Maryland 20636-3111 USA
<BR>#
<BR># Voice: (301) 373-9603
<BR># EMail: <a href="mailto:cups-info@cups.org" target="_new">cups-info@cups.org</a>
<BR># WWW: <a href="http://www.cups.org" target="_blank" target="_new">http://www.cups.org</a>
<BR>#
<BR>
<BR>########################################################################
<BR># #
<BR># This is the CUPS configuration file. If you are familiar with #
<BR># Apache or any of the other popular web servers, we´ve followed the #
<BR># same format. Any configuration variable used here has the same #
<BR># semantics as the corresponding variable in Apache. If we need #
<BR># different functionality then a different name is used to avoid #
<BR># confusion... #
<BR># #
<BR>########################################################################
<BR>
<BR>
<BR>########
<BR>######## Server Identity
<BR>########
<BR>
<BR>#
<BR># ServerName: the hostname of your server, as advertised to the world.
<BR># By default CUPS will use the hostname of the system.
<BR>#
<BR># To set the default server used by clients, see the client.conf file.
<BR>#
<BR>
<BR>#ServerName myhost.domain.com
<BR>
<BR>#
<BR># ServerAdmin: the email address to send all complaints/problems to.
<BR># By default CUPS will use "root@hostname".
<BR>#
<BR>
<BR>#ServerAdmin <a href="mailto:root@your.domain.com" target="_new">root@your.domain.com</a>
<BR>
<BR>
<BR>########
<BR>######## Server Options
<BR>########
<BR>
<BR>#
<BR># AccessLog: the access log file; if this does not start with a leading /
<BR># then it is assumed to be relative to ServerRoot. By default set to
<BR># "/var/log/cups/access_log"
<BR>#
<BR># You can also use the special name "syslog" to send the output to the
<BR># syslog file or daemon.
<BR>#
<BR>
<BR>#AccessLog /var/log/cups/access_log
<BR>
<BR>#
<BR># Classification: the classification level of the server. If set, this
<BR># classification is displayed on all pages, and raw printing is disabled.
<BR># The default is the empty string.
<BR>#
<BR>
<BR>#Classification classified
<BR>#Classification confidential
<BR>#Classification secret
<BR>#Classification topsecret
<BR>#Classification unclassified
<BR>
<BR>#
<BR># ClassifyOverride: whether to allow users to override the classification
<BR># on printouts. If enabled, users can limit banner pages to before or
<BR># after the job, and can change the classification of a job, but cannot
<BR># completely eliminate the classification or banners.
<BR>#
<BR># The default is off.
<BR>#
<BR>
<BR>#ClassifyOverride off
<BR>
<BR>#
<BR># DataDir: the root directory for the CUPS data files.
<BR># By default "/usr/share/cups".
<BR>#
<BR>
<BR>#DataDir /usr/share/cups
<BR>
<BR>#
<BR># DefaultCharset: the default character set to use. If not specified,
<BR># defaults to "utf-8". Note that this can also be overridden in
<BR># HTML documents...
<BR>#
<BR>
<BR>#DefaultCharset utf-8
<BR>
<BR>#
<BR># DefaultLanguage: the default language if not specified by the browser.
<BR># If not specified, the current locale is used.
<BR>#
<BR>
<BR>#DefaultLanguage en
<BR>
<BR>#
<BR># DocumentRoot: the root directory for HTTP documents that are served.
<BR># By default "/usr/share/doc/cups".
<BR>#
<BR>
<BR>#DocumentRoot /usr/share/doc/cups
<BR>
<BR>#
<BR># ErrorLog: the error log file; if this does not start with a leading /
<BR># then it is assumed to be relative to ServerRoot. By default set to
<BR># "/var/log/cups/error_log"
<BR>#
<BR># You can also use the special name "syslog" to send the output to the
<BR># syslog file or daemon.
<BR>#
<BR>
<BR>#ErrorLog /var/log/cups/error_log
<BR>
<BR>#
<BR># FileDevice: determines whether the scheduler will allow new printers
<BR># to be added using device URIs of the form "file:/foo/bar". The default
<BR># is not to allow file devices due to the potential security vulnerability
<BR># and due to the fact that file devices do not support raw printing.
<BR>#
<BR>
<BR>#FileDevice No
<BR>
<BR>
<BR>#
<BR># FontPath: the path to locate all font files (currently only for pstoraster)
<BR># By default "/usr/share/cups/fonts".
<BR>#
<BR>
<BR>#FontPath /usr/share/cups/fonts
<BR>
<BR>#
<BR># LogLevel: controls the number of messages logged to the ErrorLog
<BR># file and can be one of the following:
<BR>#
<BR># debug2 Log everything.
<BR># debug Log almost everything.
<BR># info Log all requests and state changes.
<BR># warn Log errors and warnings.
<BR># error Log only errors.
<BR># none Log nothing.
<BR>#
<BR>
<BR>LogLevel info
<BR>
<BR>#
<BR># MaxLogSize: controls the maximum size of each log file before they are
<BR># rotated. Defaults to 1048576 (1MB). Set to 0 to disable log rotating.
<BR>#
<BR>
<BR>#MaxLogSize 0
<BR>
<BR>#
<BR># PageLog: the page log file; if this does not start with a leading /
<BR># then it is assumed to be relative to ServerRoot. By default set to
<BR># "/var/log/cups/page_log"
<BR>#
<BR># You can also use the special name "syslog" to send the output to the
<BR># syslog file or daemon.
<BR>#
<BR>
<BR>#PageLog /var/log/cups/page_log
<BR>
<BR>#
<BR># PreserveJobHistory: whether or not to preserve the job history after a
<BR># job is completed, cancelled, or stopped. Default is Yes.
<BR>#
<BR>
<BR>#PreserveJobHistory Yes
<BR>
<BR>#
<BR># PreserveJobFiles: whether or not to preserve the job files after a
<BR># job is completed, cancelled, or stopped. Default is No.
<BR>#
<BR>
<BR>#PreserveJobFiles No
<BR>
<BR>#
<BR># AutoPurgeJobs: automatically purge jobs when not needed for quotas.
<BR># Default is No.
<BR>#
<BR>
<BR>#AutoPurgeJobs No
<BR>
<BR>#
<BR># MaxCopies: maximum number of copies that a user can request. Default is
<BR># 100.
<BR>#
<BR>
<BR>#MaxCopies 100
<BR>
<BR>#
<BR># MaxJobs: maximum number of jobs to keep in memory (active and completed.)
<BR># Default is 500; the value 0 is used for no limit.
<BR>#
<BR>
<BR>#MaxJobs 500
<BR>
<BR>#
<BR># MaxJobsPerPrinter: maximum number of active jobs per printer. The default
<BR># is 0 for no limit.
<BR>#
<BR>
<BR>#MaxJobsPerPrinter 0
<BR>
<BR>#
<BR># MaxJobsPerUser: maximum number of active jobs per user. The default
<BR># is 0 for no limit.
<BR>#
<BR>
<BR>#MaxJobsPerUser 0
<BR>
<BR>#
<BR># MaxPrinterHistory: controls the maximum number of history collections
<BR># in the printer-state-history attribute. Set to 0 to disable history
<BR># data.
<BR>#
<BR>
<BR>#MaxPrinterHistory 10
<BR>
<BR>#
<BR># Printcap: the name of the printcap file. Default is /etc/printcap.
<BR># Leave blank to disable printcap file generation.
<BR>#
<BR>
<BR>#Printcap /etc/printcap
<BR>
<BR>#
<BR># PrintcapFormat: the format of the printcap file, currently either
<BR># BSD or Solaris. The default is "BSD".
<BR>#
<BR>
<BR>#PrintcapFormat BSD
<BR>#PrintcapFormat Solaris
<BR>
<BR>#
<BR># PrintcapGUI: the name of the GUI options panel program to associate
<BR># with print queues under IRIX. The default is "/usr/bin/glpoptions"
<BR># from ESP Print Pro.
<BR>#
<BR># This option is only used under IRIX; the options panel program
<BR># must accept the "-d printer" and "-o options" options and write
<BR># the selected printer options back to stdout on completion.
<BR>#
<BR>
<BR>#PrintcapGUI /usr/bin/glpoptions
<BR>
<BR>#
<BR># RequestRoot: the directory where request files are stored.
<BR># By default "/var/spool/cups".
<BR>#
<BR>
<BR>#RequestRoot /var/spool/cups
<BR>
<BR>#
<BR># RemoteRoot: the name of the user assigned to unauthenticated accesses
<BR># from remote systems. By default "remroot".
<BR>#
<BR>
<BR>#RemoteRoot remroot
<BR>
<BR>#
<BR># ServerBin: the root directory for the scheduler executables.
<BR># By default "/usr/lib/cups".
<BR>#
<BR>
<BR>#ServerBin /usr/lib/cups
<BR>
<BR>#
<BR># ServerRoot: the root directory for the scheduler.
<BR># By default "/etc/cups".
<BR>#
<BR>
<BR>#ServerRoot /etc/cups
<BR>
<BR>
<BR>########
<BR>######## Fax Support
<BR>########
<BR>
<BR>#
<BR># FaxRetryLimit: the number of times a fax job is retried.
<BR># The default is 5 times.
<BR>#
<BR>
<BR>#FaxRetryLimit 5
<BR>
<BR>#
<BR># FaxRetryInterval: the number of seconds between fax job retries.
<BR># The default is 300 seconds/5 minutes.
<BR>#
<BR>
<BR>#FaxRetryInterval 300
<BR>
<BR>
<BR>########
<BR>######## Encryption Support
<BR>########
<BR>
<BR>#
<BR># ServerCertificate: the file to read containing the server´s certificate.
<BR># Defaults to "/etc/cups/ssl/server.crt".
<BR>#
<BR>
<BR>#ServerCertificate /etc/cups/ssl/server.crt
<BR>
<BR>#
<BR># ServerKey: the file to read containing the server´s key.
<BR># Defaults to "/etc/cups/ssl/server.key".
<BR>#
<BR>
<BR>#ServerKey /etc/cups/ssl/server.key
<BR>
<BR>
<BR>########
<BR>######## Filter Options
<BR>########
<BR>
<BR>#
<BR># User/Group: the user and group the server runs under. Normally this
<BR># must be lp and sys, however you can configure things for another
<BR># user or group as needed.
<BR>#
<BR># Note: the server must be run initially as root to support the
<BR># default IPP port of 631. It changes users whenever an external
<BR># program is run, or if the RunAsUser directive is specified...
<BR>#
<BR>
<BR>#User lp
<BR>#Group sys
<BR>
<BR>#
<BR># RIPCache: the amount of memory that each RIP should use to cache
<BR># bitmaps. The value can be any real number followed by "k" for
<BR># kilobytes, "m" for megabytes, "g" for gigabytes, or "t" for tiles
<BR># (1 tile = 256x256 pixels.) Defaults to "8m" (8 megabytes).
<BR>#
<BR>
<BR>#RIPCache 8m
<BR>
<BR>#
<BR># TempDir: the directory to put temporary files in. This directory must be
<BR># writable by the user defined above! Defaults to "/var/spool/cups/tmp" or
<BR># the value of the TMPDIR environment variable.
<BR>#
<BR>
<BR>#TempDir /var/spool/cups/tmp
<BR>
<BR>#
<BR># FilterLimit: sets the maximum cost of all job filters that can be run
<BR># at the same time. A limit of 0 means no limit. A typical job may need
<BR># a filter limit of at least 200; limits less than the minimum required
<BR># by a job force a single job to be printed at any time.
<BR>#
<BR># The default limit is 0 (unlimited).
<BR>#
<BR>
<BR>#FilterLimit 0
<BR>
<BR>########
<BR>######## Network Options
<BR>########
<BR>
<BR>#
<BR># Ports/addresses that we listen to. The default port 631 is reserved
<BR># for the Internet Printing Protocol (IPP) and is what we use here.
<BR>#
<BR># You can have multiple Port/Listen lines to listen to more than one
<BR># port or address, or to restrict access:
<BR>#
<BR># Port 80
<BR># Port 631
<BR># Listen hostname
<BR># Listen hostname:80
<BR># Listen hostname:631
<BR># Listen 1.2.3.4
<BR># Listen 1.2.3.4:631
<BR>#
<BR># NOTE: Unfortunately, most web browsers don´t support TLS or HTTP Upgrades
<BR># for encryption. If you want to support web-based encryption you´ll
<BR># probably need to listen on port 443 (the "https" port...)
<BR>#
<BR>
<BR>#Port 80
<BR>#Port 443
<BR>Port 631
<BR>
<BR>#
<BR># HostNameLookups: whether or not to do lookups on IP addresses to get a
<BR># fully-qualified hostname. This defaults to Off for performance reasons...
<BR>#
<BR>
<BR>#HostNameLookups On
<BR>
<BR>#
<BR># KeepAlive: whether or not to support the Keep-Alive connection
<BR># option. Default is on.
<BR>#
<BR>
<BR>#KeepAlive On
<BR>
<BR>#
<BR># KeepAliveTimeout: the timeout before Keep-Alive connections are
<BR># automatically closed. Default is 60 seconds.
<BR>#
<BR>
<BR>#KeepAliveTimeout 60
<BR>
<BR>#
<BR># MaxClients: controls the maximum number of simultaneous clients that
<BR># will be handled. Defaults to 100.
<BR>#
<BR>
<BR>#MaxClients 100
<BR>
<BR>#
<BR># MaxClientsPerHost: controls the maximum number of simultaneous clients that
<BR># will be handled from a specific host. Defaults to 10 or 1/10th of the
<BR># MaxClients setting, whichever is larger. A value of 0 specifies the
<BR># automatic (10 or 1/10th) setting.
<BR>#
<BR>
<BR>#MaxClientsPerHost 0
<BR>
<BR>#
<BR># MaxRequestSize: controls the maximum size of HTTP requests and print files.
<BR># Set to 0 to disable this feature (defaults to 0.)
<BR>#
<BR>
<BR>#MaxRequestSize 0
<BR>
<BR>#
<BR># Timeout: the timeout before requests time out. Default is 300 seconds.
<BR>#
<BR>
<BR>#Timeout 300
<BR>
<BR>
<BR>########
<BR>######## Browsing Options
<BR>########
<BR>
<BR>#
<BR># Browsing: whether or not to broadcast and/or listen for CUPS printer
<BR># information on the network. Enabled by default.
<BR>#
<BR>
<BR>#Browsing On
<BR>
<BR>#
<BR># BrowseProtocols: which protocols to use for browsing. Can be
<BR># any of the following separated by whitespace and/or commas:
<BR>#
<BR># all - Use all supported protocols.
<BR># cups - Use the CUPS browse protocol.
<BR># slp - Use the SLPv2 protocol.
<BR>#
<BR># The default is "cups".
<BR>#
<BR># NOTE: If you choose to use SLPv2, it is *strongly* recommended that
<BR># you have at least one SLP Directory Agent (DA) on your
<BR># network. Otherwise, browse updates can take several seconds,
<BR># during which the scheduler will not respond to client
<BR># requests.
<BR>#
<BR>
<BR>#BrowseProtocols cups
<BR>
<BR>#
<BR># BrowseAddress: specifies a broadcast address to be used. By
<BR># default browsing information is not sent!
<BR>#
<BR># Note: HP-UX does not properly handle broadcast unless you have a
<BR># Class A, B, C, or D netmask (i.e. no CIDR support).
<BR>#
<BR># Note: Using the "global" broadcast address (255.255.255.255) will
<BR># activate a Linux demand-dial link with the default configuration.
<BR># If you have a LAN as well as the dial-up link, use the LAN´s
<BR># broadcast address.
<BR>#
<BR># The @LOCAL address broadcasts to all non point-to-point interfaces.
<BR># For example, if you have a LAN and a dial-up link, @LOCAL would
<BR># send printer updates to the LAN but not to the dial-up link.
<BR># Similarly, the @IF(name) address sends to the named network
<BR># interface, e.g. @IF(eth0) under Linux. Interfaces are refreshed
<BR># automatically (no more than once every 60 seconds), so they can
<BR># be used on dynamically-configured interfaces, e.g. PPP, 802.11, etc.
<BR>#
<BR>
<BR>#BrowseAddress x.y.z.255
<BR>#BrowseAddress x.y.255.255
<BR>#BrowseAddress x.255.255.255
<BR>#BrowseAddress 255.255.255.255
<BR>#BrowseAddress @LOCAL
<BR>#BrowseAddress @IF(name)
<BR>
<BR>#
<BR># BrowseShortNames: whether or not to use "short" names for remote printers
<BR># when possible (e.g. "printer" instead of "printer@host".) Enabled by
<BR># default.
<BR>#
<BR>
<BR>#BrowseShortNames Yes
<BR>
<BR>#
<BR># BrowseAllow: specifies an address mask to allow for incoming browser
<BR># packets. The default is to allow packets from all addresses.
<BR>#
<BR># BrowseDeny: specifies an address mask to deny for incoming browser
<BR># packets. The default is to deny packets from no addresses.
<BR>#
<BR># Both "BrowseAllow" and "BrowseDeny" accept the following notations for
<BR># addresses:
<BR>#
<BR># All
<BR># None
<BR># *.domain.com
<BR># .domain.com
<BR># host.domain.com
<BR># nnn.*
<BR># nnn.nnn.*
<BR># nnn.nnn.nnn.*
<BR># nnn.nnn.nnn.nnn
<BR># nnn.nnn.nnn.nnn/mm
<BR># nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
<BR># @LOCAL
<BR># @IF(name)
<BR>#
<BR># The hostname/domainname restrictions only work if you have turned hostname
<BR># lookups on!
<BR>#
<BR>
<BR>#BrowseAllow address
<BR>#BrowseDeny address
<BR>
<BR>#
<BR># BrowseInterval: the time between browsing updates in seconds. Default
<BR># is 30 seconds.
<BR>#
<BR># Note that browsing information is sent whenever a printer´s state changes
<BR># as well, so this represents the maximum time between updates.
<BR>#
<BR># Set this to 0 to disable outgoing broadcasts so your local printers are
<BR># not advertised but you can still see printers on other hosts.
<BR>#
<BR>
<BR>#BrowseInterval 30
<BR>
<BR>#
<BR># BrowseOrder: specifies the order of BrowseAllow/BrowseDeny comparisons.
<BR>#
<BR>
<BR>#BrowseOrder allow,deny
<BR>#BrowseOrder deny,allow
<BR>
<BR>#
<BR># BrowsePoll: poll the named server(s) for printers
<BR>#
<BR>
<BR>#BrowsePoll address:port
<BR>
<BR>#
<BR># BrowsePort: the port used for UDP broadcasts. By default this is
<BR># the IPP port; if you change this you need to do it on all servers.
<BR># Only one BrowsePort is recognized.
<BR>#
<BR>
<BR>#BrowsePort 631
<BR>
<BR>#
<BR># BrowseRelay: relay browser packets from one address/network to another.
<BR>#
<BR>
<BR>#BrowseRelay source-address destination-address
<BR>#BrowseRelay @IF(src) @IF(dst)
<BR>
<BR>#
<BR># BrowseTimeout: the timeout for network printers - if we don´t
<BR># get an update within this time the printer will be removed
<BR># from the printer list. This number definitely should not be
<BR># less the BrowseInterval value for obvious reasons. Defaults
<BR># to 300 seconds.
<BR>#
<BR>
<BR>#BrowseTimeout 300
<BR>
<BR>#
<BR># ImplicitClasses: whether or not to use implicit classes.
<BR>#
<BR># Printer classes can be specified explicitly in the classes.conf
<BR># file, implicitly based upon the printers available on the LAN, or
<BR># both.
<BR>#
<BR># When ImplicitClasses is On, printers on the LAN with the same name
<BR># (e.g. Acme-LaserPrint-1000) will be put into a class with the same
<BR># name. This allows you to setup multiple redundant queues on a LAN
<BR># without a lot of administrative difficulties. If a user sends a
<BR># job to Acme-LaserPrint-1000, the job will go to the first available
<BR># queue.
<BR>#
<BR># Enabled by default.
<BR>#
<BR>
<BR>#ImplicitClasses On
<BR>
<BR>#
<BR># ImplicitAnyClasses: whether or not to create "AnyPrinter" implicit
<BR># classes.
<BR>#
<BR># When ImplicitAnyClasses is On and a local queue of the same name
<BR># exists, e.g. "printer", "printer@server1", "printer@server1", then
<BR># an implicit class called "Anyprinter" is created instead.
<BR>#
<BR># When ImplicitAnyClasses is Off, implicit classes are not created
<BR># when there is a local queue of the same name.
<BR>#
<BR># Disabled by default.
<BR>#
<BR>
<BR>#ImplicitAnyCLasses Off
<BR>
<BR>#
<BR># HideImplicitMembers: whether or not to show the members of an
<BR># implicit class.
<BR>#
<BR># When HideImplicitMembers is On, any remote printers that are
<BR># part of an implicit class are hidden from the user, who will
<BR># then only see a single queue even though many queues will be
<BR># supporting the implicit class.
<BR>#
<BR># Enabled by default.
<BR>#
<BR>
<BR>#HideImplicitMembers On
<BR>
<BR>
<BR>########
<BR>######## Security Options
<BR>########
<BR>
<BR>#
<BR># SystemGroup: the group name for "System" (printer administration)
<BR># access. The default varies depending on the operating system, but
<BR># will be "sys", "system", or "root" (checked for in that order.)
<BR>#
<BR>
<BR>#SystemGroup sys
<BR>
<BR>#
<BR># RootCertDuration: How frequently the root certificate is regenerated.
<BR># Defaults to 300 seconds.
<BR>#
<BR>
<BR>#RootCertDuration 300
<BR>
<BR>#
<BR># Access permissions for each directory served by the scheduler.
<BR># Locations are relative to DocumentRoot...
<BR>#
<BR># AuthType: the authorization to use:
<BR>#
<BR># None - Perform no authentication
<BR># Basic - Perform authentication using the HTTP Basic method.
<BR># Digest - Perform authentication using the HTTP Digest method.
<BR>#
<BR># (Note: local certificate authentication can be substituted by
<BR># the client for Basic or Digest when connecting to the
<BR># localhost interface)
<BR>#
<BR># AuthClass: the authorization class; currently only "Anonymous", "User",
<BR># "System" (valid user belonging to group SystemGroup), and "Group"
<BR># (valid user belonging to the specified group) are supported.
<BR>#
<BR># AuthGroupName: the group name for "Group" authorization.
<BR>#
<BR># Order: the order of Allow/Deny processing.
<BR>#
<BR># Allow: allows access from the specified hostname, domain, IP address,
<BR># network, or interface.
<BR>#
<BR># Deny: denies access from the specified hostname, domain, IP address,
<BR># network, or interface.
<BR>#
<BR># Both "Allow" and "Deny" accept the following notations for addresses:
<BR>#
<BR># All
<BR># None
<BR># *.domain.com
<BR># .domain.com
<BR># host.domain.com
<BR># nnn.*
<BR># nnn.nnn.*
<BR># nnn.nnn.nnn.*
<BR># nnn.nnn.nnn.nnn
<BR># nnn.nnn.nnn.nnn/mm
<BR># nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
<BR># @LOCAL
<BR># @IF(name)
<BR>#
<BR># The host and domain address require that you enable hostname lookups
<BR># with "HostNameLookups On" above.
<BR>#
<BR># The @LOCAL address allows or denies from all non point-to-point
<BR># interfaces. For example, if you have a LAN and a dial-up link,
<BR># @LOCAL could allow connections from the LAN but not from the dial-up
<BR># link. Similarly, the @IF(name) address allows or denies from the
<BR># named network interface, e.g. @IF(eth0) under Linux. Interfaces are
<BR># refreshed automatically (no more than once every 60 seconds), so
<BR># they can be used on dynamically-configured interfaces, e.g. PPP,
<BR># 802.11, etc.
<BR>#
<BR># Encryption: whether or not to use encryption; this depends on having
<BR># the OpenSSL library linked into the CUPS library and scheduler.
<BR>#
<BR># Possible values:
<BR>#
<BR># Always - Always use encryption (SSL)
<BR># Never - Never use encryption
<BR># Required - Use TLS encryption upgrade
<BR># IfRequested - Use encryption if the server requests it
<BR>#
<BR># The default value is "IfRequested".
<BR>#
<BR>
<BR><Location />
<BR>Order Deny,Allow
<BR>Deny From All
<BR>Allow From 127.0.0.1
<BR></Location>
<BR>
<BR>#<Location /classes>
<BR>#
<BR># You may wish to limit access to printers and classes, either with Allow
<BR># and Deny lines, or by requiring a username and password.
<BR>#
<BR>#</Location>
<BR>
<BR>#<Location /classes/name>
<BR>#
<BR># You may wish to limit access to printers and classes, either with Allow
<BR># and Deny lines, or by requiring a username and password.
<BR>#
<BR>#</Location>
<BR>
<BR>#<Location /jobs>
<BR>#
<BR># You may wish to limit access to job operations, either with Allow
<BR># and Deny lines, or by requiring a username and password.
<BR>#
<BR>#</Location>
<BR>
<BR>#<Location /printers>
<BR>#
<BR># You may wish to limit access to printers and classes, either with Allow
<BR># and Deny lines, or by requiring a username and password.
<BR>#
<BR>#</Location>
<BR>
<BR>#<Location /printers/name>
<BR>#
<BR># You may wish to limit access to printers and classes, either with Allow
<BR># and Deny lines, or by requiring a username and password.
<BR>#
<BR>
<BR>## Anonymous access (default)
<BR>#AuthType None
<BR>
<BR>## Require a username and password (Basic authentication)
<BR>#AuthType Basic
<BR>#AuthClass User
<BR>
<BR>## Require a username and password (Digest/MD5 authentication)
<BR>#AuthType Digest
<BR>#AuthClass User
<BR>
<BR>## Restrict access to local domain
<BR>#Order Deny,Allow
<BR>#Deny From All
<BR>#Allow From .mydomain.com
<BR>#</Location>
<BR>
<BR><Location /admin>
<BR>#
<BR># You definitely will want to limit access to the administration functions.
<BR># The default configuration requires a local connection from a user who
<BR># is a member of the system group to do any admin tasks. You can change
<BR># the group name using the SystemGroup directive.
<BR>#
<BR>
<BR>AuthType Basic
<BR>AuthClass System
<BR>
<BR>## Restrict access to local domain
<BR>Order Deny,Allow
<BR>Deny From All
<BR>Allow From 127.0.0.1
<BR>
<BR>#Encryption Required
<BR></Location>
<BR>
<BR>#
<BR># End of "$Id: cupsd.conf.in,v 1.13 2003/04/10 20:14:04 mike Exp $".
<BR>#
<BR>
<BR><br>

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

cups da browser

Messaggio da samiel »

Boh... cupsd.conf è perfettamente in ordine
<BR>Controlla con netstat -l che non ci siano altri servizi
<BR>in ascolto sulla porta 631. Potrebbe essere
<BR>il demone rpc.rquotad, che va perciò disabilitato.
<BR>Andiamo per tentativi----
<BR>
<BR>M.<br>

gambo
Linux 0.x
Linux 0.x
Messaggi: 16
Iscritto il: mer 20 ott 2004, 0:00

cups da browser

Messaggio da gambo »

tcp 0 0 *:631 *:* LISTEN
<BR>
<BR>udp 0 0 *:631 *:*
<BR>
<BR>queste sono le uniche due righe dove compare 631
<BR>dopo aver dato il comando netstat -l<br>

gambo
Linux 0.x
Linux 0.x
Messaggi: 16
Iscritto il: mer 20 ott 2004, 0:00

cups da browser

Messaggio da gambo »

Ulteriore sviluppo:
<BR>
<BR>se mi connetto sull´indirizzo <a href="http://localhost:631/admin" target="_blank" target="_new">http://localhost:631/admin</a> mi viene chiesta la password di root
<BR>
<BR>(cosa buona e giusta) ma poi continua a pensare ai fatti suoi<br>

gambo
Linux 0.x
Linux 0.x
Messaggi: 16
Iscritto il: mer 20 ott 2004, 0:00

cups da browser

Messaggio da gambo »

E ancora
<BR>
<BR>Hoa aggiunto localhost nel file cupsd.conf oltre alle righe
<BR>
<BR>Order Deny,Allow
<BR>Deny From All
<BR>Allow From 127.0.0.1
<BR>
<BR>Allow localhost
<BR>
<BR>ora mi apre la pagina principale sulla porta 631 ma non mi fa accedere alle altre pagine come manage printers e vicine<br>

gambo
Linux 0.x
Linux 0.x
Messaggi: 16
Iscritto il: mer 20 ott 2004, 0:00

cups da browser

Messaggio da gambo »

credo di aver capito dove è il problema:
<BR>
<BR>io mi collego alla pagina incriminata; se non ci riesco faccio un restart di rc.cups e mi fa andare avanti di una pagina poi si blocca.
<BR>Io metto il nome della mia stampante e si riblocca.
<BR>Restart rc.cups
<BR>il browser mi dice che il documento non contiene data, io gli dico continue, vado nella pagina seguente e cosi via a ristartare rc.cups a ogni pagina.<br>

Rispondi