[] Debian 12 - Scanner wird nicht gefunden

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 24.12.2020 13:54:59

https://nopaste.linux-dev.org/?1326436

Das habe ich doch schon in der 60-libsane.rules getan.

Siehe nopaste, Zeile 86.

Hast Du das überlesen?

Warum jetzt in der 65-libsane.rules eintragen?

Jetzt nochmals eintragen?

mellinger
Beiträge: 14
Registriert: 23.12.2020 14:54:15

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von mellinger » 24.12.2020 14:38:25

Du hast geschrieben, Du hättest es wieder entfernt.

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 24.12.2020 14:43:53

viewtopic.php?f=30&t=176958&start=150#p1259236
mit Anpassung der /lib/udev/rules.d/60-libsane.rules :

https://nopaste.linux-dev.org/?1326436

Zeile 85 und 86 hinzugefügt.

Reboot vom Gesamtsystem
Das habe ich vermutlich nicht deutlich genug herausgestellt.

mellinger
Beiträge: 14
Registriert: 23.12.2020 14:54:15

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von mellinger » 24.12.2020 16:05:46

Code: Alles auswählen

cat /etc/sane.d/saned.conf
Sind Zugriffe aus dem lokalen Netzwerk erlaubt?

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 24.12.2020 16:13:29

Auf dem Server Debian 10:

Code: Alles auswählen

root@p5:~# scanimage -L
device `snapscan:/dev/sg2' is a AGFA SNAPSCAN 310 flatbed scanner


root@p5:~# cat /etc/sane.d/saned.conf
# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
# data_portrange = 10000 - 10100


## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:db8:185e::42:12]
#[2001:db8:185e::42:12]/64

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).
root@p5:~# 
Da scheint doch was zu fehlen.

https://wiki.ubuntuusers.de/SANE-Scanse ... _Netzwerk/
Netzwerkzugriff für Clients auf dem Host (Server) freigeben

Hinweis:

Häufige Fehlerquelle - die Rechner, die den Scanner auf dem Server verwenden wollen, müssen explizit freigegeben werden.

In der Datei /etc/sane.d/saned.conf werden mit einem Texteditor die Hostnamen eingetragen, die auf den Scanserver zugreifen dürfen.
Fehler korrigert:

Code: Alles auswählen

cat /etc/sane.d/saned.conf
# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
# data_portrange = 10000 - 10100


## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:db8:185e::42:12]
#[2001:db8:185e::42:12]/64

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).
192.168.178,42  # client der auf scanserver zugreifen darf 
Jetzt ein Reboot

Auf dem Client:

Code: Alles auswählen

 sudo scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
Soll ich noch mal irgendwas beim Debian 9 Stretch Server versuchen abzuschauen viewtopic.php?f=30&t=179650 ?

mellinger
Beiträge: 14
Registriert: 23.12.2020 14:54:15

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von mellinger » 24.12.2020 17:28:53

Da müsste eine Zeile

Code: Alles auswählen

192.168.0.0/16
vorkommen, sonst gibt es keinen Zugriff.
In beiden Versionen ist die Zeile nicht vorhanden.

Edit: Ich sehe jetzt, dass in der zweiten Version hinten folgendes steht:

Code: Alles auswählen

192.168.178,42 # ...
Das ist fast richtig, nur das Komma vor der 42 ist falsch. Da muss ein Punkt hin.
Die 192.168.0.0/16-Variante ist besser, weil sie auch noch funktioniert, wenn der Client eine andere IP-Adresse bekommt.

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 24.12.2020 18:11:26

Hallo mellinger, vielen vielen Dank.

korrigierte /etc/sane.d/saned.conf

Code: Alles auswählen

cat /etc/sane.d/saned.conf    
# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
# data_portrange = 10000 - 10100


## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:db8:185e::42:12]
#[2001:db8:185e::42:12]/64

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).
192.168.178.42  # client der auf Scanserver zugreifen darf 
192.168.0.0/16  # mellinger Empfehlung
Der Scanner kann am Server (LXQt Desktop) mit xsane vom User genutzt werden.

Das Scanner wird vom Client nicht gefunden.

mellinger
Beiträge: 14
Registriert: 23.12.2020 14:54:15

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von mellinger » 24.12.2020 22:36:28

Hast Du den saned neu gestartet, nachdem Du die Datei verändert hast?

Code: Alles auswählen

sudo systemctl restart saned
Hat eventuell das Serversystem mit Debian 10 eine andere IP-Adresse als mit Debian 9? Falls ja, muss die zweite Adresse auf dem Clientsystem in die /etc/sane.d/net.conf eingetragen werden.

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 25.12.2020 10:11:42

Hall mellinger,

Antwort Frage1: neu gebootet habe ich.

Antwort Frage2: Der Debian 10 Server hat die gleiche IP-Adresse wieder Debian 9 Server.

Der 1.-Weihachtsfesttest auf dem Debian 10 Server

Code: Alles auswählen

scanimage -L
device `snapscan:/dev/sg3' is a AGFA SNAPSCAN 310 flatbed scanner

