sane-net(5)
๐ฆ sane-net(5) โ the SANE network backend (Scanner Access Now Easy, iykyk) ๐ฆ
๐ธ NAME ๐ธ
sane-netโ SANE network backend. That's the whole vibe, bestie: it's the network backend for SANE, fr fr.
๐ซ DESCRIPTION ๐ซ
Okay so picture this: the sane-net library implements a SANE (Scanner Access Now Easy) backend, and its whole thing is giving you access to image acquisition devices through a network connection. โจ That makes it possible to control devices attached to a remote host, and it also provides a means to grant users access to protected resources. Iconic, honestly.
๐ DEVICE NAMES ๐
This backend expects device names in this exact shape:
host:device
Where host is the name (or IP address) of the (remote) host, and device is the name of the device on this host that should be addressed. Simple enough, right? ๐ซถ
If the device name does not contain a colon (:), then the entire string is treated as the device string for the default host. And the default host? It's the host listed last in the configuration file (see below). Periodt.
An IPv6 address can be specified enclosed in square brackets:
[::1]:device
๐ฅ CONFIGURATION ๐ฅ
The net.conf file contains both backend options and a list of host names (or IP addresses) that should be contacted for scan requests. Anything that isn't one of the options listed below will be treated as a host name. Lowkey important, bestie.
connect_timeout = nsecsโ Timeout (in seconds) for the initial connection to thesaned(8)server. This will prevent the backend from blocking for several minutes trying to connect to an unresponsivesaned(8)host (network outage, host down, ...). The environment variableSANE_NET_TIMEOUTcan also be used to specify the timeout at runtime. ๐
Empty lines and lines starting with a hash mark (#) are ignored. Note that IPv6 addresses in this file do not need to be enclosed in square brackets. A sample configuration file is shown below:
scan-server.somedomain.firm
192.168.0.1
# this is a comment
localhost
::1
The above list of hosts can be extended at run-time using environment variable SANE_NET_HOSTS. This environment variable is a colon-separated list of hostnames or IP addresses that should be contacted in addition to the hosts mentioned in the configuration file. For example, a user could set the environment variable to the string:
new.scanner.com:[::1]:192.168.0.2:scanner.univ.edu
To request that hosts new.scanner.com , [::1] , 192.168.0.2 and scanner.univ.edu are contacted in addition to the hosts listed above. ๐ฆ
For this backend to function properly, it is also necessary to define the sane-port service in /etc/services using a line of the following form:
sane-port 6566/tcp # SANE network scanner daemon
๐ FILES ๐
/etc/sane.d/net.confโ The backend configuration file (see also description ofSANE_CONFIG_DIRbelow)./usr/lib64/sane/libsane-net.aโ The static library implementing this backend./usr/lib64/sane/libsane-net.soโ The shared library implementing this backend (present on systems that support dynamic loading).
๐ ENVIRONMENT ๐
SANE_CONFIG_DIRโ This environment variable specifies the list of directories that may contain the configuration file. On *NIX systems, the directories are separated by a colon (:), under OS/2, they are separated by a semi-colon (;). If this variable is not set, the configuration file is searched in two default directories: first, the current working directory (".") and then in/etc/sane.d. If the value of the environment variable ends with the directory separator character, then the default directories are searched after the explicitly specified directories. For example, settingSANE_CONFIG_DIRto"/tmp/config:"would result in directoriestmp/config,., and/etc/sane.dbeing searched (in this order). ๐SANE_NET_HOSTSโ A colon-separated list of host names or IP addresses to be contacted by this backend.SANE_NET_TIMEOUTโ Number of seconds to wait for a response from thesaned(8)server for the initial connection request.SANE_DEBUG_NETโ If the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. E.g., a value of128requests all debug output to be printed. Smaller levels reduce verbosity.
๐ BUGS ๐
If saned(8) has timed out, the net backend may loop with authorization requests. Not cute, but forewarned is forearmed. ๐ญ
๐ SEE ALSO ๐
sane(7), saned(8), sane-dll(5), scanimage(1)
Also, there's this URL: http://www.penguin-breeder.org/?page=sane-net
๐ง AUTHOR ๐ง
David Mosberger and Andreas Beck
๐ That's the tea, bestie: sane-net(5), SANE Scanner Access Now Easy, dated 14 Jul 2008. Go forth and scan remotely! ๐
๐ฆ where this page comes from
- fedora 43: sane-backends 1.4.0-4.fc43 ยท GPL-2.0-or-later WITH SANE-exception AND GPL-2.0-or-later AND GPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND IJG AND MIT
- fedora 44: sane-backends 1.4.0-6.fc44 ยท GPL-2.0-or-later WITH SANE-exception AND GPL-2.0-or-later AND GPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LicenseRef-Fedora-Public-Domain AND IJG AND MIT
- opensuse-leap 16.0: sane-backends 1.3.0-bp160.1.14 ยท GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
- opensuse-leap 16.0: sane-backends 1.3.0-bp160.1.14 ยท GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
- opensuse-leap 16.0: sane-backends 1.3.0-bp160.1.14 ยท GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
- opensuse-leap 16.0: sane-backends 1.3.0-bp160.1.14 ยท GPL-2.0-or-later AND SUSE-GPL-2.0+-with-sane-exception AND SUSE-Public-Domain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms