Difference between revisions of "HP LaserJet 1020"

From Hugo Villeneuve
Jump to: navigation, search
(Instructions pour CUPS-2)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
= Instructions pour CUPS 1.4 =
= Installation =
 
   
Instructions d'installation avec CUPS 1.4
+
== Installer CUPS-1.4 ==
   
  +
Tout d'abord, appliquer cette patch:
1. Installer CUPS
 
Tout d'abord, appliquer cette patch:
 
   
http://www.hugovil.com/repository/hvlinux/patches/cups-1.4.8-php54.patch
+
http://www.hugovil.com/repository/hvlinux/patches/cups-1.4.8-php54.patch
   
Ensuite, configurer CUPS avec:
+
Ensuite, configurer CUPS avec:
   
--libdir=/usr/lib --enable-pdftops
+
--libdir=/usr/lib --enable-pdftops
   
2. Installer foomatic-filters:
+
== Installer foomatic-filters ==
   
 
$> wget http://www.openprinting.org/download/foomatic/foomatic-filters-4.0.17.tar.gz
 
$> wget http://www.openprinting.org/download/foomatic/foomatic-filters-4.0.17.tar.gz
Line 21: Line 20:
 
$> make install
 
$> make install
 
 
3. Installer foo2zjs:
+
== Installer foo2zjs ==
   
 
$> wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
 
$> wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
 
$> tar -xf foo2zjs.tar.gz
 
$> tar -xf foo2zjs.tar.gz
   
Appliquer ma patch (HP1020)
+
Appliquer ma patch (HP1020)
 
$> wget http://www.hugovil.com/repository/hvlinux/patches/foo2zjs-hvlinux-hp1020.patch
 
$> wget http://www.hugovil.com/repository/hvlinux/patches/foo2zjs-hvlinux-hp1020.patch
 
$> cd foo2zjs
 
$> cd foo2zjs
Line 35: Line 34:
 
$> make install-hotplug
 
$> make install-hotplug
   
Ma patch est nécessaire pour enlever la dépendance à l'utilitaire ex, et pour enlever automatiquement le module usblp lorsque le firmware de l'imprimante est téléchargé.
+
Ma patch est nécessaire pour enlever la dépendance à l'utilitaire ex, et pour enlever automatiquement le module usblp lorsque le firmware de l'imprimante est téléchargé.
   
 
L'imprimante devrait être détectée par CUPS
 
L'imprimante devrait être détectée par CUPS
   
4. Configurer LPR
+
== Configurer LPR ==
   
 
Pour voir les imprimantes disponibles:
 
Pour voir les imprimantes disponibles:
Line 49: Line 48:
   
 
$> lpoptions -d HP_LaserJet_1020
 
$> lpoptions -d HP_LaserJet_1020
  +
  +
= Instructions pour CUPS-2 =
  +
  +
La procédure est identique à celle pour CUPS-1.4. Cependant, il y a un problème lorsqu'on imprime un document PDF (postcript est correct).
  +
  +
Le problème est causé par cups-filters-1.0.61 qui force l'utilisation de pdftops de la librairie Poppler lorsqu'il détecte une vieille imprimante HP LaserJet. Pour corriger le problème, il suffit de toujours le forcer à utiliser celui de Ghostscript:
  +
  +
lpadmin -p HP_LaserJet_1020 -o pdftops-renderer-default=gs
  +
  +
= Instructions générales =
  +
  +
adduser <username> lpadmin

Latest revision as of 21:00, 26 February 2017

Instructions pour CUPS 1.4

Installer CUPS-1.4

Tout d'abord, appliquer cette patch:

 http://www.hugovil.com/repository/hvlinux/patches/cups-1.4.8-php54.patch

Ensuite, configurer CUPS avec:

 --libdir=/usr/lib --enable-pdftops

Installer foomatic-filters

 $> wget http://www.openprinting.org/download/foomatic/foomatic-filters-4.0.17.tar.gz
 $> tar -xf foomatic-filters-4.0.17.tar.gz
 $> cd foomatic-filters-4.0.17
 $> ./configure --prefix=/usr
 $> make
 $> make install
 

Installer foo2zjs

 $> wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
 $> tar -xf foo2zjs.tar.gz

Appliquer ma patch (HP1020)

 $> wget http://www.hugovil.com/repository/hvlinux/patches/foo2zjs-hvlinux-hp1020.patch
 $> cd foo2zjs
 $> patch -Np1 -i ../foo2zjs-hvlinux-hp1020.patch
 $> make
 $> ./getweb 1020
 $> make install
 $> make install-hotplug

Ma patch est nécessaire pour enlever la dépendance à l'utilitaire ex, et pour enlever automatiquement le module usblp lorsque le firmware de l'imprimante est téléchargé.

L'imprimante devrait être détectée par CUPS

Configurer LPR

Pour voir les imprimantes disponibles:

 $> lpstat -a
 HP_LaserJet_1020 accepting requests since Sat 28 Dec 2013 04:29:51 PM EST

Pour configurer l'imprimante par défaut:

 $> lpoptions -d HP_LaserJet_1020

Instructions pour CUPS-2

La procédure est identique à celle pour CUPS-1.4. Cependant, il y a un problème lorsqu'on imprime un document PDF (postcript est correct).

Le problème est causé par cups-filters-1.0.61 qui force l'utilisation de pdftops de la librairie Poppler lorsqu'il détecte une vieille imprimante HP LaserJet. Pour corriger le problème, il suffit de toujours le forcer à utiliser celui de Ghostscript:

 lpadmin -p HP_LaserJet_1020 -o pdftops-renderer-default=gs

Instructions générales

 adduser <username> lpadmin