Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 21/05/2011, à 17:33

asheenlevrai

[Résolu! :-) ] partager un multifonction Canon Pixma MP500

Bonjour à tous,

Voici mon but:
partager un multifonction (print&scan) entre 3 machines.
A) "server" ubuntu 10.04 LTS (tjs ON)
B) desktop ubuntu 11.04
C) imac sous OSX 10.6
Le multifonction (MF) est un Canon Pixma MP500 (USB).

J'ai branché le MF sur A) en USB et sélectionné le driver adéquat. Pas de problème, je peux imprimer et scanner (via Gimp->xsane).
le MF est partagé dans les réglages système (dans CUPS) et les imprimantes partagées sont "publiées" sur le réseau (dans CUPS).

Depuis B) je peux imprimer (le MF a été automatiquement détectée) mais je ne peux pas scanner (pas de scanner détecté).
Depuis C) le MF n'est pas détectée. Si j'essaye de le chercher en mettant l'IP de A) comme "hôte" il n'est tjs pas trouvé...

Ma question:
Comment pourrais-je faire pour pouvoir scanner et imprimer depuis A), B) et C)?

Je trouve de la doc sur le web mais c'est souvent pour des vieilles version d'ubuntu et je sais que pas mal de choses ont changés depuis...

Je vous remercie d'avance pour vos lumières
-a-

Dernière modification par asheenlevrai (Le 29/05/2011, à 23:07)

Hors ligne

#2 Le 21/05/2011, à 20:01

ramatus

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

Bonsoir

Au cas ou vous auriez une livebox 2 ?

Je met le lien , au cas ou !
http://www.forum-orange.com/forums/view … p?id=27875

#3 Le 21/05/2011, à 23:19

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

merci mais ce n'est pas le cas...

Hors ligne

#4 Le 22/05/2011, à 01:34

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

Bonsoir

J'ai tiré cette méthode du man saned et de cette page https://help.ubuntu.com/community/Scann … %20Network. Je n'ai pas pu la tester...

Tout d'abord pour partager votre scanner sur le réseau, il faut que les paquets sane-utils et xinetd soient installés sur votre serveur. Pour le vérifier :

dpkg -l sane-utils
dpkg -l xinetd

Si vous avez besoin de les installer :

sudo apt-get install sane-utils xinetd

Ensuite il faut démarrer Sane en tant que serveur. Éditez le fichier /etc/default/saned :

#Set to yes to start saned
RUN=yes

Ensuite modifiez la partie "Access list" du fichier /etc/sane.d/saned.conf et adaptez en fonction de votre configuration réseau :

### Access list
192.168.0.0/24 # Partage le scanner sur le réseau 192.168.0.0/24.

Ensuite créez le fichier /etc/xinetd.d/sane-port et ajoutez ces lignes :

# default: off
# description: The sane server accepts requests
# for network access to a local scanner via the
# network.
service sane-port
{
port = 6566
socket_type = stream
wait = no
user = saned
group = saned
server = /usr/sbin/saned
}

Redémarrez votre serveur. Une fois qu'il a rebooté, vérifiez que le service qu'on a crée plus haut écoute bien sur le port 6566 :

netstat -ltn | grep 6566

Sur votre machine B (ubuntu desktop), éditez le fichier /etc/sane.d/net.conf et ajoutez l'adresse de votre serveur :

192.168.0.1 # Mettrez l'adresse IP du serveur A.

En ce qui concerne la machine C (imac), je ne peux pas trop vous aider, je ne connais pas OSX désolé...

J'espère que cela aura pu vous aider.

Dernière modification par demonipuch (Le 22/05/2011, à 01:35)

Hors ligne

#5 Le 22/05/2011, à 19:10

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

OK alors j'ai tout fait (l'IP de mon serveur A est 192.168.0.3), c'est sur lui que le MF est branché) et apparemment le service sane-port écoute bien qqch:
tcp     0     0   0.0.0.0:6566          0.0.0.0:*          LISTEN
mais je ne sais pas si c'est bon... au moins il a détecté un pixma...

Sur B), en essayant depuis gimp de créer une image via Xsane, j'ai:
"Erreur d'ouverture du périphérique 'net:192.168.0.3 # adresse du serveur sur lequel se trouve le scanner (usb) distant:pixma:04A9170C': Accès à la resource refusé."

