aggiungere una stampante su debian 4.0
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 Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
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.
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 Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
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.
- absinthe
- Iper Master

- Messaggi: 2354
- Iscritto il: dom 15 mag 2005, 0:00
- Nome Cognome: Matteo Nunziati
- Slackware: 12.1 - defunct
- Kernel: 2.6.32-5-amd64
- Desktop: gnome
- Distribuzione: debian squeeze
- Località: Prato
- Contatta:
aggiungere una stampante su debian 4.0
lo so che l'argomento è stupido, ma non ci riesco!
utilizzo l'indirizzo localhost:631 per configurare le stampanti come con slack, se non chè, quando arrivo al momento di identificarmi per rendere definitiva la configurazione, il sistema non mi accetta l'utente root con la sua password (sono sicuro di non sbagliarla) e non riesco ad installare nessuna stampante. credo sia un problema di permessi ma sulla guida debian installata insieme al sistema base (la debian reference) non ho trovato nulla... potete indicarmi qualche link su cui leggere di più? o indicarmi sulla documentazione allegata qualcosa che mi è sfuggito?
grazie,
M
utilizzo l'indirizzo localhost:631 per configurare le stampanti come con slack, se non chè, quando arrivo al momento di identificarmi per rendere definitiva la configurazione, il sistema non mi accetta l'utente root con la sua password (sono sicuro di non sbagliarla) e non riesco ad installare nessuna stampante. credo sia un problema di permessi ma sulla guida debian installata insieme al sistema base (la debian reference) non ho trovato nulla... potete indicarmi qualche link su cui leggere di più? o indicarmi sulla documentazione allegata qualcosa che mi è sfuggito?
grazie,
M
Ciao,
scusa se te chiedo ma sei sicuro della password? Perchè non c'è alcuna configurazione da cambiare o permessi strani, in una installazione base -tipo vai di apt-get per gnome o kde >cups viene installato e non ci sono altre questioni-. Do per scontato che nell'interfaccia web di cups tu trovi la stampante...non penso nemmeno tu abbia editato il file di config. di cups mettendo la password cifrata...altra cosa scontata è che l'interfaccia di loopback sia regolarmente settata.
scusa se te chiedo ma sei sicuro della password? Perchè non c'è alcuna configurazione da cambiare o permessi strani, in una installazione base -tipo vai di apt-get per gnome o kde >cups viene installato e non ci sono altre questioni-. Do per scontato che nell'interfaccia web di cups tu trovi la stampante...non penso nemmeno tu abbia editato il file di config. di cups mettendo la password cifrata...altra cosa scontata è che l'interfaccia di loopback sia regolarmente settata.
In fase di installazione hai espressamente rispondo affermativamente alla domanda se volevi che l'utente root potesse fare il login? Con debian, almeno nella versione Netinst, che è quella che ho fatto io ogni tanto, ti viene posta questa domanda. Se rispondi no allora ti ritrovi un sistema configurato, sotto questo aspetto, un po' come ubuntu, dove in pratica l'utente root è disabilitato e, quindi, per ottenere i privilegi di super user si usa il comando sudo. Magari lanciando il browser con i privilegi di root (es. sudo firefox) potresti risolvere il problema, e quando ti chiede i dati di login utilizzi quelli dell'utente.
Non ho mai usato cups non avendo una stampante, per cui prendi molto con le pinze quello che ho scritto.
Non ho mai usato cups non avendo una stampante, per cui prendi molto con le pinze quello che ho scritto.
- absinthe
- Iper Master

