View previous topic :: View next topic |
Author |
Message |
Master_Of_Disaster l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Southpark/avatar14.gif)
Joined: 28 Feb 2003 Posts: 610 Location: 15.05072° East, 48.13747° North (aka Mauer), Austria
|
Posted: Thu Jun 19, 2003 8:50 pm Post subject: Sane für den normalen User - PITA! |
|
|
Ich habe einen ScanMagic 4800P, ein CCD Scanner (-> mustek_pp). Deshalb muß es bei meiner SANE Installation unbedingt das Backend 1.0.9 sein, darüber geht's nicht mehr. Ich möchte gern auch Benutzern, die nicht root sind, es ermöglichen zu scannen. Hier ist die Konfiguration von SANE und XInetD:
/etc/dll.conf:
/etc/net.conf:
/etc/saned.conf:
/etc/mustek_pp.conf:
Quote: | option io-mode alt_lock
option niceload
port 0x378
name SM-4800P
vendor Mustek
option wait-lamoption strip-height 16
option buffer 12240p 15
|
/etc/xinetd.conf
Quote: | # Sample configuration file for xinetd
defaults
{
only_from = localhost
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
|
/etc/xinetd.d/saned
Quote: | cat /etc/xinetd.d/saned
service saned
{
port = 6566
socket_type = stream
server = /usr/sbin/saned
user = daemon
group = daemon
wait = no
}
|
Den Eintrag in /etc/services habe ich erstellt.
Heraus kommt dabei das:
Ausgabe von xinetd -d nach Start von scanimage -L als root:
Quote: | Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
Service configuration: saned
id = saned
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/sbin/saned
Server argv = saned
Only from: localhost(HOST)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
03/6/19@23:34:26: DEBUG: 564 {cnf_start_services} Started service: saned
03/6/19@23:34:26: DEBUG: 564 {cnf_start_services} mask_max = 6, services_started = 1
03/6/19@23:34:26: NOTICE: 564 {main} xinetd Version 20030122 started with libwrap loadavg options compiled in.
03/6/19@23:34:26: NOTICE: 564 {main} Started working: 1 available service
03/6/19@23:34:26: DEBUG: 564 {main_loop} active_services = 1
03/6/19@23:34:40: DEBUG: 564 {main_loop} select returned 1
03/6/19@23:34:40: DEBUG: 564 {server_start} Starting service saned
03/6/19@23:34:40: DEBUG: 569 {exec_server} duping 7
03/6/19@23:34:40: DEBUG: 564 {main_loop} active_services = 1
03/6/19@23:34:40: DEBUG: 564 {main_loop} select returned 1
03/6/19@23:34:40: DEBUG: 564 {check_pipe} Got signal 17 (Child exited)
03/6/19@23:34:40: DEBUG: 564 {child_exit} waitpid returned = 569
03/6/19@23:34:40: DEBUG: 564 {server_end} saned server 569 exited
03/6/19@23:34:40: INFO: 564 {conn_free} freeing connection
03/6/19@23:34:40: DEBUG: 564 {child_exit} waitpid returned = -1
03/6/19@23:34:40: DEBUG: 564 {main_loop} active_services = 1
|
Ausgabe von scanimage: Quote: | bmfh fuero # scanimage -L
device `mustek_pp:SM-4800P' is a Mustek MFS-600IIIP flatbed scanner
|
Sollte hier nicht auch etwas wie
device `net:localhost:mustek_pp:SM-4800P' is a ....
aufgeführt sein? _________________ post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Master_Of_Disaster l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Southpark/avatar14.gif)
Joined: 28 Feb 2003 Posts: 610 Location: 15.05072° East, 48.13747° North (aka Mauer), Austria
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Master_Of_Disaster l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Southpark/avatar14.gif)
Joined: 28 Feb 2003 Posts: 610 Location: 15.05072° East, 48.13747° North (aka Mauer), Austria
|
Posted: Sun Jun 22, 2003 12:05 am Post subject: |
|
|
Also hier ist das Ende des Rätsels und meines Monologes:
Weil ich einen Parallelportscanner verwende, hätte ich diese Seite genauer lesen sollen, denn hier steht ja extra:
Quote: | However, if you want to use saned to access a parallel port scanner, you have to replace saned.saned with root in your inetd.conf or user = saned, group = saned with user = root in your xinetd.conf and you do not need to change any device access rights. |
Tja so einfach kanns gehen... _________________ post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sputnik1969 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/d4caa8793d74c2698ec50.jpg)
Joined: 08 Aug 2002 Posts: 401 Location: Berlin / Germany
|
Posted: Sun Jun 22, 2003 6:21 am Post subject: Re: Sane für den normalen User - PITA! |
|
|
Master_Of_Disaster wrote: | Ich habe einen ScanMagic 4800P, ein CCD Scanner (-> mustek_pp). Deshalb muß es bei meiner SANE Installation unbedingt das Backend 1.0.9 sein, darüber geht's nicht mehr. |
Also ich habe einen Mustek 1200CP (auch->mustek_pp allerdings ein CIS-Scanner) und der läuft prima mit sane-backends 1.0.11
Scannen geht auch übers netzwerk von der Kommandozeile aus (scanimage -L zeigt den Scanner und scanimage --format=pnm >test.pnm erzeugt auch eine PNM-Datei mit korrektem Inhalt) allerdings sobald ich xscanimage starte gibt er mir die Fehlermeldung "Failed to open 'net:kepler:mustek_pp:Mustek-1200CP': Access to resource has been denied" und Kooka klappt auch nicht, ohne Fehlermeldung aber ich schätze es ist das selbe Problem...
Mit xsane kann ich allerdings normal scannen, alles klappt ohne Probleme...
Hat jemand möglicherweise eine Idee woran das liegen kann und wie ich das Problem gelöst bekomme?? Ich würde nämlich gerne Kooka anstelle xsane als GUI verwenden...
Ich bin für jede Idee dankbar ![Smile :)](images/smiles/icon_smile.gif) _________________ 'Cynic' is a word invented by optimists to criticize realists. - Nigel. In the ocean of Night by Gregory Benford
"Zyniker" ist ein Wort das Optimisten erfunden haben um Realisten zu kritisieren. - Nigel. Im Meer der Nacht von Gregory Benford |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Master_Of_Disaster l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Southpark/avatar14.gif)
Joined: 28 Feb 2003 Posts: 610 Location: 15.05072° East, 48.13747° North (aka Mauer), Austria
|
Posted: Sun Jun 22, 2003 8:22 am Post subject: |
|
|
Wie bereits an anderer Stelle gesagt:
CCD Scanner: sane-backends <= 1.10.9,
CIS Scanner: sane-backends > 1.10.9.
Leider gehts nicht anders.
@sputnik: startest du den saned auch als root? Wie sehen net.conf, saned.conf und dll.conf aus? _________________ post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sputnik1969 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/d4caa8793d74c2698ec50.jpg)
Joined: 08 Aug 2002 Posts: 401 Location: Berlin / Germany
|
Posted: Sun Jun 22, 2003 5:02 pm Post subject: |
|
|
Master_Of_Disaster wrote: | Wie bereits an anderer Stelle gesagt:
CCD Scanner: sane-backends <= 1.10.9,
CIS Scanner: sane-backends > 1.10.9.
|
Ich hatte den vorher auch schon mal mit 1.0.9 zu laufen bekommen, allerdings nur mit einem patch, aber es geht sein 1.0.3 auch mit CIS, wenn man den Patch einspielt...
Master_Of_Disaster wrote: | @sputnik: startest du den saned auch als root? Wie sehen net.conf, saned.conf und dll.conf aus? |
saned steht in der xinet.d als root drin, mein xinetd.d sie wie folgt aus:
Code: | service sane
{
port = 6566
socket_type = stream
user = root
group = root
wait = no
disable = no
server = /usr/sbin/saned
} |
in der net.conf sind alle IP's drin, die auf den Scanner zugreifen sollen (Serverseitig) und in der dll.conf sind net, mustek_pp und pnm vorhanden und nicht kommentiert...(Sowohl Client als auch Server)
Wie gesagt, über scanimage kann ich vom Client aus scannen, mit xsane auch, nur xscanimage und kooka weigern sich... _________________ 'Cynic' is a word invented by optimists to criticize realists. - Nigel. In the ocean of Night by Gregory Benford
"Zyniker" ist ein Wort das Optimisten erfunden haben um Realisten zu kritisieren. - Nigel. Im Meer der Nacht von Gregory Benford |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|