systemctl status saned.service
● saned.service - LSB: SANE network scanner server
   Loaded: loaded (/etc/init.d/saned; generated)
   Active: failed (Result: exit-code) since Fri 2020-12-25 10:01:40 CET; 7min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 510 ExecStart=/etc/init.d/saned start (code=exited, status=1/FAILURE)

Dez 25 10:01:40 p5 saned[549]: saned (AF-indep+IPv6) from sane-backends 1.0.27 starting up
Dez 25 10:01:40 p5 saned[549]: do_bindings: [1] bind failed: Address already in use
Dez 25 10:01:40 p5 saned[549]: do_bindings: [0] bind failed: Address already in use
Dez 25 10:01:40 p5 saned[549]: do_bindings: couldn't bind an address. Exiting.
Dez 25 10:01:40 p5 saned[549]: FATAL ERROR; bailing out, waiting for children...
Dez 25 10:01:40 p5 saned[549]: bail_out: all children exited
Dez 25 10:01:40 p5 saned[510]: Starting SANE network scanner server: saned
Dez 25 10:01:40 p5 systemd[1]: saned.service: Control process exited, code=exited, status=1/FAILURE
Dez 25 10:01:40 p5 systemd[1]: saned.service: Failed with result 'exit-code'.
Dez 25 10:01:40 p5 systemd[1]: Failed to start LSB: SANE network scanner server.

systemctl restart saned.service
Job for saned.service failed because the control process exited with error code.
See "systemctl status saned.service" and "journalctl -xe" for details.
journalctl -xe

Code: Alles auswählen

