Kind of like CUPS but it's for scanning, not printing.
This is basically a web interface for scanner devices through the SANE (Scanner Access Now Easy) interface.
This program is intended to be used alongside CUPS, but this should not be required.
On default, the web server is hosted on port 3004
.
This can be changed in the configuration file (more info below)
You will need libsane-dev
to be able to install python-sane
.
Use APT or your system's equivalent to install.
sudo apt-get install libsane-dev
pip install git+https://github.com/CoolCat467/Scanner-Server.git
Important: When you run this program, the configuration file will be saved in $XDG_CONFIG_HOME/sane_scanner_webserver
(~/.config
if $XDG_CONFIG_HOME not set) and the logs folder will be saved in
$XDG_DATA_HOME/sane_scanner_webserver
(~/.local/share/
if $XDG_DATA_HOME not set)
and the program will create these files if they do not exist.
sanescansrv
Go to URL http://<IP_of_host>:3004
The main configuration file is saved either in $XDG_CONFIG_HOME/sane_scanner_webserver/config.toml
or
$HOME/.config/sane_scanner_webserver/config.toml
,
where you can change things like what port(s)
the webserver is hosted on, hypercorn configuration, and enabling
SSL support!
If you would like to enable SSL support on the local network, it's a bit tricky but it's doable, successfully tested in production, and completely free!
- Make sure your internet router is set to have the machine running the webserver to have a static ip address. This does not and should not be a publicly accessible ip address.
- Create a free account with duckdns
- Add a domain with a name of your choice and set the ip to the static ip address of the machine running the webserver.
- Install certbot on the machine running the webserver.
(https://certbot.eff.org/instructions)
When it asks
software
, tell themother
. For my installation, I ended up installing it with pip. - Install the certbot duckdns plugin for certbot
- Either run certbot from duckdns plugin's README or run /scripts/cert_create.sh with your details.
- Setup autorenewal from certbot wiki or look at /scripts/cert_renew.sh
- Uncomment SSL lines in the webserver configuration file (see section above) and edit as needed for your particular setup.
- Source Code - https://github.com/CoolCat467/Scanner-Server.git
- Issues - https://github.com/CoolCat467/Scanner-Server/issues
Code and documentation are available according to the GNU General Public License v3.0 (see LICENSE).