Skip to content

1_Installation

Claudio Prezzi edited this page Sep 1, 2017 · 9 revisions

Windows

  • Go to https://github.com/LaserWeb/LaserWeb4-Binaries/releases and download the installer for Windows
  • Run the installer. You will probably get a Windows warning that the start has been blocked because of an unverified application. That's because the installer is not yet certified. Just click on "more info" and install it anyways.
  • Done!

You can proceed with Initial Configuration.

OSX

Check out https://www.howtogeek.com/177619/how-to-install-applications-on-a-mac-everything-you-need-to-know/ if its your first time installing from a .dmg file.

You can proceed with Initial Configuration.

Linux

LaserWeb is available as an http://appimage.org/ installer - it doesn't get any easier to deploy on Linux! Supported by most modern distributions

You can proceed with Initial Configuration.

RaspberryPi

The LaserWeb4 frontend is very feature-rich and quite heavy and will not run smoothly on the Rasbian Desktop, but you can run the server part on a Raspberry Pi and connect from a PC on the network. Install the server

This procedure is not tested yet! Start from a clean Rasbian image, on a Raspberry Pi 2 or 3.

Install Node 6.x

apt-get install -y nodejs```

Confirm you have the correct NPM version (should be >=3.10.10)

```npm -v```

Confirm you have the correct NodeJS version (should be >= 6.9.4)

```node -v```


Install git

sudo apt-get update
sudo apt-get install git


Download and install LaserWeb server

cd /home/pi
git clone https://github.com/LaserWeb/lw.comm-server.git
cd lw.comm-server
sudo npm install serialport --unsafe-perm --build-from-source
sudo npm install


Manually start the server

cd /home/pi/lw.comm-server
node server.js

You should get the following console response:

> lw.comm-server@4.0.115 start C:\Users\cprez\git\LaserWeb\lw.comm-server
> node server.js

***************************************************************
        ---- LaserWeb Comm Server 4.0.115 ----
***************************************************************
  Use  http://192.168.1.100:8000 to connect this server.

* Updates:
  Remember to check the commit log on
  https://github.com/LaserWeb/lw.comm-server/commits/master
  regularly, to know about updates and fixes, and then when ready
  update accordingly by running git pull

* Support:
  If you need help / support, come over to
  https://plus.google.com/communities/115879488566665599508
***************************************************************

Press CTRL-C to stop the server.
Now that you know it's working, you can setup the autostart of the service.

Setup Systemd to automatically start the LaserWeb server

cp /home/pi/lw.comm-server/lw.comm-server.service /etc/systemd/system/lw.comm-server.service
sudo systemctl enable lw.comm-server.service
sudo systemctl start lw.comm-server

You can check the status of the server with

sudo systemctl status lw.comm-server

You can restart the server with

sudo systemctl restart lw.comm-server

You can stop the server with

sudo systemctl stop lw.comm-server

(The logs will get added to /var/log/syslog)
Start the frontend

    Connect your machine to one of the USB ports
    Open Chrome (or Chromium) on any PC in your network.
    Open URL `RasPi-IP:8000`  (replace RasPi-IP with the IP of your RasPi)
    Click on Comms tab
    Click on "Server Connection"
    Change Server-IP to `RasPi-IP:8000`  (replace RasPi-IP with the IP of your RasPi)
    Click connect

-> You should see a green message "Server connected" in the log area at bottom right.

    Set the "Machine Connection" dropdown to USB
    Choose the correct serial port in the "USB / Serial Port" dropdown (ex. /dev/ttyACM0)
    Check that the baud rate is set to 115200
    Click connect below

-> You should get a green message "Machine connected"  in the log area, followed by a green line with the detected firmware.
If you get some red messages insted of the green firmware line, you probably have selected the wrong port or the firmware is not supported.


You can now proceed with Initial Configuration.