root@p5:~# journalctl -xe
Dez 25 10:17:05 p5 systemd[1]: saned.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- An ExecStart= process belonging to unit saned.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
Dez 25 10:17:05 p5 systemd[1]: saned.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit saned.service has entered the 'failed' state with result 'exit-code'.
Dez 25 10:17:05 p5 systemd[1]: Failed to start LSB: SANE network scanner server.
-- Subject: A start job for unit saned.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A start job for unit saned.service has finished with a failure.
-- 
-- The job identifier is 1297 and the job result is failed.
Dez 25 10:17:42 p5 wpa_supplicant[469]: wlan0: WPA: Group rekeying completed with 44:4e:6d:59:dd:6b [GT
lines 2552-2574/2574 (END)
Aus Scanner /dev/sg2 ist /dev/sg3 geworden.
Ist jetzt ein gutes Zeichen, beim funktionierenden Debian 9 Stretch System ist der Scanner auch /dev/sg3 ?

Code: Alles auswählen

getfacl /dev/sg2
getfacl: /dev/sg2: Datei oder Verzeichnis nicht gefunden

root@p5:~# getfacl /dev/sg3
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: dev/sg3
# owner: root
# group: root
user::rw-
user:sddm:rw-
group::---
group:scanner:rw-
mask::rw-
other::---

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 25.12.2020 10:33:25

Problem: Der saned.service läuft nicht.

Versuch der Problembehebung viewtopic.php?f=30&t=176958&start=150#p1259242

Code: Alles auswählen

root@p5:~# rm /lib/systemd/system/saned.service
rm: das Entfernen von '/lib/systemd/system/saned.service' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
root@p5:~# systemctl stop saned.socket
root@p5:~# systemctl enable saned
saned.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable saned
root@p5:~# systemctl start saned
root@p5:~# systemctl status saned
● saned.service - LSB: SANE network scanner server
   Loaded: loaded (/etc/init.d/saned; generated)
   Active: active (running) since Fri 2020-12-25 10:36:01 CET; 10s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 963 ExecStart=/etc/init.d/saned start (code=exited, status=0/SUCCESS)
    Tasks: 2 (limit: 4678)
   Memory: 1.4M
   CGroup: /system.slice/saned.service
           ├─971 /usr/sbin/saned -a saned
           └─972 /usr/sbin/saned -a saned

Dez 25 10:36:01 p5 systemd[1]: Starting LSB: SANE network scanner server...
Dez 25 10:36:01 p5 saned[970]: saned (AF-indep+IPv6) from sane-backends 1.0.27 starting up
Dez 25 10:36:01 p5 saned[970]: do_bindings: [0] bind failed: Address already in use
Dez 25 10:36:01 p5 saned[971]: Now daemonized
Dez 25 10:36:01 p5 saned[963]: Starting SANE network scanner server: saned.
Dez 25 10:36:01 p5 systemd[1]: Started LSB: SANE network scanner server.

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 25.12.2020 10:41:14

Super, Scanner wird vom Client gefunden

Auf dem Client:

Code: Alles auswählen

 sudo scanimage -L
[sudo] Passwort für axel: 
device `net:192.168.178.21:snapscan:/dev/sg3' is a AGFA SNAPSCAN 310 flatbed scanner
Der Scanner kann im Netzwerk genutzt werden.

Nur eben wie lange?
Wie festige ich diesen Zustand?
Nach welche Kriterien wird /dev/sgx vergeben?
Muss der Scanner immer /dev/sg3 sein?

Welche Erkenntnisse sollte ich mir für evtl. später merken damit ich die Installation reproduzieren kann?

Wo lag mein Fehler?

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 25.12.2020 10:53:39

nach einem Reboot No. 1

Auf dem Client:

Code: Alles auswählen

 sudo scanimage -L
device `net:192.168.178.21:snapscan:/dev/sg2' is a AGFA SNAPSCAN 310 flatbed scanner
Der Scanner wird im Netzwerk gefunden, ist jetzt /dev/sg2 geworden.
Warum das?

Auf dem Debian 10 Server

Code: Alles auswählen

scanimage -L
device `snapscan:/dev/sg2' is a AGFA SNAPSCAN 310 flatbed scanner

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 25.12.2020 11:02:06

nach einem Reboot No. 2

alles wie bei Reboot No. 1.

nach einem Reboot No. 3 - ein vollständiger Neustart, poweroff

Auf dem Client:

Code: Alles auswählen

sudo scanimage -L
device `net:192.168.178.21:snapscan:/dev/sg3' is a AGFA SNAPSCAN 310 flatbed scanner
Jetzt wieder /dev/sg3
Zuletzt geändert von AxelMD am 25.12.2020 11:26:54, insgesamt 5-mal geändert.

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [] Debian 10 - Netzwerkscanner wird nicht gefunden

Beitrag von AxelMD » 25.12.2020 11:05:28

Reproduktion

Wie festige ich diesen Zustand?
Nach welche Kriterien wird /dev/sgx vergeben?
Muss der Scanner immer /dev/sg3 sein?

Welche Erkenntnisse sollte ich mir für evtl. später merken damit ich die Installation reproduzieren kann?

Wo lag mein Fehler?

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [Reproduktion] Debian 10 - Scanner wird über Netzwerk nicht gefunden

Beitrag von AxelMD » 25.12.2020 11:43:12

Informationen Debian 10 Server:

Code: Alles auswählen

apt show libsane
Package: libsane
Version: 1.0.27-3.2
Priority: optional
Section: libs
Source: sane-backends
Maintainer: Jörg Frings-Fürst <debian@jff.email>
Installed-Size: 11,0 MB
Provides: libsane1 (= 1.0.27-3.2)
Depends: acl, adduser, libsane-common (= 1.0.27-3.2), udev, libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.15), libgphoto2-6 (>= 2.5.10), libgphoto2-port12 (>= 2.5.10), libieee1284-3, libjpeg62-turbo (>= 1.3.1), libsnmp30 (>= 5.7.3+dfsg), libssl1.1 (>= 1.1.0), libtiff5 (>= 4.0.3), libusb-1.0-0 (>= 2:1.0.8)
Recommends: sane-utils (>= 1.0.27-3.2)
Suggests: avahi-daemon, hplip
Breaks: libsane1 (<< 1.0.27-3.1~)
Replaces: libsane1 (<< 1.0.27-3.1~)
Homepage: http://www.sane-project.org
Tag: role::shared-lib
Download-Size: 2.182 kB
APT-Manual-Installed: no
APT-Sources: http://deb.debian.org/debian buster/main amd64 Packages
Description: API-Bibliothek für Scanner
 SANE (Scanner Access Now Easy) ist eine API (Application Programming
 Interface), die einen standardisierten Zugriff auf alle Arten von
 Rasterbild-Geräten wie Flachbettscanner, Handscanner, Video- und
 Fotokameras, Frame-Grabber usw. erlaubt. Der SANE-Standard ist frei, seine
 Diskussion und Weiterentwicklung steht jedem offen. Der Quellcode ist für
 die Unterstützung verschiedener Betriebssysteme, einschließlich GNU/Linux,
 OS/2, Win32 und vieler Unixe geschrieben und ist unter der GNU General
 Public License verfügbar (wobei kommerzielle Anwendungen und Backends
 ebenso willkommen sind).
 .
 Grafische Frontends für Sane stehen in den Paketen Sane und Xsane zur
 Verfügung. Das Kommandozeilen-Frontend scanimage, saned und
 sane-find-scanner befinden sich im sane-utils-Paket.

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [Reproduktion] Debian 10 - Scanner wird über Netzwerk nicht gefunden

