Having an ordinary user with or without permissions on the USB bus (libpam-systemd might not be installed) is of no consequence. Take note of the issue mentioned towards the end of this section if the server is using Debian 10 (buster). To run as the saned user either become root with su and doĪlso see how a USB scanner is set up for more information on the local configuration. scanimage -L should detect the scanner if there is a backend on the system for it and the saned user has permission to access the USB bus sane-find-scanner will indicate whether the saned user does have permission. Make sure the saned user can access the scanner locally on the server. It's intended use is for the server (which has a SANE-supported scanner) to be able to export that scanner to clients on the network via a single SANE-specific, manufacturer-agnostic protocol. Note that the net backend is not for accessing arbitrary scanners over a network.
It is essential to install libsane and, for testing the client's ability to see the networked scanner, it is recommended to install sane-utils. The server will now be sharing the USB connected scanner with other designated machines on the network.Ī first installation of libsane has the socket service disabled, so it would be necessary to enable and start it as described above.If necessary (look at systemctl status saned.socket) and enable the systemd socket service:Ĭreated symlink from /etc/systemd/system//saned.socket to /lib/systemd/system/saned.socket. For example, you could allow the local network using the following configuration, which will vary according to your network configuration: You should see this:Īdd the hostnames, IP addresses or IP subnets that are permitted to use local SANE devices on the server in /etc/sane.d/nf. No changes need be made to this file for the vast majority of users. This forms the basis for a scanner shared by the server to serve up an image of a document to an application on a client.Įssentially, saned on the server and the net backend on the client are used to convert a non-networked or network-incapable scanner into a networked one.Ĭheck that the contents of /etc/default/saned fit the system and that saned is in the scanner group.
The saned daemon is started when a request is received on the server from a client and is stopped when the request is fulfilled. On a machine with a scanner connected to a USB port (the server), SANE with systemd can be socket activated ( check that the service is enabled). These distributions have an init system (the first process started during booting of the computer and that governs its subsequent behaviour) based on systemd. This section is written principally in the context of a user with Debian 8 (jessie), Debian 9 (stretch), Debian 10 (buster) or Debian 11 (bullseye) installed. | device | | connections | | net.conf: server IP address | | multifunctional || nf: permitted || dll.conf: uncomment net | | stand-alone or | USB | | cable/wireless | | | Non-networked | | libsane + sane-utils | | libsane | Sharing a USB Connected Scanner: the Basics Otherwise, on USB, the device will have to be exported to a client via saned. Other vendors also provide a means to access a network capable scanner but there is generally a non-free aspect to what they offer, so configuration of their devices is not treated on this page.Ī USB connected device that understands and uses the IPP-over-USB protocol may be exported and seen as a network device. libsane interworks with the non-SANE, HP-provided hpaio backend. For example, the epson2, pixma, escl and airscan backends do.
Consult a backend's manual for information on whether the backend supports scanning over the network. Two backends new to to Debian 11 (bullseye), sane-airscan and sane-escl, provide driverless scanning on the network. | multifunctional || Vendor-specific packages |Ī scanner that is network enabled with a cabled or wireless connection (a network scanner) is accessed with the help of libsane and one of the collection of backends on the system. | stand-alone or | cable/wireless | libsane |
If the Scanner and Your Computer Are in Different Subnets.Canon Multi-Function Printers and CanonScan Scanners via the Network.Scanning with a Network HP all-in-one (aio)-3.
Scanning with a Network HP all-in-one (aio)-2.Scanning with a Network HP all-in-one (aio)-1.Sharing on Debian 11 (bullseye) and later.Sharing a USB Connected Scanner: the Basics.