OpenBSD 3.9 usb drucker (hp 1022)

scriptorius

Well-Known Member
Hallo,

ich versuche nun schon seit einer Woche, meinen neuen Drucker (HP Laserjet 1022) unter OpenBSD 3.9 zu installieren - bisher ohne Erfolg.

Kann mir vielleicht jemand einen hilfreichen Tipp geben oder hat vielleicht zufällig jemand genau diesen Drucker?

Was ich bisher gemacht habe:

(1) Wie hier beschrieben:
http://www.linuxprinting.org/lpd-doc.html
/etc/printcap angelegt

für LPD:
hp|printer: \
:lp=/dev/usb/lp0: \
:af=/home/dirk/HP-Laserjet_1022-hpijs.ppd: \
:if=/usr/bin/foomatic-rip: \
:sd=/var/spool/lpd/hp: \
:mx#0:sh

bzw. für LPRrng (damit habe ich es ebenfalls probiert):
hp|printer:\
:lp=/dev/lp0:\
:force_localhost:\
:if=/usr/bin/foomatic-rip: \
: ppd=/home/dirk/HP-Laserjet_1022-hpijs.ppd:\
:sd=/var/spool/lpd/hp:\
:mx#0:sh

(2a)
In /etc/rc.conf
lpd_flags="-l"
eingetragen für LPD,

(2b) bzw.

in /etc/rc.local

if [ -x /usr/local/sbin/lpd ]; then
echo -n ' LPRng'; /usr/local/sbin/lpd
fi

für lprng (hierbei habe ich natürlich vorher in der /etc/rc.conf lpd_flags=NO gesetzt und LPRng installiert)
dies steht ebenfalls so hier:
http://www.linuxprinting.org/lpd-doc.html

(3) *.ppd und foomatic-rip habe ich - wie auf linuxprinting.org beschrieben runtergeladen und den Pfad in die printcap (s.o.) eingetragen.

(4) Folgende Programme installiert:

LPRng
apsfilter (damit habe ich auch probiert den Drucker einzurichten, aber ohne Erfolg)
ghostscript
ImageMagick
teTeX
hpijs
psutils
a2ps

(5)
dmesg | grep lpt
lpt0 at isa0 port 0x378/4 irq 7
ulpt0 at uhub2 port 6 configuration 1 interface 0
ulpt0: Hewlett-Packard HP LaserJet 1022, rev 2.00/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode


Wenn ich den Drucker im Kontrollzentrum unter KDE einrichte und versuche, eine Testseite zu drucken, kommt folgende Meldung:

/usr/local/bin/lpr -P 'hp' '-#1' '/usr/local/share/apps/kdeprint/testprint.ps' : execution failed with message:
Status Information, attempt 1 of 3: sending job 'dirk@dirk+305' to hp@localhost connecting to 'localhost', attempt 1 cannot open connection to localhost - No such file or directory Make sure the remote host supports the LPD protocol Waiting 10 seconds before retry Status Information, attempt 2 of 3: sending job 'dirk@dirk+305' to hp@localhost connecting to 'localhost', attempt 1 cannot open connection to localhost - No such file or directory Make sure the remote host supports the LPD protocol Waiting 10 seconds before retry sending job 'dirk@dirk+305' to hp@localhost connecting to 'localhost', attempt 1 cannot open connection to localhost - No such file or directory Make sure the remote host supports the LPD protocol

... damit weiß ich wenig anzufangen
... und keine Ahnung mehr, was jetzt noch zu tun ist.

Danke
 
es gibt unter openbsd kein dev/usb/lp0. da heisst das /dev/ulpt0.

meine /etc/printcap sieht so aus:

Code:
#       $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

lp|local line printer:\
        :lp=/dev/ulpt0:sd=/var/spool/output:lf=/dev/console

#rp|remote line printer:\
#       :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

und meine hosts.lpd so:
Code:
#       $OpenBSD: hosts.lpd,v 1.2 1996/07/20 00:28:28 deraadt Exp $
# as described in lpd(8), place one legal access hostname per line
+
+ +

die zugangskontrolle habe ich dann einfach in der ipf.conf gemacht. die rc.conf enthaelt bei mir

Code:
lpd_flags=""

oh!
und /var/spool/output gehoert root:daemon, mit den rechten 775.

ich hoffe dir damit geholfen zu haben... sonst frag nochmal.
und benutz ruhig die (code) (/code)-tags! (dann aber mit eckigen klammern.) das macht deine fragen uebersichtlicher.
 
afaik der foomatic-rip funktioniert nur unter linux auf netsbd müsste man den anpassen wenn ich falsch liege könnt ihr mich berichtigen.
 
Hallo,
vielen Dank für die Hilfe - jetzt habe ich wieder ein paar Hinweise, denen ich nachgehen kann ...
Deine Angaben kann ich soweit nachvollziehen bis auf diese:

[...] die zugangskontrolle habe ich dann einfach in der ipf.conf gemacht.

... könntest Du darauf bitte noch etwas ausführlicher eingehen?

Code:
echo "hallo welt" >/dev/ulpt0
bash: /dev/ulpt0: Device busy

ls -lR / >/dev/ulpt0
bash: /dev/ulpt0: Device busy
 
Zurück
Oben