Beitrag von AxelMD » 25.12.2020 11:45:54

Informationen Ubuntu 20.04.1 Client:

ppa von Rolf Bensch genutzt:

https://launchpad.net/~rolfbensch/+arch ... u/sane-git

https://launchpad.net/~sane-project/+ar ... u/sane-git

libsane

Code: Alles auswählen

apt show libsane -a 
Package: libsane
Version: 1.0.29-0ubuntu5.2
Priority: optional
Section: libs
Source: sane-backends
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Jörg Frings-Fürst <debian@jff.email>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12,9 MB
Provides: libsane1 (= 1.0.29-0ubuntu5.2)
Depends: acl, adduser, libsane-common (= 1.0.29-0ubuntu5.2), udev, libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.29), libcurl3-gnutls (>= 7.16.2), libgcc-s1 (>= 3.0), libgphoto2-6 (>= 2.5.10), libgphoto2-port12 (>= 2.5.10), libieee1284-3, libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libsnmp35 (>= 5.8+dfsg), libstdc++6 (>= 5.2), libtiff5 (>= 4.0.3), libusb-1.0-0 (>= 2:1.0.22), libxml2 (>= 2.7.4)
Recommends: sane-utils (>= 1.0.29-0ubuntu5.2)
Suggests: avahi-daemon, hplip
Breaks: libsane1 (<< 1.0.27-3.1~)
Replaces: libsane1 (<< 1.0.27-3.1~)
Homepage: http://www.sane-project.org
Task: print-server, ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Download-Size: 2.405 kB
APT-Sources: http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
Description: API library for scanners
 SANE stands for "Scanner Access Now Easy" and is an application
 programming interface (API) that provides standardized access to any
 raster image scanner hardware (flatbed scanner, hand-held scanner,
 video- and still-cameras, frame-grabbers, etc.). The SANE standard is
 free and its discussion and development are open to everybody. The
 current source code is written to support several operating systems,
 including GNU/Linux, OS/2, Win32 and various Unices and is available
 under the GNU General Public License (commercial applications and
 backends are welcome, too, however).
 .
 Graphical frontends for sane are available in the packages sane and
 xsane. Command line frontend scanimage, saned and sane-find-scanner are
 available in the sane-utils package.

