How to Install SANE Network Scanning on Manjaro

SANE (Scanner Access Now Easy) is a library that allows you to access various types of scanners and imaging devices from within Linux, BSD, and other Unix-like operating systems. In this tutorial, we will go over the steps required to install SANE Network Scanning on Manjaro.

Prerequisites

Before we begin, you will need to have the following:

Installing SANE Network Scanning

  1. Open a terminal window by pressing Ctrl+Alt+T or by searching for "terminal" in the applications menu.

  2. Update your system's package list and upgrade any outdated packages:

    sudo pacman -Syu
    
  3. Install SANE and its dependencies:

    sudo pacman -S sane
    
  4. Install the SANE network backend:

    sudo pacman -S sane-net
    
  5. Edit the /etc/sane.d/net.conf file using a text editor of your choice (we will use nano in this example):

    sudo nano /etc/sane.d/net.conf
    
  6. Uncomment the following line by removing the # symbol:

    # net localhost
    

    should become:

    net localhost
    

    This enables scanning on the local machine.

  7. Save and exit the editor by pressing Ctrl+X, Y, and then Enter.

  8. Restart the SANE daemon:

    sudo systemctl restart saned.socket
    
  9. Ensure that SANE is running and listening for connections:

    sudo systemctl status saned.socket
    

    Output will show if SANE is running or not.

Testing SANE Network Scanning

  1. Make sure that the scanner is turned on and connected to the network.

  2. Open a terminal window and type the following command:

    scanimage -L
    

    This command should list all the available scanners on the network.

  3. If the scanner is listed, run a test scan:

    scanimage > test_scan.pnm
    
  4. Check the current directory for the newly created test_scan.pnm file. If it is there, the installation of SANE Network Scanning was successful.

Congratulations! You have now installed SANE Network Scanning on Manjaro, and you can now use your scanner from any device on your network.

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!