Skip to content
This repository has been archived by the owner on Jan 29, 2018. It is now read-only.

Install: Linux

Claudio Prezzi edited this page Dec 8, 2016 · 10 revisions

The following should work on Debian Jessie on most platforms.

Install Node version 4.x

Go to https://nodejs.org/en/download/ and download the correct binary tarball for your platform (probably https://nodejs.org/dist/v4.4.7/node-v4.4.7-linux-x64.tar.xz)

wget https://nodejs.org/dist/v4.4.7/node-v4.4.7-linux-x64.tar.xz
tar -xvf node-v4.4.7-linux-x64.tar.xz
cd node-v4.4.7-linux-x64
sudo cp -R * /usr/local/

Confirm you have the correct Node version

npm -v
 Should be at least 2.15.5
node -v
 Should be at least v4.4.5

Install/update git

sudo apt-get update
sudo apt-get install git

Download LaserWeb

cd ~
git clone https://github.com/openhardwarecoza/LaserWeb3.git
cd LaserWeb3
npm install

Manually start LaserWeb

cd ~/LaserWeb3
node server.js

Setup Systemd to automatically start LaserWeb

Then install the service with

cp ~/LaserWeb3/laserweb3.service /etc/systemd/system/laserweb3.service
sudo systemctl enable laserweb3.service
sudo systemctl start laserweb3

You can check the status of LaserWeb with

sudo systemctl status laserweb3

You can restart LaserWeb with

sudo systemctl restart laserweb3

The logs will get added to /var/log/syslog