Package: libsane
Version: 1.0.29-0ubuntu5.1
Priority: optional
Section: libs
Source: sane-backends
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Jörg Frings-Fürst <debian@jff.email>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12,9 MB
Provides: libsane1 (= 1.0.29-0ubuntu5.1)
Depends: acl, adduser, libsane-common (= 1.0.29-0ubuntu5.1), udev, libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.29), libcurl3-gnutls (>= 7.16.2), libgcc-s1 (>= 3.0), libgphoto2-6 (>= 2.5.10), libgphoto2-port12 (>= 2.5.10), libieee1284-3, libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libsnmp35 (>= 5.8+dfsg), libstdc++6 (>= 5.2), libtiff5 (>= 4.0.3), libusb-1.0-0 (>= 2:1.0.22), libxml2 (>= 2.7.4)
Recommends: sane-utils (>= 1.0.29-0ubuntu5.1)
Suggests: avahi-daemon, hplip
Breaks: libsane1 (<< 1.0.27-3.1~)
Replaces: libsane1 (<< 1.0.27-3.1~)
Homepage: http://www.sane-project.org
Task: print-server, ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Download-Size: 2.405 kB
APT-Sources: http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
Description: API library for scanners
 SANE stands for "Scanner Access Now Easy" and is an application
 programming interface (API) that provides standardized access to any
 raster image scanner hardware (flatbed scanner, hand-held scanner,
 video- and still-cameras, frame-grabbers, etc.). The SANE standard is
 free and its discussion and development are open to everybody. The
 current source code is written to support several operating systems,
 including GNU/Linux, OS/2, Win32 and various Unices and is available
 under the GNU General Public License (commercial applications and
 backends are welcome, too, however).
 .
 Graphical frontends for sane are available in the packages sane and
 xsane. Command line frontend scanimage, saned and sane-find-scanner are
 available in the sane-utils package.

Package: libsane
Version: 1.0.29-0ubuntu5
Priority: optional
Section: libs
Source: sane-backends
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Jörg Frings-Fürst <debian@jff.email>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12,9 MB
Provides: libsane1 (= 1.0.29-0ubuntu5)
Depends: acl, adduser, libsane-common (= 1.0.29-0ubuntu5), udev, libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.29), libcurl3-gnutls (>= 7.16.2), libgcc-s1 (>= 3.0), libgphoto2-6 (>= 2.5.10), libgphoto2-port12 (>= 2.5.10), libieee1284-3, libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libsnmp35 (>= 5.8+dfsg), libstdc++6 (>= 5.2), libtiff5 (>= 4.0.3), libusb-1.0-0 (>= 2:1.0.22), libxml2 (>= 2.7.4)
Recommends: sane-utils (>= 1.0.29-0ubuntu5)
Suggests: avahi-daemon, hplip
Breaks: libsane1 (<< 1.0.27-3.1~)
Replaces: libsane1 (<< 1.0.27-3.1~)
Homepage: http://www.sane-project.org
Task: print-server, ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Download-Size: 2.404 kB
APT-Sources: http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
Description: API library for scanners
 SANE stands for "Scanner Access Now Easy" and is an application
 programming interface (API) that provides standardized access to any
 raster image scanner hardware (flatbed scanner, hand-held scanner,
 video- and still-cameras, frame-grabbers, etc.). The SANE standard is
 free and its discussion and development are open to everybody. The
 current source code is written to support several operating systems,
 including GNU/Linux, OS/2, Win32 and various Unices and is available
 under the GNU General Public License (commercial applications and
 backends are welcome, too, however).
 .
 Graphical frontends for sane are available in the packages sane and
 xsane. Command line frontend scanimage, saned and sane-find-scanner are
 available in the sane-utils package.
