Skip to content

Commit

Permalink
Install instructions update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbs20 committed Sep 26, 2018
1 parent 2dcf84d commit f5a0cd7
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions install.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@
# installation

## tl;dr;
```
sudo apt install npm sane-utils imagemagick curl`
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install -y nodejs
wget -O ~/scanservjs.tar.gz $(curl -s https://api.github.com/repos/sbs20/scanservjs/releases/latest | grep browser_download_url | cut -d '"' -f 4)
tar -xf scanservjs.tar.gz
sudo ./scanservjs/install.sh
rm scanservjs.tar.gz
rm -r scanservjs
```

## prerequisites
### SANE
Get [SANE installed and working](https://github.com/sbs20/scanserv/blob/master/install-sane.md) and
check permissions etc
check permissions etc.

### nodejs & npm
Get nodejs and npm installed

e.g.
* Arch: `sudo pacman -S nodejs npm`
* Debian: `sudo apt-get install nodejs npm`
#### Arch:
```
sudo pacman -S nodejs npm`
```
#### Debian 9:
```
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install -y nodejs
sudo apt-get install npm sane-utils imagemagick`
```

Note: You may have problems installing an up to date nodejs on Debian which includes `npm`. See
[here](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)
for how to install nodejs
For more on problems installing an up to date nodejs on Debian which includes
`npm`. See [here](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)

Note 2: Debian calls the node binary "nodejs", which results in npm not being able to find the command.
Use one of the following to resolve the issue:
Use one of the following to resolve the issue:
* `ln -s /usr/bin/nodejs /usr/bin/node`
* `sudo apt-get install nodejs-legacy`

Expand Down

0 comments on commit f5a0cd7

Please sign in to comment.