Imprimante reseau+samba

Bonjour,

J’ai un p’tit reseau à la maison ; une passerelle avec une patte net et une sur le reseau local. Je souhaite partager l’imprimante à tous les ordis du reeau. J’ai suivi ce tuto :
daiko.fr/blog/2011/11/07/partag … vec-samba/

Sauf que le dossier /usr/share/cups/drivers/ chez moi n’existe pas mais j’ai celui-là : /usr/lib/cups/driver
J’ai donc mis le fichiers de cups dedans :smiley:

A la fin lorsque je lance la commande cupsaddsmb -a -v j’ai ce retour :

# cupsaddsmb -a -v p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type Un mot de passe pour root est nécessaire pour accéder à localhost via SAMBA : No Windows printer drivers are installed.

D’autre part, localhost:631 depuis une machine linux sur le reseau local ne trouve pas d’imprimante ip3500.

J’aurais bien besoin d’un coup de pouce pour y voir claire :open_mouth:

Merci

Faux, j’ai trouvé une canon ip3500 branchée en usb. J’en déduis que c’est celle qui est sur le serveur.

Cups installé, j’ai imprimé une page test.

Mais alors, que signifie ce message ??

Erreur, j’ai toujours le message.

Je pense que cela ne permet pas d’installer l’imprimante en reseau via windows : les pilotes se trouvant sur le serveur ne sont pas envoyé à windows 7.

Une aide. ??

Je poursuis mes investigations et cela confirme l’absence des pilotes windows alors qu’ils sont bien dans le dossier : /usr/lib/cups/driver.

[code]# rpcclient localhost
Enter root’s password:
rpcclient $> enumprinters
flags:[0x800000]
name:[\LOCALHOST\Canon_iP3500_series]
description:[\LOCALHOST\Canon_iP3500_series,Canon iP3500 series]
comment:[Canon iP3500 series]

rpcclient $> enumdrivers
rpcclient $>
[/code]

Je vais créer le dossier driver dans /usr/share et on verra bien


[code]root@serveur-debian:/usr/lib/cups/driver# mv cups6.inf cups6.ini cupsps6.dll cupsui6.dll ps5ui.dll pscript5.dll pscript.hlp pscript.ntf /usr/share/cups/drivers[/code]

[code]root@serveur-debian:~# cupsaddsmb -H localhost -U administrateur -v -a
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
Un mot de passe pour administrateur est nécessaire pour accéder à localhost via SAMBA : 
Running command: smbclient //localhost/print$ -N -A /tmp/015bd531a7da4 -c 'mkdir W32X86;put /tmp/015bd531958eb W32X86/Canon_iP3500_series.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]
NT_STATUS_MEDIA_WRITE_PROTECTED making remote directory \W32X86
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/Canon_iP3500_series.ppd
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll
Project-Id-Version: CUPS 1.4
Report-Msgid-Bugs-To: http://www.cups.org/str.php
POT-Creation-Date: 2012-03-07 13:38-0800
PO-Revision-Date: 2009-02-16 12:00-0800
Last-Translator: Apple Inc.
Language-Team: Apple Inc.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Language: 

Unable to copy Windows 2000 printer driver files (1).
Running command: smbclient //localhost/print$ -N -A /tmp/015bd531dd849 -c 'mkdir W32X86;put /tmp/015bd531958eb W32X86/Canon_iP3500_series.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]
NT_STATUS_MEDIA_WRITE_PROTECTED making remote directory \W32X86
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/Canon_iP3500_series.ppd
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll
Project-Id-Version: CUPS 1.4
Report-Msgid-Bugs-To: http://www.cups.org/str.php
POT-Creation-Date: 2012-03-07 13:38-0800
PO-Revision-Date: 2009-02-16 12:00-0800
Last-Translator: Apple Inc.
Language-Team: Apple Inc.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Language: 