libsane1

Code: Alles auswählen

 apt show libsane1 -a
Package: libsane1
Version: 1.0.31+git20201222-focal0
Status: install ok installed
Priority: optional
Section: libs
Source: sane-backends
Maintainer: Rolf Bensch <rolf@bensch-online.de>
Original-Maintainer: Jörg Frings-Fürst <debian@jff.email>
Installed-Size: 12,9 MB
Provides: libsane (= 1.0.31+git20201222-focal0)
Depends: acl, adduser, libsane-common (= 1.0.31+git20201222-focal0), snmp, udev, libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.29), libcairo2 (>= 1.2.4), libcurl3-gnutls (>= 7.16.2), libgcc-s1 (>= 3.0), libglib2.0-0 (>= 2.12.0), libgphoto2-6 (>= 2.5.10), libgphoto2-port12 (>= 2.5.10), libieee1284-3, libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libpoppler-glib8 (>= 0.18.0), libsnmp35 (>= 5.8+dfsg), libstdc++6 (>= 5.2), libtiff5 (>= 4.0.3), libusb-1.0-0 (>= 2:1.0.22), libxml2 (>= 2.7.4)
Recommends: sane-utils (>= 1.0.31+git20201222-focal0), ipp-usb
Suggests: avahi-daemon, hplip
Breaks: libsane (<< 1.0.29-1~)
Replaces: libsane (<< 1.0.29-1~)
Homepage: http://www.sane-project.org
Download-Size: unbekannt
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: API library for scanners
 SANE stands for "Scanner Access Now Easy" and is an application
 programming interface (API) that provides standardized access to any
 raster image scanner hardware (flatbed scanner, hand-held scanner,
 video- and still-cameras, frame-grabbers, etc.). The SANE standard is
 free and its discussion and development are open to everybody. The
 current source code is written to support several operating systems,
 including GNU/Linux, OS/2, Win32 and various Unices and is available
 under the GNU General Public License (commercial applications and
 backends are welcome, too, however).
 .
 Graphical frontends for sane are available in the packages sane and
 xsane. Command line frontend scanimage, saned and sane-find-scanner are
 available in the sane-utils package.

Package: libsane1
Version: 1.0.29-0ubuntu5.2
Priority: optional
Section: universe/libs
Source: sane-backends
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Jörg Frings-Fürst <debian@jff.email>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 93,2 kB
Depends: libsane (>= 1.0.29-0ubuntu5.2)
Homepage: http://www.sane-project.org
Download-Size: 14,2 kB
APT-Sources: http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
Description: API library for scanners [transitional package]
 SANE stands for "Scanner Access Now Easy" and is an application
 programming interface (API) that provides standardized access to any
 raster image scanner hardware (flatbed scanner, hand-held scanner,
 video- and still-cameras, frame-grabbers, etc.). The SANE standard is
 free and its discussion and development are open to everybody. The
 current source code is written to support several operating systems,
 including GNU/Linux, OS/2, Win32 and various Unices and is available
 under the GNU General Public License (commercial applications and
 backends are welcome, too, however).
 .
 This package is here to ensure smooth upgrades. It can be removed when
 you see fit.