:-(

Dernière modification par asheenlevrai (Le 22/05/2011, à 23:57)

Hors ligne

#6 Le 22/05/2011, à 19:17

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

en ce qui concerne le Mac, je pense que le serveur ubuntu ne "publie" pas les imprimantes partagées avec un truc qui soit compréhensible par le mac (genre bonjour/avahi)... par contre je ne sais ni comment vérifier cela ni comment le réglér si nécessaire...

Hors ligne

#7 Le 22/05/2011, à 19:48

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

Sur le serveur A, que dit la commande suivante?

ls -l /etc/udev/rules.d

Pour le Mac, vous avez bien installé les pilotes de l'imprimante?

Dernière modification par demonipuch (Le 22/05/2011, à 19:49)

Hors ligne

#8 Le 22/05/2011, à 19:52

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

demonipuch a écrit :

Sur le serveur A, que dit la commande suivante?

ls -l /etc/udev/rules.d
total 12
-rw-r--r-- 1 root root 1901 2010-04-26 23:17 70-persistent-cd.rules
-rw-r--r-- 1 root root  550 2009-03-08 23:56 70-persistent-net.rules
-rw-r--r-- 1 root root 1157 2009-10-16 08:01 README
demonipuch a écrit :

Pour le Mac, vous avez bien installé les pilotes de l'imprimante?

oui, auparavant elle était branchée sur ce dernier...

Hors ligne

#9 Le 22/05/2011, à 20:01

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

Sur le serveur 1, créez le fichier /etc/udev/rules.d/40-scanner-permissions.rules :

sudo nano /etc/udev/rules.d/40-scanner-permissions.rules

Mettez y ces lignes :

# usb scanner
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE:="0666", GROUP:="saned", OWNER:="saned"
SUBSYSTEM=="usb_device",MODE:="0666"

Enregistrez (ctrl+O) et fermez (ctrl+W)

Qu'est ce que ca dit si vous tentez un scan?

Hors ligne

#10 Le 22/05/2011, à 20:59

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

:-))))

après un redémarrage de A je peux scanner depuis B (je pouvais déjà imprimer).
Donc tout est OK tant qu'on reste dans ubuntu. Il me reste à régler le problème pour C (iMac).

Je pense que je dois regarder du côté de la "publication" des imprimantes par A... qu'en penses tu? (PEBKAC?)

en tout cas merci encore :-))
-a-

Hors ligne

#11 Le 22/05/2011, à 21:52

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

On peut essayer en utilisant le protocole ipp...

Rendez vous sur la page d'administration de CUPS : http://192.186.10.3:631 et dans l'onglet Administration vérifiez que les cases Share printers connected to this system,Allow printing from the Internet soient cochées. Cliquez sur Change settings pour redémarrez CUPS.

Ensuite sur votre mac, il me semble que CUPS est installé...Ouvrez votre navigateur à l'adresse http://localhost:631 et dans l'onglet Administration cliquez sur "Add printer". Patientez et et si votre imprimante n'est pas détectée choisissez "Internet Printing Protocol (ipp)". Dans la fenêtre suivante, entrée l'adresse suivante ipp://192.168.0.3:631/printers/nom_de_votre_imprimante.
Il faut ensuite indiquer le chemin du fichier ppd de l'imprimante. Si vous avez installé les pilotes pour mac il devrait être présent sur votre système. Sur Ubuntu, il se trouve dans le dossier /usr/share/ppd. Je ne sais pas si il existe un dossier semblable sous mac... Le fichier se nomme canonmp560.ppd au cas ou vous voudriez faire une recherche.
Bref, si toutes ses étapes se déroulent bien vous devriez pouvoir imprimer une page de test...

Bonne chance

Hors ligne

#12 Le 22/05/2011, à 23:36

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

OK... alors passer par l'interface web de cups ne changeait rien par rapport aux réglages via les system preferences d'OSX (printers&fax)...

Par contre: je me suis rendu compte qu'un partage du scanner du MP500 était toujours activé sur l'iMac (datant de l'éppoque où le MP500 était branché directement dessus). Après avoir retiré cet option de partage, il est devenu possible d'imprimer une page de test depuis l'iMac, mais rien d'autre (l'imprimante se mettait en pause et ne se réveillait pas). En désactivant l'impression recto-verso PAR DEFAUT dans les propriétés du drivers (via l'interface web de CUPS) tout est rentré dans l'ordre (l'impression Recto-verso est possible en cochant une case dans preview ou via les propriétés d'impression dans word p. ex.).

Résultat:
sur A): print + scan OK
sur B): print + scan OK
sur C): print OK
sur portable windows: print + scan OK