Unable to copy Windows 2000 printer driver files (1).
Running command: smbclient //localhost/print$ -N -A /tmp/015bd531e64c3 -c 'mkdir W32X86;put /tmp/015bd531958eb W32X86/Canon_iP3500_series.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]
NT_STATUS_MEDIA_WRITE_PROTECTED making remote directory \W32X86
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/Canon_iP3500_series.ppd
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll
Project-Id-Version: CUPS 1.4
Report-Msgid-Bugs-To: http://www.cups.org/str.php
POT-Creation-Date: 2012-03-07 13:38-0800
PO-Revision-Date: 2009-02-16 12:00-0800
Last-Translator: Apple Inc.
Language-Team: Apple Inc.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Language: 

Unable to copy Windows 2000 printer driver files (1).[/code]

[code]root@serveur-debian:~# cupsaddsmb -H localhost -U administrateur -v -a
p11-kit: couldn’t load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: Ne peut ouvrir le fichier d’objet partagé: Aucun fichier ou dossier de ce type
Un mot de passe pour administrateur est nécessaire pour accéder à localhost via SAMBA :
Running command: smbclient //localhost/print$ -N -A /tmp/015bd531a7da4 -c 'mkdir W32X86;put /tmp/015bd531958eb W32X86/Canon_iP3500_series.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll’
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]
NT_STATUS_MEDIA_WRITE_PROTECTED making remote directory \W32X86
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/Canon_iP3500_series.ppd
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll
Project-Id-Version: CUPS 1.4
Report-Msgid-Bugs-To: http://www.cups.org/str.php
POT-Creation-Date: 2012-03-07 13:38-0800
PO-Revision-Date: 2009-02-16 12:00-0800
Last-Translator: Apple Inc.
Language-Team: Apple Inc.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Language:

Unable to copy Windows 2000 printer driver files (1).
Running command: smbclient //localhost/print$ -N -A /tmp/015bd531dd849 -c 'mkdir W32X86;put /tmp/015bd531958eb W32X86/Canon_iP3500_series.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll’
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]
NT_STATUS_MEDIA_WRITE_PROTECTED making remote directory \W32X86
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/Canon_iP3500_series.ppd
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll
Project-Id-Version: CUPS 1.4
Report-Msgid-Bugs-To: http://www.cups.org/str.php
POT-Creation-Date: 2012-03-07 13:38-0800
PO-Revision-Date: 2009-02-16 12:00-0800
Last-Translator: Apple Inc.
Language-Team: Apple Inc.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Language:

Unable to copy Windows 2000 printer driver files (1).
Running command: smbclient //localhost/print$ -N -A /tmp/015bd531e64c3 -c 'mkdir W32X86;put /tmp/015bd531958eb W32X86/Canon_iP3500_series.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll’
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]
NT_STATUS_MEDIA_WRITE_PROTECTED making remote directory \W32X86
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/Canon_iP3500_series.ppd
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll
Project-Id-Version: CUPS 1.4
Report-Msgid-Bugs-To: http://www.cups.org/str.php
POT-Creation-Date: 2012-03-07 13:38-0800
PO-Revision-Date: 2009-02-16 12:00-0800
Last-Translator: Apple Inc.
Language-Team: Apple Inc.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Language:

Unable to copy Windows 2000 printer driver files (1).[/code]

J’ai trouvé ceci pour ubuntu. Quelqu’un peut m’aider à l’adapter à ma debian ?

Voici le lien complet :
bugs.launchpad.net/ubuntu/+sour … bug/885492

Et la partie qui m’intéresse :


Found a 100% working fix:

"1) Install getlibs

wget https://launchpad.net/~jcollins/+archive/jaminppa/+build/1482994/+files/getlibs_2.06-0ubuntu1%7Eppa2_all.deb

sudo dpkg -i getlibs_2.06-0ubuntu1~ppa2_all.deb

2) Install the 32bit lib

getlibs -p gnome-keyring:i386

3) Make the symbolic link

sudo ln -s /usr/lib32/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so

Now run your Crossover/Wine app and the error is gone."

Taken from http://askubuntu.com/questions/127848/wine-cant-find-gnome-keyring-pkcs11-so

Je suis un gros naze :blush: :blush: :blush:

La solution était sous mon nez et je ne la voyais pas :017

#apt-get install gnome-keyring

Problème 1 résolu.