SANE (Scanner Access Now Easy) is an open-source software suite that provides access to various scanners and scanners over a network. In this tutorial, we will walk you through the steps to install SANE Network Scanning on NetBSD.
Before proceeding with the installation of SANE, it is important to update the existing packages on your NetBSD system. To do this, execute the following command:
sudo pkgin update
Once the packages have been updated, you can proceed with the installation of SANE by executing the following command:
sudo pkgin install sane-backends
This command will download and install the SANE software suite on your NetBSD system.
After successful installation, you will need to configure SANE to enable network scanning. To do so, create a new file with the following command:
sudo nano /usr/pkg/etc/sane.d/net.conf
Then, add the IP address of your scanner(s) to the file using the following format:
192.168.1.100
192.168.1.101
You can also specify the port number on which your scanner(s) listen to by adding port
before the IP address in the file as shown below:
port 6566 192.168.1.100
port 6566 192.168.1.101
Save and close the file.
To apply the changes made to the configuration file, you will need to restart SANE by executing the following command:
sudo /usr/pkg/etc/rc.d/saned restart
Finally, you can test if the network scanning is working by using the scanimage
command. For instance, to scan an A4 document in 200 dpi resolution from a scanner with IP address 192.168.1.100
, use the following command:
scanimage -d net:192.168.1.100 -x 210 -y 297 --resolution 200 --mode Gray --format=tiff > output_file_name.tiff
This command will scan an A4 document in grayscale mode, save it in TIFF format, and store it in the file named output_file_name.tiff
.
In this tutorial, we have shown you how to install and configure SANE Network Scanning on NetBSD. By following the above steps, you should now be able to scan documents from your network-connected scanner using the SANE software suite on your NetBSD system.
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!