[EDIT: il faut le driver Gutenprint sous OSX, car avec le driver Canon le MP500 se met en pause et l'impression ne marche pas.
http://gimp-print.sourceforge.net/MacOSX.php]

je continue...

NB: pour le scan en réseau depuis windows j'ai utilisé sanetwain: http://sanetwain.ozuzo.net/
pour le scan en réseau depuis OSX j'ai installé Twain-Sane interface : http://www.ellert.se/twain-sane/ mais pour l'instant ca ne marche pas...

Dernière modification par asheenlevrai (Le 21/07/2011, à 20:30)

Hors ligne

#13 Le 23/05/2011, à 00:02

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

C'est bien, ca avance smile

Hors ligne

#14 Le 23/05/2011, à 11:55

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

Bonjour

FAQ de Twain Sane a écrit :

Can I use the TWAIN SANE Interface to scan over the network from a scanner on a saned server?

Yes. First make sure you are allowed to connect to the saned server. You should also configure the net backend on your computer to search for devices on the remote computer by editing the net backend configuration file using the SANE Preference Pane. Or, if you don’t have this installed, by using a text editor in the Terminal:
sudo emacs /usr/local/etc/sane.d/net.conf

Press the help button for the net backend in the SANE Preference Pane or consult the sane-net man page for more information. I have successfully scanned over the network from a Fedora Linux server exporting the test backend.

Sur le mac, éditez le fichier /usr/local/etc/sane.d/net.conf et ajoutez l'adresse du serveur.

Hors ligne

#15 Le 23/05/2011, à 21:25

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

je l'ai déjà fait mais apparemment ca n'est pas suffisant... je crois qu'il faut aussi mettre un device name (??) je retourne fouiller dans la FAQ...

Hors ligne

#16 Le 26/05/2011, à 22:16

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

je ne sais pas comment trouver le "device name" du MP500 sur le serveur...

Hors ligne

#17 Le 26/05/2011, à 22:38

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

Bonsoir

Je pense que ca devrait être "net:192.168.0.3 # adresse du serveur sur lequel se trouve le scanner (usb) distant:pixma:04A9170C"
Enlevez déjà les commentaires dans vos fichiers de config sur le serveur ca fera plus propre

Hors ligne

#18 Le 27/05/2011, à 07:23

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

merci mais ca ne marche pas.

après avoir lu un peu la doc, il semblerait qu'il faut que je modifie "sane-net" pour ajouter qqch sous la forme:
host:device
donce je pensais à qqch comme:
192.168.0.3:Canon PIXMA MP500
mais je ne sais pas si les espaces sont acceptables.
lorsque je lance xsane sur le serveur, la barre de titre de la fenêtre d'apercu contient:
Canon PIXMA MP500:04A9170C_537051

Selon la doc, je devrais aussi modifier "sane-pixma" pour y ajouter qqch sous la forme:
bjnp://host
j'ai donc ajouté
bjnp://192.168.0.3

Hors ligne

#19 Le 27/05/2011, à 10:30

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

Vous avez un lien vers cette doc?

Hors ligne

#20 Le 27/05/2011, à 12:25

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

file:///tmp/sane.w5Unvr.html
file:///tmp/sane.y0Qnc2.html
http://www.ellert.se/twain-sane/faq.html

je n'arrive plus a trouver la webpage qui confirme que le MP500 est bien supporté et qui donne un lien vers des infos utiles... je continue à chercher...

Hors ligne

#21 Le 27/05/2011, à 15:45

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

asheenlevrai a écrit :

file:///tmp/sane.w5Unvr.html
file:///tmp/sane.y0Qnc2.html
http://www.ellert.se/twain-sane/faq.html

je n'arrive plus a trouver la webpage qui confirme que le MP500 est bien supporté et qui donne un lien vers des infos utiles... je continue à chercher...

J'ai parcouru http://www.ellert.se/twain-sane/faq.html je n'ai rien trouvé de plus que ce qu'on a déjà fait.
Si vous retrouvez le lien "vers des infos utiles" je veux bien y jeter un coup d'œil.
Pour les 2 premiers liens (file:///tmp/sane.w5Unvr.html, file:///tmp/sane.y0Qnc2.html) ca va être compliqué de parcourir votre dossier tmp ^^

Sinon je serais p-e d'avis de désinstaller twain-sane et sane-backend sur le mac puis de repartir sur une installation "propre" (p-e que des fichier de config du temps ou vous partagiez votre scanner depuis votre mac posent problème... simple supposition)

Hors ligne

#22 Le 27/05/2011, à 15:59

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

demonipuch a écrit :

Pour les 2 premiers liens (file:///tmp/sane.w5Unvr.html, file:///tmp/sane.y0Qnc2.html) ca va être compliqué de parcourir votre dossier tmp ^^

hahaha, je suis trop nul, j'avais pas fait gaffe... en plus le nom est généré aléatoirement à chaque fois que je clique pour les afficher...
je vais les copier coller...

demonipuch a écrit :

Sinon je serais p-e d'avis de désinstaller twain-sane et sane-backend sur le mac puis de repartir sur une installation "propre" (p-e que des fichier de config du temps ou vous partagiez votre scanner depuis votre mac posent problème... simple supposition)

mmhh... je ne sais pas comment faire ca "proprement" ;-)

Hors ligne

#23 Le 27/05/2011, à 15:59

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

sane−net
NAME
DESCRIPTION
DEVICE NAMES
CONFIGURATION
FILES
ENVIRONMENT
BUGS
SEE ALSO
AUTHOR
NAME

sane−net − SANE network backend
DESCRIPTION

The sane−net library implements a SANE (Scanner Access Now Easy) backend that provides access to image acquisition devices through a network connection. This makes it possible to control devices attached to a remote host and also provides a means to grant users access to protected resources.
DEVICE NAMES

This backend expects device names of the form:

host:device

Where host is the name (or IP address) of the (remote) host and device is the name of the device on this host that should be addressed. If the device name does not contain a colon (:), then the entire string is treated as the device string for the default host. The default host is the host listed last in the configuration file (see below).

An IPv6 address can be specified enclosed in square brackets:

[::1]:device
CONFIGURATION

The net.conf file contains both backend options and a list of host names (or IP addresses) that should be contacted for scan requests. Anything that isn’t one of the options listed below will be treated as an host name.
connect_timeout = nsecs

Timeout (in seconds) for the initial connection to the saned server. This will prevent the backend from blocking for several minutes trying to connect to an unresponsive saned host (network outage, host down, ...). The environment variable SANE_NET_TIMEOUT can also be used to specify the timeout at runtime.

Empty lines and lines starting with a hash mark (#) are ignored. Note that IPv6 addresses in this file do not need to be enclosed in square brackets. A sample configuration file is shown below:

scan−server.somedomain.firm
192.168.0.1
# this is a comment
localhost
::1

The above list of hosts can be extended at run-time using environment variable SANE_NET_HOSTS. This environment variable is a colon-separated list of hostnames or IP addresses that should be contacted in addition to the hosts mentioned in the configuration file. For example, a user could set the environment variable to the string:

new.scanner.com:[::1]:192.168.0.2:scanner.univ.edu

To request that hosts new.scanner.com , [::1] , 192.168.0.2 and scanner.univ.edu are contacted in addition to the hosts listed above.

For this backend to function properly, it is also necessary to define the sane−port service in /etc/services. The sane service should be defined using a line of the following form:

sane−port 6566/tcp # SANE network scanner daemon
FILES

/usr/local/etc/sane.d/net.conf

The backend configuration file (see also description of SANE_CONFIG_DIR below).

/usr/local/lib/sane/libsane−net.a

The static library implementing this backend.

/usr/local/lib/sane/libsane−net.so

The shared library implementing this backend (present on systems that support dynamic loading).
ENVIRONMENT

SANE_CONFIG_DIR

This environment variable specifies the list of directories that may contain the configuration file. Under UNIX, the directories are separated by a colon (‘:’), under OS/2, they are separated by a semi-colon (‘;’). If this variable is not set, the configuration file is searched in two default directories: first, the current working directory (".") and then in /usr/local/etc/sane.d. If the value of the environment variable ends with the directory separator character, then the default directories are searched after the explicitly specified directories. For example, setting SANE_CONFIG_DIR to "/tmp/config:" would result in directories "tmp/config", ".", and "/usr/local/etc/sane.d" being searched (in this order).

SANE_NET_HOSTS

A colon-separated list of host names or IP addresses to be contacted by this backend.

SANE_NET_TIMEOUT

Number of seconds to wait for a response from the saned server for the initial connection request.

SANE_DEBUG_NET

If the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. E.g., a value of 128 requests all debug output to be printed. Smaller levels reduce verbosity.
BUGS

If saned has timed out, the net backend may loop with authorization requests.
SEE ALSO

sane(7), saned(8), sane−dll(5), scanimage(1)

http://www.penguin-breeder.org/?page=sane−net
AUTHOR

David Mosberger and Andreas Beck

Hors ligne

#24 Le 27/05/2011, à 15:59

asheenlevrai

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

sane−pixma
NAME
DESCRIPTION
OPTIONS
FILES
USB SUPPORT
NETWORKING SUPPORT
FIREWALLING FOR NETWORKED SCANNERS
ENVIRONMENT
SEE ALSO
AUTHORS
NAME

sane−pixma − SANE backend for Canon PIXMA Multi-Functions Printers
MP, MX, ImageCLASS and I-SENSYS series
DESCRIPTION

The sane−pixma library implements a SANE (Scanner Access Now Easy) backend that provides access to Canon PIXMA multi-function devices (All-in-one printers). The backend implements both USB interface and Network LAN interface using Canon’s BJNP protocol. Currently, the following models work with this backend:

PIXMA MP140, MP150, MP160, MP170, MP180, MP190
PIXMA MP210, MP220, MP240, MP250, MP260, MP270
PIXMA MP450, MP460, MP470, MP480, MP490
PIXMA MP500, MP510, MP520, MP530, MP540, MP550, MP560
PIXMA MP600, MP600R, MP610, MP620, MP630, MP640, MP710
PIXMA MP800, MP800R, MP810, MP830, MP960, MP970, MP980, MP990
PIXMA MX300, MX310, MX330, MX700, MX850, MX860, MX7600
MultiPASS MP700, MP730, PIXMA MP750 (no grayscale)
ImageCLASS MF3110, MF4010, MF4018, MF4120, MF4122, MF4140
ImageCLASS MF4150, MF4270, MF4370dn, MF4380dn
ImageCLASS MF4660, MF4690, MF5770, D480
I-SENSYS MF4320d, MF4330d

The following models are not well tested and/or the scanner sometimes hangs and must be switched off and on.

SmartBase MP360, MP370, MP390
MultiPASS PIXMA MP760, PIXMA MP780

The following models may use the same Pixma protocol as those listed above, but have not yet been reported to work (or not). They are declared in the backend so that they get recognized and activated. Feedback in the Sane-dev mailing list welcome.

PIXMA MP740
PIXMA MX320
ImageCLASS MF3240, MF5630, MF5650, MF5730, MF5750, MF8170c

The backend supports:

* resolutions of 75, 150, 300, 600, 1200, 2400, and 4800 DPI (some maybe buggy),
* color and grayscale mode,
* a custom gamma table,
* Automatic Document Feeder, Simplex and Duplex.
* Transparency Unit, 24 or 48 bits depth.

The device name for USB devices is in the form pixma:xxxxyyyy_zzzzz where x, y and z are vendor ID, product ID and serial number respectively. Example: pixma:04A91709_123456 is a MP150.

Device names for BJNP devices is in the form pixma:aaaa_bbbbb where aaaa is the scanners model and bbbb is the hostname or ip-adress.

This backend, based on cloning original Canon drivers protocols, is in a production stage. Designed has been carried out without any applicable manufacturer documentation, probably never available. However, we have tested it as well as we could, but it may not work in every situations. You will find an up-to-date status at the project homepage. (See below). Users feedback is essential to help improve features and performances.
OPTIONS

Besides "well-known" options (e.g. resolution, mode etc.) pixma backend also provides the following options for button handling, i.e. the options might change in the future.
Button scan is disabled on MAC OS X due to darwin libusb not handling timeouts in usb interrupt reads.
button−controlled

This option can be used in combination with scanadf(1) and scanimage(1) in batch mode, for example when you want to scan many photos or multiple-page documents. If it is enabled (i.e. is set to true or yes), the backend waits before every scan until the user presses the "SCAN" button (for MP150) or the color-scan button (for other models). Just put the first page in the scanner, press the button, then the next page, press the button and so on. When you finished, press the gray-scan button. (For MP150 you have to stop the frontend by pressing Ctrl-C for example.)

button−update button−1 button−2

These options are interesting for developers. To check button status: (1) set button−1 and button−2 to zero, (2) set button-update (Its type is SANE_TYPE_BUTTON.), (3) get button−1 and button−2. If the result is not zero, the corresponding button was pressed.
FILES

/usr/local/lib/sane/libsane−pixma.a

The static library implementing this backend.

/usr/local/lib/sane/libsane−pixma.so

The shared library implementing this backend (present on systems that support dynamic loading).

/usr/local/etc/sane.d/pixma.conf

The backend configuration file (see also description of SANE_CONFIG_DIR below). The files contains an optional list of scanners. Normally only scanners that can not be auto-detected because they are on a different subnet shall be listed here. If your OS does not allow enumeration of interfaces (i.e. it does not support the getifaddrs() function) you may need to add your scanner here as well. Scanners shall be listed as:

bjnp://<host>
where host is the hostname or IP address of the scanner, e.g. bjnp://10.0.1.4 or bjnp://myscanner.mydomain.org. Define each scanner on a new line.
USB SUPPORT

USB scanners will be auto-detected and require no configuration.
NETWORKING SUPPORT

The pixma backend supports network scanners using the so called Canon BJNP protocol. Configuration is normally not required. The pixma backend will auto-detect your scanner if it is within the same subnet as your computer if your OS does support this.

If your scanner can not be auto-detected, you can add it to the pixma configuration file (see above).
FIREWALLING FOR NETWORKED SCANNERS

The sane pixma backend communicates with port 8612 on the scanner. So you will have to allow outgoing traffic TO port 8612 on the common subnet for scanning.

Scanner detection is slightly more complicated. The pixma backend sends a broadcast on all direct connected subnets it can find (provided your OS allows for enumeration of all interfaces). The broadcast is sent FROM port 8612 TO port 8612 on the broadcast address of each interface. The outgoing packets will be allowed by the rule described above. Responses from the scanner are sent back to the computer TO port 8612. Connection tracking however does not see a match as the response does not come from the broadcast address but from the scanners own address. You will therefore have to allow incoming packets TO port 8612 on your computer.

So in short: open the firewall for all traffic from your computer to port 8612 AND to port 8612 to your computer.

With the firewall rules above there is no need to add the scanner to the pixma.conf file, unless the scanner is on a network that is not directly connected to your computer.
ENVIRONMENT

SANE_DEBUG_PIXMA

If the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. Higher value increases the verbosity.

0 print nothing (default)
1 print error and warning messages (recommended)
2 print informational messages
3 print debug-level messages
11 dump USB/BJNP traffics
21 full dump USB/BJNP traffic

PIXMA_EXPERIMENT

Setting to a non-zero value will enable the support for experimental models. You should also set SANE_DEBUG_PIXMA to 11.

SANE_CONFIG_DIR

This environment variable specifies the list of directories that may contain the configuration file. Under UNIX, the directories are separated by a colon (‘:’), under OS/2, they are separated by a semi-colon (‘;’). If this variable is not set, the configuration file is searched in two default directories: first, the current working directory (".") and then in /usr/local/etc/sane.d. If the value of the environment variable ends with the directory separator character, then the default directories are searched after the explicitly specified directories. For example, setting SANE_CONFIG_DIR to "/tmp/config:" would result in directories "tmp/config", ".", and "/usr/local/etc/sane.d" being searched (in this order).
SEE ALSO

sane(7), sane−dll(5), http://home.arcor.de/wittawat/pixma/, http://mp610.blogspot.com/

In case of trouble with a recent Pixma model, try the latest code for the pixma backend, available in the Sane git repository at:
http://git.debian.org/?p=sane/sane-backends.git

You can also post into the Sane-devel mailing list for support.
AUTHORS

Wittawat Yamwong, Nicolas Martin, Dennis Lou, Louis Lagendijk

We would like to thank all testers and helpers. Without them we could not be able to write subdrivers for models we don’t have. See also the project homepage.

Hors ligne

#25 Le 27/05/2011, à 16:57

demonipuch

Re : [Résolu! :-) ] partager un multifonction Canon Pixma MP500

Ok j'ai (re)parcouru aussi les man sane-net et sane-pixma.

Ne touchez pas au fichier /etc/sane.d/pixma.conf, vous n'êtes pas concerné. Il s'agit du backend pour accéder à un scanner connecté directement au réseau.
Je pense que le problème vient plutôt du le mac étant donné que le serveur fonctionne bien (vous pouvez scanner depuis vos autres postes) .

asheenlevrai a écrit :

mmhh... je ne sais pas comment faire ca "proprement" ;-)

Il n'y a pas l'équivalent de la commande dpkg -P sous mac? big_smile

Hors ligne