This repository has been archived by the owner on Jan 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Install: Linux
Claudio Prezzi edited this page Nov 28, 2016
·
10 revisions
The following should work on Debian Jessie on most platforms.
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/
npm -v
Should be at least 2.15.5
node -v
Should be at least v4.4.5
sudo apt-get update
sudo apt-get install git
cd ~
git clone https://github.com/openhardwarecoza/LaserWeb3.git
cd LaserWeb3
npm install
cd ~/LaserWeb3
node server-smoothie.js
or
cd ~/LaserWeb3
node server-grbl.js
First you need to edit the file "laserweb3.service" and change the string "server-smoothie-grbl.js" to "server-smoothie.js" or "server-grbl.js" (corresponding to your controller).
Then install the service with
cp ~/LaserWeb3/laserweb3.service /etc/systemd/system/laserweb3.service
sudo nano /etc/systemd/system/laserweb3.service (And fix the path the LaserWeb install)
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
For support: Please join the Google+ Community LaserWeb