{"id":4416,"date":"2022-12-20T17:49:13","date_gmt":"2022-12-20T20:49:13","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/sanenet-man5\/"},"modified":"2022-12-20T17:49:13","modified_gmt":"2022-12-20T20:49:13","slug":"sanenet-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/sanenet-man5\/","title":{"rendered":"sane&minus;net (man5)"},"content":{"rendered":"<h1 align=\"center\">sane\u2212net<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#DEVICE NAMES\">DEVICE NAMES<\/a><br \/> <a href=\"#CONFIGURATION\">CONFIGURATION<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#ENVIRONMENT\">ENVIRONMENT<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">sane\u2212net \u2212 SANE network backend<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>sane\u2212net<\/b> library implements a SANE (Scanner Access Now Easy) backend that provides access to image acquisition devices through a network connection. This makes it possible to control devices attached to a remote host and also provides a means to grant users access to protected resources.<\/p>\n<h2>DEVICE NAMES <a name=\"DEVICE NAMES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This backend expects device names of the form:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>host<\/i>:<i>device<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Where <i>host<\/i> is the name (or IP address) of the (remote) host and <i>device<\/i> is the name of the device on this host that should be addressed. If the device name does not contain a colon (:), then the entire string is treated as the <i>device<\/i> string for the default host. The default host is the host listed last in the configuration file (see below).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">An IPv6 address can be specified enclosed in square brackets:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>[::1]<\/i>:<i>device<\/i><\/p>\n<h2>CONFIGURATION <a name=\"CONFIGURATION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>net.conf<\/i> file contains both backend options and a list of host names (or IP addresses) that should be contacted for scan requests. Anything that isn\u2019t one of the options listed below will be treated as an host name. <b><br \/> connect_timeout = nsecs<\/b><\/p>\n<p style=\"margin-left:22%;\">Timeout (in seconds) for the initial connection to the <b>saned<\/b>(8) server. This will prevent the backend from blocking for several minutes trying to connect to an unresponsive <b>saned<\/b>(8) host (network outage, host down, &#8230;). The environment variable <b>SANE_NET_TIMEOUT<\/b> can also be used to specify the timeout at runtime.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">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:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">scan\u2212server.somedomain.firm <br \/> 192.168.0.1 <br \/> # this is a comment <br \/> localhost <br \/> ::1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The above list of hosts can be extended at run-time using environment variable <b>SANE_NET_HOSTS<\/b>. 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:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">new.scanner.com:[::1]:192.168.0.2:scanner.univ.edu<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To request that hosts <i>new.scanner.com<\/i> , <i>[::1]<\/i> , <i>192.168.0.2<\/i> and <i>scanner.univ.edu<\/i> are contacted in addition to the hosts listed above.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For this backend to function properly, it is also necessary to define the <b>sane\u2212port<\/b> service in <i>\/etc\/services<\/i>. The <b>sane<\/b> service should be defined using a line of the following form:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">sane\u2212port 6566\/tcp # SANE network scanner daemon<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/etc\/sane.d\/net.conf<\/i><\/p>\n<p style=\"margin-left:22%;\">The backend configuration file (see also description of <b>SANE_CONFIG_DIR<\/b> below).<\/p>\n<p style=\"margin-left:11%;\"><i>\/usr\/lib64\/sane\/libsane\u2212net.a<\/i><\/p>\n<p style=\"margin-left:22%;\">The static library implementing this backend.<\/p>\n<p style=\"margin-left:11%;\"><i>\/usr\/lib64\/sane\/libsane\u2212net.so<\/i><\/p>\n<p style=\"margin-left:22%;\">The shared library implementing this backend (present on systems that support dynamic loading).<\/p>\n<h2>ENVIRONMENT <a name=\"ENVIRONMENT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>SANE_CONFIG_DIR<\/b><\/p>\n<p style=\"margin-left:22%;\">This environment variable specifies the list of directories that may contain the configuration file. On *NIX systems, the directories are separated by a colon (\u2018:\u2019), under OS\/2, they are separated by a semi-colon (\u2018;\u2019). If this variable is not set, the configuration file is searched in two default directories: first, the current working directory (&#8220;.&#8221;) and then in <i>\/etc\/sane.d<\/i>. 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, setting <b>SANE_CONFIG_DIR<\/b> to &#8220;\/tmp\/config:&#8221; would result in directories <i>tmp\/config<\/i>, <i>.<\/i>, and <i>\/etc\/sane.d<\/i> being searched (in this order).<\/p>\n<p style=\"margin-left:11%;\"><b>SANE_NET_HOSTS<\/b><\/p>\n<p style=\"margin-left:22%;\">A colon-separated list of host names or IP addresses to be contacted by this backend.<\/p>\n<p style=\"margin-left:11%;\"><b>SANE_NET_TIMEOUT<\/b><\/p>\n<p style=\"margin-left:22%;\">Number of seconds to wait for a response from the <b>saned<\/b>(8) server for the initial connection request.<\/p>\n<p style=\"margin-left:11%;\"><b>SANE_DEBUG_NET<\/b><\/p>\n<p style=\"margin-left:22%;\">If the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. E.g., a value of 128 requests all debug output to be printed. Smaller levels reduce verbosity.<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">If <b>saned<\/b>(8) has timed out, the net backend may loop with authorization requests.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>sane<\/b>(7), <b>saned<\/b>(8), <b>sane\u2212dll<\/b>(5), <b>scanimage<\/b>(1)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>http:\/\/www.penguin-breeder.org\/?page=sane\u2212net<\/i><\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">David Mosberger and Andreas Beck<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  sane\u2212net \u2212 SANE network backend <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1291,1411],"class_list":["post-4416","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-sane-net"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4416"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4416\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}