[résolu] Imprimante reseaux (cups)

Bonjour
J’essaye d’nstaller une imprimante sur mon reseau local mais j’ai un petit probleme (je n’est pas un niveau très avancé).

Mon imprimante est relier en usb à mon pc serveur (debian). Je peut imprimer pas de probleme.
Je veux imprimer avec mon pc portable (debian aussi) et c’est la que ça bloque.

L’adresse ip de mon serveur est 192.168.1.3 et mon portable 192.168.1.5
mon reseau fonction (internet, échange de fichier… ).
Le port 631 est apriori ouvert (je l’est ouvert sur mon routeur mais j’ai un doute que ca passe bien)

Configuration imprimante:

sur le portable: ipp://192.168.1.3/printers/canon

Sur le serveur:
mon cpusd.conf

# 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


# Authenticate against system accounts by default...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Deny From All
  Allow 192.168.1
</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 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

Si quelqu’un à une idée merci
autre question: Comment je peut savoir si la connextion avec le port 631 ce fait bien entre les 2 pc?

[quote=“damdam”]
Si quelqu’un à une idée merci
autre question: Comment je peut savoir si la connextion avec le port 631 ce fait bien entre les 2 pc?[/quote]
Salut,

Pour tester le port, tu fais ça avec la commande telnet donc:
de ton portable fais:
telnet 192.168.1.3 631

Si tu optiens un genre: Escape character is ‘^]’. alors ça fonctionne, fais quit ou “ctrl + ] + quit” pour sortir

Je connais pas bien CUPS, mais d’après moi tu peux pas seulement avec CUPS partager ton imprimante via le réseau… Install toi SAMBA (pour partage fichier + imprimante et lis :slightly_smiling:

-Toaster.

[quote=“Toaster”]
Je connais pas bien CUPS, mais d’après moi tu peux pas seulement avec CUPS partager ton imprimante via le réseau…. Install toi SAMBA (pour partage fichier + imprimante et lis :slightly_smiling:
-Toaster.[/quote]
Faux, c’est possible.
Je ne suis pas très fort ds ce domaine mais fais des recherches, il y a eu un post (env. 1 ou 2 mois) qui en traitait et qui donnait la soluce.

J’ai regarder sur tous le forum debian et aucune solution ne fonctionne chez moi

Pour le port 631 ca passe.

Sur le portable le cups me dit:
“Unable to get printer status (client-error-forbidden)!”

Ca y est
J’ai réussi.
voici mon cups.conf
Je le repete je n’ai pas un niveau très élevé donc je ne comprend pas tout a fait mon fichier
C’est un peu du hasard si ca marche, mais si ça peut aider quelqu’un tant mieux

# Show general information in error_log.
LogLevel info
SystemGroup lpadmin
# Allow remote access
Port 631
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  # Allow shared printing...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  Encryption Required
  # Restrict access to the admin pages...
  Order allow,deny
  Allow localhost
</Location>
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  # Restrict access to the configuration files...
  Order allow,deny
  Allow localhost
</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>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <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>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
Printcap /var/run/cups/printcap

Merci à tous de vos réponses