Page 2 sur 3
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : jeu. 05 janv. 2012, 18:23
par Springbank
Merci à vous deux
les logs postés plus haut sont ce que j'ai maintenant car il m'est impossible d'imprimer quoi que ce soit...
Car j'ai bien lancé le cupswrapper de /usr/local/Brother/Printer/dcp330c/cupswrapper/cupswrapper.
Après dans l'interface web de cups, j'ai trouvé mon imprimante mais quand je lance une impression:
j'ai: Processing - "Waiting for printer to become available."
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : jeu. 05 janv. 2012, 18:51
par mélodie
Salut,
/usr/local/Brother/Printer/dcp330c/cupswrapper/cupswrapper : le dernier nom devrait avoir le nom de modèle à la fin.
Par ailleurs, as-tu ajouté cups dans les demons lancés au démarrage dans le rc.conf ? Si oui, as-tu redémarré ta machine ? Souvent le reboot aide après une configuration d'imprimante.
PS: tu as bien installé avec AUR ?
Je vois beaucoup de paquets
ici pour DCP330C, dont celui dont FoolEcho te parlait... un paquet cups-wrapper. ^^
Archlinux perdrait-il de son KISS ?
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : jeu. 05 janv. 2012, 20:13
par Springbank
Oui je pense avoir tout bien installé.
Voici mon rc.conf:
Code : Tout sélectionner
# /etc/rc.conf - Main Configuration for Arch Linux
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# Note: Using "localtime" is discouraged, using "" makes hwclock fall back
# to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# Note: if unset, the value in /etc/localtime is used unchanged
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="fr_FR.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Paris"
KEYMAP="fr"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
# Replace every !module by an entry as on the following line in a file in
# /etc/modprobe.d:
# blacklist module
# See "man modprobe.conf" for details.
#
MOD_AUTOLOAD="yes"
MODULES=(fuse)
# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30
# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"
# Scan for BTRFS volumes at startup
USEBTRFS="no"
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="newtek"
# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
# - interface: name of device (required)
# - address: IP address (leave blank for DHCP)
# - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
# - broadcast: broadcast address (ignored for DHCP) (optional)
# - gateway: default route (ignored for DHCP)
#
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# broadcast=192.168.0.255
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=
interface=eth0
address=
netmask=
broadcast=
gateway=
# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"
# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
#NETWORKS=(main)
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
DAEMONS=(hwclock syslog-ng network netfs crond dbus @alsa cupsd @ntpd gdm)
cups est bien dans les DAEMONS.
J'ai redémarré la machine,et tout et tout
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : jeu. 05 janv. 2012, 21:14
par mélodie
Si ça ne marche pas avec la méthode par les dépôts, essaies la méthode pas par les dépôts ? Mais avant essaie encore ceci: dans l'interface CUPS, (localhost:631), supprimes l'imprimante, puis recrées la. Ensuite, à nouveau un "./cupswrapper-dcp330C" sous /usr/Brother/printer etc... ou chose comme ça, et tentes d'imprimer une page de test. Puis rebootes, retentes... (imprimante branchée et allumée, bien sûr !)
Et peux-tu nous montrer le rc.conf à la ligne des daemons ?
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : ven. 06 janv. 2012, 21:40
par Springbank
Mon rc.conf est juste au dessus.
toujours rien après avoir tout refait.
Par contre je viens de trouver cela:
Code : Tout sélectionner
[root@newtek xavier]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:08af Logitech, Inc. QuickCam Easy/Cool
Bus 002 Device 003: ID 04f9:01a9 Brother Industries, Ltd DCP-330C
Bus 002 Device 004: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Bus 002 Device 005: ID 046d:c062 Logitech, Inc. LS1 Laser Mouse, corded
[root@newtek xavier]# ls -l /dev/bus/usb/002/003
crw-rw-r--+ 1 root scanner 189, 130 6 janv. 21:23 /dev/bus/usb/002/003
On dirait que l'imprimante est reconnue comme scanner et non comme imprimante.
Comment faire?
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : ven. 06 janv. 2012, 22:29
par mélodie
Il résiste ton marsouin !
Je te conseille de tout désinstaller, l'imprimante, le ou les drivers, et d'essayer la méthode qui est présentée sur le wiki.archlinux.org :
https://wiki.archlinux.org/index.php/Brother_DCP-135C
En adaptant les parties relatives au modèle, bien sûr.
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : sam. 07 janv. 2012, 09:38
par FoolEcho
Springbank a écrit :On dirait que l'imprimante est reconnue comme scanner et non comme imprimante.
Tu peux créer la règle udev adéquate, cf. wiki:
https://wiki.archlinux.org/index.php/Cu ... ermissions.
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : dim. 08 janv. 2012, 15:51
par Springbank
On se rapproche, j'ai crée la regle udev, et l'imprimante est bien reconnue.
Maintenant j'ai ça dans les logs:
Code : Tout sélectionner
localhost - - [08/Jan/2012:15:47:03 +0100] "POST / HTTP/1.1" 200 154 Cancel-Subscription successful-ok
localhost - - [08/Jan/2012:15:48:13 +0100] "POST / HTTP/1.1" 200 362 Create-Printer-Subscription successful-ok
localhost - - [08/Jan/2012:15:49:04 +0100] "POST /printers/DCP330C HTTP/1.1" 200 422 Print-Job client-error-not-authorized
localhost - - [08/Jan/2012:15:49:05 +0100] "POST /printers/DCP330C HTTP/1.1" 200 451 Print-Job client-error-not-authorized
localhost - - [08/Jan/2012:15:49:06 +0100] "POST /printers/DCP330C HTTP/1.1" 200 451 Print-Job client-error-not-authorized
localhost - - [08/Jan/2012:15:49:27 +0100] "POST / HTTP/1.1" 200 185 Renew-Subscription client-error-not-found
localhost - - [08/Jan/2012:15:49:27 +0100] "POST / HTTP/1.1" 200 346 Create-Printer-Subscription successful-ok
localhost - - [08/Jan/2012:15:49:32 +0100] "POST /printers/DCP330C HTTP/1.1" 200 452 Print-Job successful-ok
localhost - - [08/Jan/2012:15:49:56 +0100] "GET /admin/log/error_log? HTTP/1.1" 200 1269 - -
localhost - - [08/Jan/2012:15:50:01 +0100] "GET /admin/log/page_log? HTTP/1.1" 200 0 - -
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : dim. 08 janv. 2012, 16:42
par mélodie
Bonjour,
Ton utilisateur est-il dans les bons groupes ?
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : dim. 08 janv. 2012, 21:20
par Springbank
C'est ce que je me demandais, comment le savoir?
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : lun. 09 janv. 2012, 00:07
par mélodie
Dans la console en simple utilisateur tape la commande "id" (sans les guillemets). Pour plus d'information, sur le wiki :
http://wiki.archlinux.fr/Utilisateurs_et_Groupes
lp /etc/cups, /var/log/cups, /var/cache/cups, /var/spool/cups Accès à l'imprimante
...
sys Administration du serveur d'impression CUPS
et encore plus :
https://wiki.archlinux.org/index.php/Groups
lp /etc/cups, /var/log/cups, /var/cache/cups, /var/spool/cups Access to printer hardware; enables the user to manage print jobs.
...
sys Right to admin printers in CUPS.
Je te mâche un peu les choses, mais que cela ne t'empêche pas de lire les deux pages en entier... en particulier, je te recommande de prêter attention à la commande gpasswd si tu as besoin de l'employer.
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : lun. 09 janv. 2012, 13:41
par Springbank
Je suis bien dans le groupe lp:
Code : Tout sélectionner
[xavier@newtek ~]$ id
uid=1000(xavier) gid=1000(xavier) groupes=1000(xavier),7(lp),10(wheel),19(log),91(video),92(audio),93(optical),94(floppy),95(storage),96(scanner),98(power),100(users)
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : lun. 09 janv. 2012, 13:53
par mélodie
Salut,
melodie a écrit :
Pour plus d'information, sur le wiki :
http://wiki.archlinux.fr/Utilisateurs_et_Groupes
Citer:
lp /etc/cups, /var/log/cups, /var/cache/cups, /var/spool/cups Accès à l'imprimante
...
sys Administration du serveur d'impression CUPS
As-tu lu cette page du wiki ?
"sudo gpasswd -a sys xavier"
man gpasswd:
Un administrateur de groupe peut ajouter ou supprimer des utilisateurs en utilisant respectivement les options -a et -d
Je ne dis pas que ça va tout résoudre mais ça peut aider.
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : ven. 13 janv. 2012, 19:20
par Springbank
Récapitulatif de cette installation problématique
1)Installation des drivers via rpmextract - OK
2)/etc/local/Brother/Printer/dcp330c/cupswrapper/cupswrapperdcp330c - OK
Après cela, imprimante visible dans cups, mais pas de possibilité d'imprimer.
lsusb
Code : Tout sélectionner
[xavier@newtek ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:08af Logitech, Inc. QuickCam Easy/Cool
Bus 002 Device 003: ID 04f9:01a9 Brother Industries, Ltd DCP-330C
Bus 002 Device 004: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Bus 002 Device 005: ID 046d:c062 Logitech, Inc. LS1 Laser Mouse, corded
[xavier@newtek ~]$
Code : Tout sélectionner
[xavier@newtek ~]$ ls -l /dev/bus/usb/002/003
crw-rw-r--+ 1 root lp 189, 130 13 janv. 19:05 /dev/bus/usb/002/003
[xavier@newtek ~]$
Elle est bien reconnue comme imprimante, mais je n'arrive pas à changer le lp 189 en lp 666 (nécessaire pour cette imprimante) malgré:
Code : Tout sélectionner
[xavier@newtek ~]$ cat /etc/udev/rules.d/10-usbprinter.rules
ATTR{idVendor}=="04f9", ATTR{idProduct}=="01a9", MODE:="0666", GROUP:="lp", ENV{libsane_matched}:="yes"
Enfin, je suis bien dans le groupe lp
Code : Tout sélectionner
[xavier@newtek ~]$ id
uid=1000(xavier) gid=1000(xavier) groupes=1000(xavier),3(sys),7(lp),10(wheel),19(log),91(video),92(audio),93(optical),94(floppy),95(storage),96(scanner),98(power),100(users)
Maintenant , je ne sais plus quoi faire...
Help...
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : ven. 13 janv. 2012, 19:56
par FoolEcho
Springbank a écrit :ATTR{idVendor}=="04f9", ATTR{idProduct}=="01a9", MODE:="0666", GROUP:="lp", ENV{libsane_matched}:="yes"
C'est quoi ces "
:=
" ?
De l'algorithmique ?

Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : ven. 13 janv. 2012, 20:02
par Springbank
Sur le wiki, c'est écrit comme cela

Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : ven. 13 janv. 2012, 20:10
par FoolEcho
Je viens de voir... C'est louche.

Essaie avec "=".
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : ven. 13 janv. 2012, 20:21
par mélodie
Je suis d'accord avec FoolEcho. Et pour preuve, voici pour la partie Scanner du DCP330C (chez moi il est dans le fichier dénommé /etc/udev/rules.d/60-libsane.rules)
Code : Tout sélectionner
# Brother DCP-330C
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01a9", ENV{libsane_matched}="yes"
Cela peut servir de modèle.
Enfin, dans
/etc/local/Brother/Printer/dcp330c/cupswrapper/ as-tu bien tapé en root:
./cupswrapperdcp330c ?
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : ven. 13 janv. 2012, 20:46
par Springbank
mélodie a écrit :
Enfin, dans
/etc/local/Brother/Printer/dcp330c/cupswrapper/ as-tu bien tapé en root: ./cupswrapperdcp330c ?
Oui, j'ai fait cela.
Je corrige les ":=" en "=" et je reboote.
[Edit]
Après correction, pas de changement:
Code : Tout sélectionner
[xavier@newtek ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:08af Logitech, Inc. QuickCam Easy/Cool
Bus 002 Device 003: ID 04f9:01a9 Brother Industries, Ltd DCP-330C
Bus 002 Device 004: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Bus 002 Device 005: ID 046d:c062 Logitech, Inc. LS1 Laser Mouse, corded
[xavier@newtek ~]$ ls -l /dev/bus/usb/002/003
crw-rw-r--+ 1 root lp 189, 130 13 janv. 20:47 /dev/bus/usb/002/003
[xavier@newtek ~]$
Re: [Imprimante] Installation d'une imprimante Brother DCP-3
Publié : ven. 13 janv. 2012, 20:54
par Springbank
Mon rc.conf
Code : Tout sélectionner
GNU nano 2.2.6 Fichier : /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# Note: Using "localtime" is discouraged, using "" makes hwclock fall back
# to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# Note: if unset, the value in /etc/localtime is used unchanged
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="fr_FR.UTF-8"
[ Lecture de 120 lignes ]
^G Aide ^O Écrire ^R Lire fich. ^Y Page préc. ^K Couper ^C Pos. cur.
^X Quitter ^J Justifier ^W Chercher ^V Page suiv. ^U Coller ^T Orthograp.
Error Log
Code : Tout sélectionner
W [13/Jan/2012:21:42:31 +0100] Bad resolution "Draft" for printer DCP330C.
W [13/Jan/2012:21:42:31 +0100] Bad resolution "Fast" for printer DCP330C.
W [13/Jan/2012:21:42:31 +0100] Bad resolution "Normal" for printer DCP330C.
W [13/Jan/2012:21:42:31 +0100] Bad resolution "Fine" for printer DCP330C.
W [13/Jan/2012:21:42:31 +0100] Bad resolution "Photo" for printer DCP330C.
W [13/Jan/2012:21:42:31 +0100] Bad resolution "Highest" for printer DCP330C.
W [13/Jan/2012:21:43:45 +0100] Bad resolution "Draft" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:45 +0100] Bad resolution "Fast" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:45 +0100] Bad resolution "Normal" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:45 +0100] Bad resolution "Fine" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:45 +0100] Bad resolution "Photo" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:45 +0100] Bad resolution "Highest" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:53 +0100] Bad resolution "Draft" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:53 +0100] Bad resolution "Fast" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:53 +0100] Bad resolution "Normal" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:53 +0100] Bad resolution "Fine" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:53 +0100] Bad resolution "Photo" for printer Brother_DCP-330C.
W [13/Jan/2012:21:43:53 +0100] Bad resolution "Highest" for printer Brother_DCP-330C.