Package: libsane1
Version: 1.0.29-0ubuntu5.1
Priority: optional
Section: universe/libs
Source: sane-backends
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Jörg Frings-Fürst <debian@jff.email>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 93,2 kB
Depends: libsane (>= 1.0.29-0ubuntu5.1)
Homepage: http://www.sane-project.org
Download-Size: 14,2 kB
APT-Sources: http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages
Description: API library for scanners [transitional package]
 SANE stands for "Scanner Access Now Easy" and is an application
 programming interface (API) that provides standardized access to any
 raster image scanner hardware (flatbed scanner, hand-held scanner,
 video- and still-cameras, frame-grabbers, etc.). The SANE standard is
 free and its discussion and development are open to everybody. The
 current source code is written to support several operating systems,
 including GNU/Linux, OS/2, Win32 and various Unices and is available
 under the GNU General Public License (commercial applications and
 backends are welcome, too, however).
 .
 This package is here to ensure smooth upgrades. It can be removed when
 you see fit.

Package: libsane1
Version: 1.0.29-0ubuntu5
Priority: optional
Section: universe/libs
Source: sane-backends
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Jörg Frings-Fürst <debian@jff.email>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 93,2 kB
Depends: libsane (>= 1.0.29-0ubuntu5)
Homepage: http://www.sane-project.org
Download-Size: 14,2 kB
APT-Sources: http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
Description: API library for scanners [transitional package]
 SANE stands for "Scanner Access Now Easy" and is an application
 programming interface (API) that provides standardized access to any
 raster image scanner hardware (flatbed scanner, hand-held scanner,
 video- and still-cameras, frame-grabbers, etc.). The SANE standard is
 free and its discussion and development are open to everybody. The
 current source code is written to support several operating systems,
 including GNU/Linux, OS/2, Win32 and various Unices and is available
 under the GNU General Public License (commercial applications and
 backends are welcome, too, however).
 .
 This package is here to ensure smooth upgrades. It can be removed when
 you see fit.

Version: 1.0.31+git20201222-focal0
Status: install ok installed

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [Reproduktion] Debian 10 - Scanner wird über Netzwerk nicht gefunden

Beitrag von AxelMD » 25.12.2020 13:33:22

offene Fragen
Wie festige ich diesen Zustand?
Nach welchen Kriterien wird /dev/sgx vergeben?

Welche Erkenntnisse sollte ich mir für evtl. später merken damit ich die Installation reproduzieren kann?

Wo lag mein Fehler?

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [Reproduktion] Debian 10 - Scanner wird über Netzwerk nicht gefunden

Beitrag von AxelMD » 25.12.2020 23:34:20

Besucher 11000 bin ich :-)

Kobold76
Beiträge: 2
Registriert: 11.12.2020 10:19:31

Re: [Reproduktion] Debian 10 - Scanner wird über Netzwerk nicht gefunden

Beitrag von Kobold76 » 11.03.2021 10:15:25

Hi Axel,

sorry, dass ich seit meinem Beitrag im Dezember nicht mehr geantwortet hatte. Ich hatte viel zu tun.
AxelMD hat geschrieben: ↑ zum Beitrag ↑
25.12.2020 13:33:22
Wie festige ich diesen Zustand?
Udev-Regeln legst du in /etc/udev/rules.d ab. Wenn der Server neu gestartet wird oder ein bestimmtes Ereignis (trigger) ausgelöst wird, werden diese Regeln ausgelesen und überdecken die Regeln in /lib/udev/rules.d.