- Messaggi: 2354
- Iscritto il: dom 15 mag 2005, 0:00
- Nome Cognome: Matteo Nunziati
- Slackware: 12.1 - defunct
- Kernel: 2.6.32-5-amd64
- Desktop: gnome
- Distribuzione: debian squeeze
- Località: Prato
- Contatta:
grazie delle risposte:
1- sì sono strasicuro della password. quando non funzionava ho provato a usare il comando su da konsole (uso kde) e la password me l'ha presa senza problemi.
2- oddio all'interfaccia di loopback non ho pensato. in linea di massima penserei di sì e comunque se non fosse funzionante in teoria non dovrei neppure trovare la pagina iniziale di cups all'indirizzo localhost. o sbaglio?
3- anche io ho usato netinstall e l'utente root era disabilitato. però riconfigurando gdm ho abilitato il login locale di root. tanto è vero che quando non riuscivo a installare la stampante usando un login utente (e inserendo però l'utente root all'autenticazione in cups), mi sono riloggato direttamente nel sistema come root!
la cosa strana è che anche se avvio una sessione di kde come root, quando porto a fine la configurazione della stampante, prima di installarla cups mi chiede l'autenticazione!
4- ho dato un occhio al file di config di cups e non ci ho capito una mazza di primo acchito, quindi , dato che mi pareva strano che ci fossero settaggi "particolari" in debian, prima di mettermi a leggere tutte le regole di configurazione mi chiedevo se non stato sbagliando qualcosa di banale...
non ho idee al momento...
M
1- sì sono strasicuro della password. quando non funzionava ho provato a usare il comando su da konsole (uso kde) e la password me l'ha presa senza problemi.
2- oddio all'interfaccia di loopback non ho pensato. in linea di massima penserei di sì e comunque se non fosse funzionante in teoria non dovrei neppure trovare la pagina iniziale di cups all'indirizzo localhost. o sbaglio?
3- anche io ho usato netinstall e l'utente root era disabilitato. però riconfigurando gdm ho abilitato il login locale di root. tanto è vero che quando non riuscivo a installare la stampante usando un login utente (e inserendo però l'utente root all'autenticazione in cups), mi sono riloggato direttamente nel sistema come root!
la cosa strana è che anche se avvio una sessione di kde come root, quando porto a fine la configurazione della stampante, prima di installarla cups mi chiede l'autenticazione!
4- ho dato un occhio al file di config di cups e non ci ho capito una mazza di primo acchito, quindi , dato che mi pareva strano che ci fossero settaggi "particolari" in debian, prima di mettermi a leggere tutte le regole di configurazione mi chiedevo se non stato sbagliando qualcosa di banale...
non ho idee al momento...
M
- Luci0
- Staff

- Messaggi: 3591
- Iscritto il: lun 27 giu 2005, 0:00
- Nome Cognome: Gabriele Santanché
- Slackware: 12.2 14.0
- Kernel: 2.6.27.46- gen 3.2.29
- Desktop: KDE 3.5.10 Xfce
- Località: Forte dei Marmi
- Contatta:
Visto che sei sfaticato ... posta quel bellissimo file di configurazione e si confronta con quello della slackware ... secondo me il problema é lì ...
ecco uno stralcio della sezione admin
------------
----------------

ecco uno stralcio della sezione admin
------------
Codice: Seleziona tutto
....
<Location /admin>
#
# You definitely will want to limit access to the administration funct
ions.
# The default configuration requires a local connection from a user wh
o
# is a member of the system group to do any admin tasks. You can chan
ge
# the group name using the SystemGroup directive.
#
AuthType Basic
AuthClass System
## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
#Encryption Required
</Location>
questo il file in debian:
#
# 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 warning
# Administrator user group...
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 @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
Allow @LOCAL
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow localhost
</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>
#
#
#
# Printcap: the name of the printcap file. Default is /etc/printcap.
# Leave blank to disable printcap file generation.
#
Printcap /var/run/cups/printcap
#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris. The default is "BSD".
#
#PrintcapFormat BSD
#PrintcapFormat Solaris
#
# PrintcapGUI: the name of the GUI options panel program to associate
# with print queues under IRIX. The default is "/usr/bin/glpoptions"
# from ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# must accept the "-d printer" and "-o options" options and write
# the selected printer options back to stdout on completion.
#
#PrintcapGUI /usr/bin/glpoptions
Controlla anche il file /etc/networks:
default 0.0.0.0
loopback 127.0.0.0
link-local 169.254.0.0
#
# 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 warning
# Administrator user group...
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 @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
Allow @LOCAL
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow localhost
</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>
#
#
#
# Printcap: the name of the printcap file. Default is /etc/printcap.
# Leave blank to disable printcap file generation.
#
Printcap /var/run/cups/printcap
#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris. The default is "BSD".
#
#PrintcapFormat BSD
#PrintcapFormat Solaris
#
# PrintcapGUI: the name of the GUI options panel program to associate
# with print queues under IRIX. The default is "/usr/bin/glpoptions"
# from ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# must accept the "-d printer" and "-o options" options and write
# the selected printer options back to stdout on completion.
#
#PrintcapGUI /usr/bin/glpoptions
Controlla anche il file /etc/networks:
default 0.0.0.0
loopback 127.0.0.0
link-local 169.254.0.0
- absinthe
- Iper Master

