SDB:Configuring Scanners
Configuring Scanners on openSUSE
This article explains how to configure and use scanners on openSUSE systems.
Scanning on openSUSE is based on SANE (Scanner Access Now Easy). Most modern scanners work automatically with little or no manual configuration.
Quick Start (Most Modern Scanners)
Most modern network scanners and multifunction printers support:
- AirScan (eSCL)
- Mopria
- Driverless IPP scanning
On openSUSE, this is handled by the sane-airscan package.
Install:
sudo zypper install sane-airscan
Then verify detection:
scanimage -L
If your scanner appears in the list, it is ready to use. If not, the openSUSE firewall (firewalld) may be inhibiting discovery.
Network Discovery Requirements
AirScan discovery relies on:
- mDNS (Avahi)
- Proper firewall configuration
Ensure Avahi is running:
sudo systemctl enable --now avahi-daemon
If the scanner is not discovered, check firewall settings. openSUSE uses Firewalld by default.
Your network interface should be in the home, work, or trusted zone (not public), or mDNS must be explicitly allowed.
To check your active zone:
firewall-cmd --get-active-zones
To allow mDNS in the current zone:
sudo firewall-cmd --add-service=mdns --permanent
sudo firewall-cmd --reload
After adjusting firewall or Avahi settings, retry:
scanimage -L
USB Scanners
Most USB scanners are detected automatically.
Install the required packages:
sudo zypper install sane-backends sane-backends-autoconfig
Connect the scanner and verify detection:
scanimage -L
If the scanner is listed, it is ready to use.
USB Troubleshooting
Check whether the device is detected at a low level:
sane-find-scanner
If the scanner works as root but not as a normal user, check group membership:
groups
Users typically must belong to the lp group:
sudo usermod -aG lp $USER
Log out and log back in after changing group membership.
Sharing a Locally Connected (USB) Scanner on a Network (saned)
On the Server (scanner attached machine)
Enable the SANE network service:
sudo systemctl enable --now saned.socket
Edit:
/etc/sane.d/saned.conf
Add the IP addresses or networks allowed to connect.
On the Client
Edit:
/etc/sane.d/net.conf
Add the server’s IP address.
Ensure the net backend is enabled in:
/etc/sane.d/dll.conf
After configuration, verify detection:
scanimage -L
NOTE: This method should only be used on trusted local networks.
Firewall Configuration
If network scanning does not work, check firewall settings.
openSUSE uses Firewalld by default.
You may need to:
- Allow the SANE service (for saned)
- Ensure the interface is in the correct zone
- Allow mDNS for automatic AirScan discovery
Example (trust local network):
sudo firewall-cmd --zone=trusted --add-source=192.168.1.0/24 --permanent
sudo firewall-cmd --reload
See also:
Graphical Frontends
Scanning applications include:
- Simple Scan (GNOME)
- Skanpage (KDE)
- XSane (classic GTK frontend)
Install example:
sudo zypper install simple-scan skanpage xsane
Command Line Scanning
List available scanners:
scanimage -L
Scan to a PNG file:
scanimage --format=png > scan.png
Debugging
Check kernel USB messages:
dmesg | grep -i usb
Enable SANE debug output:
export SANE_DEBUG_DLL=255
scanimage -L
Manufacturer Drivers
Some manufacturers (e.g. Brother, Epson, Canon) provide additional drivers.
After installing vendor drivers, ensure the backend is enabled in:
/etc/sane.d/dll.conf
Vendor drivers are generally not required for modern AirScan-compatible devices.