PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Gentoo: Mustek-1200CP scannt nur als root



Kai Oltmann
17.01.04, 18:14
Hallo.
Ich hab Probleme unter Gentoo meinen Parallel-Port Scanner zu laufen zu bekommen.
Scannen mit xsane klappt tadellos.....aber nur als root.
Als user findet sowohl xsane als auch scanimage keinen scanner.
Ich hab auf der sane Homepage das hier gefunden:

5.4. Permissions: As root it works, but not for ordinary people
Anyone scanning must have read and write permissions on the scanner-device. Do a
scanimage -L
This will give you the name of the device. For example:
[ljm@ronsard ~]$ scanimage -L
device `umax:/dev/sgd' is a UMAX Astra 1220S flatbed scanner
[ljm@ronsard ~]$
The /dev/sgd is the name of the device. The easiest is to give everybody access (chmod a+rw /dev/sgd). You might also allow only a limited group.

Das hilft mir aber auch nicht so recht weiter.
Wenn ich (als root) scanimage -L ausfühle kommt dabei folgendes raus:

device `mustek_pp:Mustek-1200CP' is a Mustek 1200CP flatbed scanner

Da steht aber nichts von /dev/..... :(
Von daher ist mir schleierhaft welche Datei ich beim chmod Befehl eintragen soll.

Fatty
17.01.04, 18:29
Wollte nur mal anmerken, dass es mir mit meinem Medion 9??? genauso geht. Auf jeden Fall ist mein Scanner baugleich mit dem Mustek 1200CP.

Ich kann als normalerweise allerdings per XSane auf meine TV-Karte zugreifen, also vom TV scannen :ugly:

RapidMax
17.01.04, 18:36
AFAIK heissen die Parallel-Port device unter Linux ip#, wobei # die nummer des Port ist. Beispiel: /dev/lp0
Sowohl unter SuSE als auch unter Debian sind die Zugriffsrechte wie folgt gesetzt:
crw-rw---- 1 root lp 6, 0 2002-09-09 22:24 /dev/lp0

D.h. du musst inder Gruppe lp sein, um darauf zuzugreifen. (nach dem Hinzufügen zur Gruppe nicht vergessen ein/auszuloggen).

Ob es nun dieses Device ist, welches dir das Scannen ermöglicht, kann ich leider nicht sagen.

Hier ist noch was: http://www.torque.net/linux-pp.html

Gruss, Andy

Kai Oltmann
17.01.04, 20:24
Hab mit "usermod -G users,wheel,audio.lp nutzername" meinen Account bei der Gruppe lp mit eingetragen und neu gestartet.
Hat aber nix gebracht.
Der Scanner wird nach wie vor nur gefunden wenn root xsane aufruft.
Ein Device /dev/lp0 gibts übrigens nicht bei mir.

hmarburg
17.01.04, 20:30
Saned findest du hier und auch wie du es zum laufen bringst. (http://www.penguin-breeder.org/sane/saned/)

Kai Oltmann
17.01.04, 20:56
Neue Anleitung altes Problem:

....Furthermore, you have to make sure user and group saned exist and they have appropriate access rights to your SCSI, parallel port, and USB devices....
... Examples for USB devices would be /dev/usbscanner or /dev/usb/scanner0, parallel port scanners are connected for example to /dev/parport0.....

Ich hab aber kein /dev/parport0 oder /dev/lp0

ls
admmidi ide ptybf ptyp2 ptys5 ptyv8 ptyyb sr tty5
adsp ieee1394 ptyc0 ptyp3 ptys6 ptyv9 ptyyc sr0 tty50
amidi initctl ptyc1 ptyp4 ptys7 ptyva ptyyd stderr tty51
audio initrd ptyc2 ptyp5 ptys8 ptyvb ptyye stdin tty52
cdrom input ptyc3 ptyp6 ptys9 ptyvc ptyyf stdout tty53
cdroms kmem ptyc4 ptyp7 ptysa ptyvd ptyz0 tty tty54
console log ptyc5 ptyp8 ptysb ptyve ptyz1 tty0 tty55
cpu mem ptyc6 ptyp9 ptysc ptyvf ptyz2 tty1 tty56
discs midi00 ptyc7 ptypa ptysd ptyw0 ptyz3 tty10 tty57
dmmidi misc ptyc8 ptypb ptyse ptyw1 ptyz4 tty11 tty58
dsp mixer ptyc9 ptypc ptysf ptyw2 ptyz5 tty12 tty59
dvd mouse ptyca ptypd ptyt0 ptyw3 ptyz6 tty13 tty6
fb null ptycb ptype ptyt1 ptyw4 ptyz7 tty14 tty60
fd nvidia0 ptycc ptypf ptyt2 ptyw5 ptyz8 tty15 tty61
fd0 nvidiactl ptycd ptyq0 ptyt3 ptyw6 ptyz9 tty16 tty62
fd0u1040 port ptyce ptyq1 ptyt4 ptyw7 ptyza tty17 tty63
fd0u1120 psaux ptycf ptyq2 ptyt5 ptyw8 ptyzb tty18 tty7
fd0u1440 ptmx ptyd0 ptyq3 ptyt6 ptyw9 ptyzc tty19 tty8
fd0u1600 pts ptyd1 ptyq4 ptyt7 ptywa ptyzd tty2 tty9
fd0u1680 pty ptyd2 ptyq5 ptyt8 ptywb ptyze tty20 urandom
fd0u1722 ptya0 ptyd3 ptyq6 ptyt9 ptywc ptyzf tty21 usb
fd0u1743 ptya1 ptyd4 ptyq7 ptyta ptywd ram0 tty22 usbmouse
fd0u1760 ptya2 ptyd5 ptyq8 ptytb ptywe ram1 tty23 vc
fd0u1840 ptya3 ptyd6 ptyq9 ptytc ptywf ram10 tty24 vcc
fd0u1920 ptya4 ptyd7 ptyqa ptytd ptyx0 ram11 tty25 vcs
fd0u360 ptya5 ptyd8 ptyqb ptyte ptyx1 ram12 tty26 vcs1
fd0u720 ptya6 ptyd9 ptyqc ptytf ptyx2 ram13 tty27 vcs12
fd0u800 ptya7 ptyda ptyqd ptyu0 ptyx3 ram14 tty28 vcs2
fd0u820 ptya8 ptydb ptyqe ptyu1 ptyx4 ram15 tty29 vcs3
fd0u830 ptya9 ptydc ptyqf ptyu2 ptyx5 ram2 tty3 vcs4
floppy ptyaa ptydd ptyr0 ptyu3 ptyx6 ram3 tty30 vcs5
full ptyab ptyde ptyr1 ptyu4 ptyx7 ram4 tty31 vcs6
gpmctl ptyac ptydf ptyr2 ptyu5 ptyx8 ram5 tty32 vcs7
hda ptyad ptye0 ptyr3 ptyu6 ptyx9 ram6 tty33 vcsa
hda1 ptyae ptye1 ptyr4 ptyu7 ptyxa ram7 tty34 vcsa1
hda2 ptyaf ptye2 ptyr5 ptyu8 ptyxb ram8 tty35 vcsa12
hda3 ptyb0 ptye3 ptyr6 ptyu9 ptyxc ram9 tty36 vcsa2
hda4 ptyb1 ptye4 ptyr7 ptyua ptyxd raminitrd tty37 vcsa3
hdb ptyb2 ptye5 ptyr8 ptyub ptyxe random tty38 vcsa4
hdc ptyb3 ptye6 ptyr9 ptyuc ptyxf rd tty39 vcsa5
hdd ptyb4 ptye7 ptyra ptyud ptyy0 root tty4 vcsa6
hdd1 ptyb5 ptye8 ptyrb ptyue ptyy1 root.old tty40 vcsa7
hdd2 ptyb6 ptye9 ptyrc ptyuf ptyy2 rtc tty41 zero
hde ptyb7 ptyea ptyrd ptyv0 ptyy3 scsi tty42
hde1 ptyb8 ptyeb ptyre ptyv1 ptyy4 sequencer tty43
hdg ptyb9 ptyec ptyrf ptyv2 ptyy5 sequencer2 tty44
hdg1 ptyba ptyed ptys0 ptyv3 ptyy6 sg tty45
hdk ptybb ptyee ptys1 ptyv4 ptyy7 sg0 tty46
hdk1 ptybc ptyef ptys2 ptyv5 ptyy8 shm tty47
hdl ptybd ptyp0 ptys3 ptyv6 ptyy9 snd tty48
hdl1 ptybe ptyp1 ptys4 ptyv7 ptyya sound tty49

RapidMax
17.01.04, 21:22
Wenn du nach Anleitung einen entsprechendes Device benötigst, kannst du dir es auch anlegen. Documentation/devices.txt in der Kernel-Doku sagt:
/dev/lp0: char Major 6 Minor 0
/dev/lp1: char Major 6 Minor 0
usw.
Wie du die Device anlegst, steht in "man mknod". Falls du einen selbst erstellten Kernel besitzt, solltest du noch darauf achten, das der Treiber eingebunden ist.

Gruss, Andy

Kai Oltmann
17.01.04, 22:08
OK.
/dev/lp0 und /dev/parport0 sind erstellt
Beide gehören root Gruppe lp.
Sowohl owner als auch group haben lese und schreibrechte.
Der nutzer, der den Scanner nutzen soll steht in der Gruppe lp (hab extra unter /etc/group nachgesehen).
Ein "echo test > /dev/lp0" oder "echo test > /dev/parport0" als user gibt übriegns das Wort "test" auf meinem ebenfalls an lp0 angeschossenen drucker aus.
Demnach muß der user doch die nötigen Zugriffsrechte haben oder seh ich das falsch?
Es wird aber nach wie vor als user kein Scanner gefunden.

stefan.becker
17.01.04, 22:10
http://www.linuxforen.de/forums/showthread.php?threadid=37567&highlight=scanner

Schau mal nach "sudo", das spart dir saned.

Kai Oltmann
17.01.04, 23:04
Ich habs jetzt mit dem saned hinbekommen.
Wäre noch zu erwähnen, daß (anders als in der Anleitung http://www.penguin-breeder.org/sane/saned/ beschieben)
der saned bei Gentoo 1.4 nicht unter /usr/local/sbin sondern unter /usr/sbin liegt.
Danke für eure Geduld und Hilfe.