User Tools

This is an old revision of the document!


ScanServJS

ScanServJS

emerge -vp app-arch/deb2targz emerge -vp tesseract emerge -vp nodejs

mkdir /opt/scanservjs chown saned:scanner /opt/scanservjs

as user saned

sudo -u saned bash cd /opt/scanservjs

wget … https://github.com/sbs20/scanservjs/releases

deb2targz scanservjs_3.0.3-1_all.deb

tar xvf scanservjs_3.0.3-1_all.tar.xz

cd usr/lib/scanservjs

rm config ln -s /opt/scanservjs/etc/scanservjs config rm data ln -s /opt/scanservjs/var/lib/scanservjs data

edit etc/scanservjs/config.default.js save as config.local.js fix path on first line const options = { paths: ['/opt/scanservjs/usr/lib/scanservjs'] };

  config.host = '127.0.0.1';
  config.port = 7781;
  

node /opt/scanservjs/usr/lib/scanservjs/server/server.js

Autostart:

scanservjs
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

description="SCan from web interface"
pidfile="/run/scanservjs.pid"
command_background=true
command="node /opt/scanservjs/usr/lib/scanservjs/server/server.js "
command_args=""
command_user="saned:scanner"

depend() {
        need net
}

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information