viewtopic.php?f=30&t=179650
Hallo Forum,
nach folgender Anleitung habe ich versucht einen Netzerkscanner einzurichten:
https://wiki.ubuntuusers.de/SANE-Scanse ... _Netzwerk/
Im Debianwiki habe ich dazu nichts gefunden.
Server und Client lassen sich gegenseitig anpingen, alle Pakete werden übertragen.
Test Server
Code: Alles auswählen
sudo systemctl status saned.socket
● saned.socket - saned incoming socket
Loaded: loaded (/lib/systemd/system/saned.socket; enabled; vendor preset: enabled)
Active: active (listening) since Sun 2020-04-05 07:52:17 CEST; 6min ago
Listen: [::]:6566 (Stream)
Accepted: 0; Connected: 0;
Tasks: 0 (limit: 4690)
Memory: 28.0K
CGroup: /system.slice/saned.socket
Apr 05 07:52:17 p5915 systemd[1]: Listening on saned incoming socket.
Code: Alles auswählen
sudo systemctl status saned@192.168.178.163.service
● saned@192.168.178.163.service - Scanner Service
Loaded: loaded (/lib/systemd/system/saned@.service; indirect; vendor preset: enabled)
Active: inactive (dead)
Code: Alles auswählen
sudo scanimage -L
device `snapscan:/dev/sg3' is a AGFA SNAPSCAN 310 flatbed scanner
/etc/sane.d/saned.conf
Auszug:
Code: Alles auswählen
#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:db8:185e::42:12]
#[2001:db8:185e::42:12]/64
# Neueintrag Client IP
192.168.178.42
Code: Alles auswählen
ls -l /dev/sg*
crw-rw----+ 1 root disk 21, 0 Dec 20 23:46 /dev/sg0
crw-rw----+ 1 root cdrom 21, 1 Dec 20 23:46 /dev/sg1
crw-rw----+ 1 saned saned 21, 2 Dec 20 23:46 /dev/sg2
oder auch
scanimage -L
device `net:192.168.178.21:snapscan:/dev/sg3' is a AGFA SNAPSCAN 310 flatbed scanner
ls -l /dev/sg*
crw-rw---- 1 root disk 21, 0 Dec 21 00:39 /dev/sg0
crw-rw---- 1 root cdrom 21, 1 Dec 21 00:39 /dev/sg1
crw-rw----+ 1 root root 21, 3 Dec 21 00:39 /dev/sg3
chown saned:saned /dev/sg3
chown saned:saned /dev/sg3
root@p5915:~# ls -l /dev/sg*
crw-rw---- 1 root disk 21, 0 Dec 21 00:39 /dev/sg0
crw-rw---- 1 root cdrom 21, 1 Dec 21 00:39 /dev/sg1
crw-rw----+ 1 saned saned 21, 3 Dec 21 00:39 /dev/sg3
###############
udev-rules
nano /lib/udev/rules.d/60-libsane.rules
ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
###############
Code: Alles auswählen
mellinger
sudo rm /lib/systemd/system/saned.service
sudo systemctl stop saned.socket
sudo systemctl enable saned
sudo systemctl start saned
sudo systemctl status saned
Code: Alles auswählen
nano /lib/udev/rules.d/60-libsane.rules
nano /etc/sane.d/saned.conf
scanimage -L
rm /lib/systemd/system/saned.service
systemctl stop saned.socket
systemctl enable saned
systemctl start saned
systemctl status saned