How to Install SANE Network Scanning on OpenSUSE Latest

SANE is a powerful open-source scanning application that allows users to scan documents, images, and other media using scanners and similar devices. In this tutorial, we will show you how to install SANE Network Scanning on OpenSUSE Latest.

Prerequisites

Before we begin, ensure that you have the following:

Step 1 - Update the System

Before installing SANE Network Scanning, first, update the installed packages on your system using the following command:

sudo zypper update

This will update all the installed packages and ensure that you have the latest versions of them.

Step 2 – Install SANE

Once the update process is complete, we can proceed with the installation of SANE Network Scanning. Use the following command to install the sane package:

sudo zypper install sane

This will install the SANE package and all its dependencies on your system.

Step 3 - Configure SANE

Now that we have installed SANE on our system, it's time to configure it to allow network scanning. First, create a backup of the current configuration file using the following command:

sudo cp /etc/sane.d/saned.conf /etc/sane.d/saned.conf.backup

Next, edit the /etc/sane.d/saned.conf configuration file using any text editor, as follows:

sudo nano /etc/sane.d/saned.conf

Then, find the "# The list of hosts that are allowed to access the Saned servers" section and add the IP address or network range of the clients that will access the scanner, as follows:

# The list of hosts that are allowed to access the Saned servers.
# If you come from a TCP/IP network different from the one this machine
# is on, you might want to listen on the network interface that has
# the gateway to the other network instead of on the one connected
# to that other network.
#
# Example: net abcd.efg.hijk mask 255.255.252.0
#           would allow access from the whole network 10.0.0.0/22
#             (i.e. 10.0.0.1 to 10.0.3.254 inclusive)
#
# Only IPv4 addresses are supported for now.
#
# If you want to allow access from all hosts, simply delete the
# previous line.
#
# NOTE: A list of hosts that are allowed to access the server is NOT a
#       substitute for a restrictive firewall! See the documentation
#       for help.
#localhost

Save and close the file once you have made the necessary changes.

Step 4 - Enable and Start the SANE Daemon

Now that we have installed and configured SANE, we need to enable and start the SANE daemon. Use the following command to enable the SANE daemon:

sudo systemctl enable saned.service

Next, use the following command to start the SANE daemon:

sudo systemctl start saned.service

Finally, ensure that the SANE daemon is running without any errors by using the following command:

sudo systemctl status saned.service

If the daemon is running without any errors, you should see a message similar to the one below:

● saned.service - SANE network scanner daemon
     Loaded: loaded (/usr/lib/systemd/system/saned.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2021-11-16 16:44:26 EAT; 2s ago
   Main PID: 19727 (saned)
      Tasks: 1 (limit: 17717)
     Memory: 452.0K
     CGroup: /system.slice/saned.service
             └─19727 /usr/sbin/saned -d

Step 5 - Test the SANE Scan Service

Finally, test the SANE scan service to ensure that it is running correctly. First, ensure that the SANE package is installed on the client machine(s) by running the following command on the client machine(s):

sudo zypper install sane

Next, test the connection to the scanner from the client machine(s) using the following command:

sudo scanimage -L

If the scanner is detected and configured correctly, you should see a message similar to the one below:

device `net:192.168.43.24:pixma` is a CANON Canon PIXMA TS5100 Series multi-function peripheral

Congratulations! You have successfully installed SANE Network Scanning on OpenSUSE Latest and configured it to allow network scanning.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!