Sie sind nicht angemeldet.

BeowulfOF

unregistriert

1

21.04.2005, 21:59

[gelöst] Kein Printerdevice unter /dev

Hallo Forum,

seit heute habe ich hier einen schicken HP-LaserJet-1220 hier herumstehen. Diesen habe ich an meinen Server via Parallel-Port angeschlossen und Cups installiert.

Jetzt hab ich folgendes Problem, Cups gibt mir bei der Konfiguration des Printers an, das der Printer an einem Device hängt, welches nicht existiert, hier der Inhalt der /etc/cups/printers.conf

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Thu Apr 21 21:18:30 2005
<DefaultPrinter hp1220>
Info standard
Location server
DeviceURI parallel:/dev/unknown-parallel0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>


Andere Auswahlmöglichkeiten stellt mir Cups zwar zur auswahl, jedoch sind dies nurUSB- und Netzwerkschnittstellen, an welchen der Drucker nicht hängt.

Nachdem mich das dann ein wenig nachdenklich gemacht hat, habe ich mal wieder in mein /dev Verzeichnis geschaut, und festgestellt, das kein Device vorhanden ist, was auf einen Drucker hinweist.

Was muss ich tun, um an das Device heranzukommen?

Unter dmesg finden sich folgende Zeilen:

Quellcode

1
2
3
4
5
6
7
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
(...)
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 5 detected
parport0: Printer, Hewlett-Packard HP LaserJet 1220
lp0: using parport0 (polling).


Allerdings weder /dev/lp0 noch /dev/parport0 existieren...

Auszüge aus meiner kernelconfig:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Parallel port support
#
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
CONFIG_PARPORT_PC_CML1=y
# CONFIG_PARPORT_SERIAL is not set
CONFIG_PARPORT_PC_FIFO=y
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_OTHER is not set
CONFIG_PARPORT_1284=y

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
CONFIG_PRINTER=y
# CONFIG_LP_CONSOLE is not set
CONFIG_PPDEV=y
# CONFIG_TIPAR is not set


Bin für jeden Hint dankbar...

BeowulfOF

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BeowulfOF« (25.04.2005, 09:34)


2

21.04.2005, 22:25

Das Problem hatte ich auch mal. Komischer Weise ging es als ich parport_pc und lp als Module kompiliert hatte. Wieso ist mir schleierhaft. Aber: blame udev.

Gruß
Oliver
Signaturen sind Bandbreitenverschwendung!

BeowulfOF

unregistriert

3

22.04.2005, 06:31

So, hab es jetzt Probiert, parport_pc und lp als Module zu kompilieren...bringt aber leider immer noch nichts...

MFG BeowulfOF

4

22.04.2005, 15:17

*EDIT: Ich schreib nur müll ^^ *

hast du schonmal in die Unterordner geguckt bei /dev ?
Denn in /dev selbst steht mein Drucker auch nicht.


@Olli
Leipzig? Wie klein die Welt doch ist 8)

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Unplugged« (22.04.2005, 15:20)


BeowulfOF

unregistriert

5

22.04.2005, 15:40

Zitat

Original von Unplugged
hast du schonmal in die Unterordner geguckt bei /dev ?
Denn in /dev selbst steht mein Drucker auch nicht.


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
root svr # ls /dev
agpgart  hda1     input  null     tty11  tty25  tty39  tty52  tty9     vcs3
cdrom    hda2     kmem   port     tty12  tty26  tty4   tty53  ttyS0    vcs4
cdroms   hda3     kmsg   ptmx     tty13  tty27  tty40  tty54  ttyS1    vcs5
cdrw     hda5     log    pts      tty14  tty28  tty41  tty55  ttyS2    vcs6
console  hda6     loop   random   tty15  tty29  tty42  tty56  ttyS3    vcsa
core     hda7     loop0  shm      tty16  tty3   tty43  tty57  ttyS4    vcsa1
discs    hda8     loop1  sndstat  tty17  tty30  tty44  tty58  ttyS5    vcsa2
dvd      hdb      loop2  stderr   tty18  tty31  tty45  tty59  ttyS6    vcsa3
fb       hdc      loop3  stdin    tty19  tty32  tty46  tty6   ttyS7    vcsa4
fb0      hdc1     loop4  stdout   tty2   tty33  tty47  tty60  urandom  vcsa5
fd       hdd      loop5  tts      tty20  tty34  tty48  tty61  vc       vcsa6
fd0      hdd1     loop6  tty      tty21  tty35  tty49  tty62  vcc      zero
floppy   ide      loop7  tty0     tty22  tty36  tty5   tty63  vcs
full     initctl  mem    tty1     tty23  tty37  tty50  tty7   vcs1
hda      inotify  misc   tty10    tty24  tty38  tty51  tty8   vcs2


Mehr ist da leider nicht, als das, was hier zu sehen ist...

Danke fürs Interesse..

BeowulfOF

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BeowulfOF« (22.04.2005, 15:40)


BeowulfOF

unregistriert

6

25.04.2005, 09:33

Habs gelöst, musste lediglich eine Datei "/etc/udev/rules.d/10-local.rules" anlegen, mit folgendem Inhalt:

Quellcode

1
2
3
4
5
6
7
8
9
# lp devices
KERNEL="lp*",           NAME="%k", GROUP="lp"
KERNEL="irlpt",         NAME="%k", GROUP="lp"
KERNEL="usblp",         NAME="%k", GROUP="lp"
KERNEL="lp*",           NAME="%k", GROUP="lp"

# printer device
KERNEL="lp[0-9]"         NAME="%k", OWNER="root", GROUP="lp", MODE="0660"
KERNEL="parport*"        NAME="%k", OWNER="root", GROUP="root", MODE="0660"


Und schon klappt alles wie am Schnürchen...

MFG BeowulfOF