Tutorial: How to Install SANE Network Scanning on Arch Linux

SANE is an open source scanner driver that provides access to scanners via network. In this tutorial, we’ll go through the steps to install SANE Network Scanning on Arch Linux.

Prerequisites

Before proceeding with the installation, make sure that you have the following:

Step 1: Install Required Dependencies

SANE Network Scanning requires several dependencies to work properly. Using pacman, we can install them easily:

sudo pacman -S sane sane-utils

This will install the SANE scanner driver and the SANE command-line utilities.

Step 2: Configure SANE

Before we can use SANE to scan images, we need to configure it properly. Open the /etc/sane.d/net.conf file in your favorite text editor:

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

Add the IP address of the scanner to the end of the file, in the following format:

# This is an example configuration file for the SANE net backend.
# See sane-net(5), sane-net-dll(5) and sane-net-remote(5) for details.


# The hostname or IP address of the remote host.
192.168.1.2

Replace 192.168.1.2 with the IP address of your scanner.

Save and close the file.

Step 3: Start SANE

To start SANE, run the following command:

sudo systemctl start saned.socket

This will start the SANE daemon and enable network scanning.

Step 4: Scan Images

To scan an image from the network scanner using the SANE command line utility, run the following command:

scanimage -d net:IP_ADDRESS_OF_SCANNER:DEVICE -T

Replace IP_ADDRESS_OF_SCANNER with the IP address of your scanner and DEVICE with the name of your scanner device.

This will scan a preview of the image and display it in the terminal. You can also scan the full image by running:

scanimage -d net:IP_ADDRESS_OF_SCANNER:DEVICE > output.pnm

Replace output.pnm with the file name and format you want to save the image in.

Conclusion

Congratulations! You have successfully installed and configured SANE Network Scanning on Arch Linux. Now you can scan images from your network scanner using the SANE command line utility.

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!