Das setfacl mag ich in den Udev-Regeln allerdings überhaupt nicht. Das ist dreckig. Udev bietet selbst die Funktionalität zum Ändern von Gruppen und Usern. Außerdem sind ACLs hier gar nicht notwendig, da du ja die Gruppe root nur in saned umändern musst. ACLs nimmt man, wenn man mehrere verschiedene User+Gruppen mit verschiedenen Rechten auf Verzeichnisse oder Dateien loslassen will.
AxelMD hat geschrieben: ↑ zum Beitrag ↑
25.12.2020 13:33:22
Nach welchen Kriterien wird /dev/sgx vergeben?
Du kannst Dir die SCSI-Devices anzeigen lassen mit:

Code: Alles auswählen

lsblk -S
cat /proc/scsi/scsi
lsscsi -v
Jedes angeschlossene SCSI-Gerät ist dann eindeutig identifizierbar über die Device-ID, die aufgebaut ist:
Busnummer,SCSI-ID,LUN
Entsprechend wird dann die Nummer vergeben:
https://tldp.org/HOWTO/SCSI-2.4-HOWTO/dnames.html
Wenn du also den Scanner nicht an einen anderen Anschluss anstöpselst, sollte der immer dieselbe ID behalten.

Du solltest aber die Udev-Rule nicht auf sg3 anwenden sondern über die Udev-IDs zuweisen. Falls sich die ID doch irgendwie man ändern sollte, dann würde die Udev-Rule nicht mehr greifen. Gehst du über die Udev-IDs, dann wird das Gerät unabhängig von der SCSI-LUN erkannt.
AxelMD hat geschrieben: ↑ zum Beitrag ↑
25.12.2020 13:33:22
Welche Erkenntnisse sollte ich mir für evtl. später merken damit ich die Installation reproduzieren kann? Wo lag mein Fehler?
Du hast die Fehlermeldungen nicht verstanden, nicht gelesen oder ignoriert.

Arbeite noch mal meinen Beitrag durch:
viewtopic.php?f=30&t=176958&start=90&p125394#p1257856
Dabei solltest du Folgendes bei Dir ändern/überarbeiten:
  • Beim Devicepfad musst du statt des USB-Busses den Pfad zu Deinem Scanner angeben. Ob jetzt /dev/sg3 im Zusammenhang mit udevadm funktioniert, weiß ich nicht. Meine letzten nativen SCSI-Sachen (CD-Rom, Brenner, Scanner) hab ich vor >5 Jahren verkauft. Lies Dich erst mal in SCSI ein.
  • Als Gruppe nimmst du saned statt scanner, da saned ja auf das Device zugreifen muss.
  • Die Socket-Datei und die Systemd-Services in /etc hab ich selbst erstellt, da die mitgelieferten Dateien aus dem Paket nicht optimal sind. Socketaktivierung hat einfach den Sinn, dass der Daemon nur gestartet wird, wenn er benötigt wird und nicht permanent läuft.
Ich versuch mal, hier öfters reinzusehen. Wenn du Fragen hast, schreib mir 'ne PN, was du alles schon gemacht hast und an welchem Status du scheiterst.

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: Debian 11 - Scanner wird über Netzwerk ohen Probleme gefunden

Beitrag von AxelMD » 24.11.2021 21:18:59

Hallo Forum,

zur Information, bei Debian 11 gibt es keine Probleme.
Plug and Play sozusagen.

Der SCSI Scanner von ca. 1997, AGFA SNAPSCAN 310 flatbed scanner funktioniert einwandfrei.


MfG
AxelMD

AxelMD
Beiträge: 1350
Registriert: 15.03.2009 08:02:11

Re: [ok] Debian 11 - Scanner wird über Netzwerk ohne Probleme gefunden

Beitrag von AxelMD » 18.03.2024 18:57:30

Debian 11

Code: Alles auswählen

uname -r
5.14.0-0.bpo.2-amd64

scanimage -L
device `snapscan:/dev/sg2' is a AGFA SNAPSCAN 310 flatbed scanner
Debian 12

- Scanner wird leider nicht gefunden.
Hat sich etwas am Kernel in Bezug auf scsi geändert?

Antworten