- Messaggi: 2354
- Iscritto il: dom 15 mag 2005, 0:00
- Nome Cognome: Matteo Nunziati
- Slackware: 12.1 - defunct
- Kernel: 2.6.32-5-amd64
- Desktop: gnome
- Distribuzione: debian squeeze
- Località: Prato
- Contatta:
intanto grazie per le risposte... chiedo scusa ma il pc con debian è un fisso della sede di firenze e in questi giorni non ci bazzico molto...
tanto per fare subito una prova veloce ho sostituito il file cupsd.conf con quello di clodo (il mio file era leggermente diverso e ve lo riporto in coda).
il file /etc/networks era ok! uguale al tuo clodo
ho riavviato cups ma nisba,
ho riavviato tutta debian ma nisba
ho provato sia con firefox che con konqueror ma nisba...
no capisco cosa fare... tutte le volte arivo in fondo alla procedura e quando mi chiede di autenticarmi inserisco nome utente (root) e password e cups mi risponde "autenticazione non riuscita": questo è il registro degli errori di cups:
grazie,
M
tanto per fare subito una prova veloce ho sostituito il file cupsd.conf con quello di clodo (il mio file era leggermente diverso e ve lo riporto in coda).
il file /etc/networks era ok! uguale al tuo clodo
ho riavviato cups ma nisba,
ho riavviato tutta debian ma nisba
ho provato sia con firefox che con konqueror ma nisba...
no capisco cosa fare... tutte le volte arivo in fondo alla procedura e quando mi chiede di autenticarmi inserisco nome utente (root) e password e cups mi risponde "autenticazione non riuscita": questo è il registro degli errori di cups:
questo è il file cups originale:E [30/Aug/2007:09:11:46 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:11:56 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [30/Aug/2007:09:11:56 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:12:08 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [30/Aug/2007:09:12:08 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:16:23 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:16:31 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [30/Aug/2007:09:16:31 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:17:19 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:17:33 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [30/Aug/2007:09:17:33 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:20:40 +0200] CUPS-Add-Modify-Printer: Unauthorized
Codice: Seleziona tutto
#
#
# Sample configuration file for the Common UNIX Printing System (CUPS)#
#
# 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 warning
# Administrator user group...
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 @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
</Location>
# Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order allow,deny
Allow localhost
</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>
#
#
#
# Printcap: the name of the printcap file. Default is /etc/printcap.
# Leave blank to disable printcap file generation.
#
Printcap /var/run/cups/printcap
#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris. The default is "BSD".
#
#PrintcapFormat BSD
#PrintcapFormat Solaris
#
# PrintcapGUI: the name of the GUI options panel program to associate
# with print queues under IRIX. The default is "/usr/bin/glpoptions"
# from ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# must accept the "-d printer" and "-o options" options and write
# the selected printer options back to stdout on completion.
#
#PrintcapGUI /usr/bin/glpoptions
# 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 warning
# Administrator user group...
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 @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
</Location>
# Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order allow,deny
Allow localhost
</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>
#
#
#
# Printcap: the name of the printcap file. Default is /etc/printcap.
# Leave blank to disable printcap file generation.
#
Printcap /var/run/cups/printcap
#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris. The default is "BSD".
#
#PrintcapFormat BSD
#PrintcapFormat Solaris
#
# PrintcapGUI: the name of the GUI options panel program to associate
# with print queues under IRIX. The default is "/usr/bin/glpoptions"
# from ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# must accept the "-d printer" and "-o options" options and write
# the selected printer options back to stdout on completion.
#
#PrintcapGUI /usr/bin/glpoptions
M

