-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where do I get the frontend for Linux #663
Comments
Hello, So with that in mind, you may find unsupported features or unexpected behavior with other browsers. This may have serious effects (damage? injuries?) when controlling a laser or any type of machinery. That being said and assuming you can take proper safety measures, have you tried opening another browser when the backend and front end were running in the first install you described with Linux Mint? Edit: The front end and back end shouldn't matter for the browser you are using, but again LW4 was specifically designed for Chrome. |
Thank you. I may be misunderstanding how to do this on Linux. I was using LaswerWeb on Windows 10 and loved it. I now want to move my PC for the Laser over to Linux because Win 11 will not be supported on it. In any case I installed the backend on the Linux Mint and could access LaserWeb with Chrome web browser in Linux Mint. It seemed to work correctly (though I have not tried a real burn with it). I am far from a Linux wizard. So I wanted to use LaswerWeb the way I did on the PC. On Linux it seems I have to enter the terminal, launch the server, then open Chrome and access Localhost:8000. I wanted to (in Linux) simply launch LaserWeb from the desktop like Windows. I assumed with the front end application would do that. I launch the front end and it launches the backend and then closes the backend when it closes. Is there a way to do that in Linux with the browser? Can I launch the backend, launch Chrome, then close backend when I shut down. As this is not dedicated to the laser I did not want to have the backend running all the time. Only when I am using it. |
The front end and back end are two different processes. Depending how you launch LW4, the browser is also launched automatically. Based on the raspberrry pi wiki, it seems the backend is used as a service through systemd using Now the usage of a service with systemd is entirely optional. Have a look at the following link: https://github.com/LaserWeb/LaserWeb4/wiki/How-to-compile |
I think I have it figured. I do not need to compile the front end as it is already in the server. All I need to do is build the backend then drop the following script into lw.comm-server :
It seems to work correctly. I have not tried it yet but will. If it works I will document the steps to get it running on Linux Mint. Should be pretty much the same for all debian cases. |
OK I have it working in Linux Mint V21.2 Cinnamon Edition. The installation process was as follows. Open the terminal window and enter:
You can verify that npm and node are installed then by entering the following:
The following were the version number returned at the time of this writing: npm - 8.5.1 Then install Chromium by entering:
Install git:
Clone the latest lw.comm-server and install the dependencies:
You can then test that the sever is working with:
Type CTRL-C to stop the server: Then create a bash script for launching the server and the browser:
Copy and paste or type the following into the nano editor. Note that this script can be used with Chromium (recommended) or Firefox by uncommenting the correct line:
Type CTRL-O then CTRL-X to save the script and exit nano editor. Then make the script executable and change the owner to your username (replace all the "doug" below with your own Linux username):
You should be able to launch LaserWeb from the terminal then by entering:
You are ok to close the terminal if everything worked. You then can add an icon to your desktop by right clicking on the desktop and picking "Create a new launcher here" from the context menu. For name use: LaserWeb4 If you want to change the desktop icon there is one included in usr/local/lw.comm-server/build/ folder. |
@SidSkiba Thank you very much for the nice instructions. I have updated the wiki... |
I am good with that. I would like to try to update the dependencies. I will do a pull request and see what I can do. |
I made a few edits above for spelling and clarity on dependencies. I cannot seem to do a pull on master? |
I built the latest server on Linux Mint 21.2. I followed the info on https://laserweb.yurl.ch/documentation/installation/36-install-raspberry-pi and it works properly. There are some warnings and such during the build but it builds fine with latest NPM and NODE. I can access the server using Chrome and localhost:8000. It connects to the Laser and I can control it fine.
I however want to use the front end on the same machine without using Chrome.
I then tried the Appimage provided on https://github.com/LaserWeb/LaserWeb4-Binaries/. This also worked good and included the front end. But I was unable to connect to the laser. It would connect then state no supported firmware found and disconnect. I assume the Appimage cannot connect properly to my Ortur LM2 S2 machine (GRBL). As the lw.comm-server works fine I am sure I have the dialout setup correctly.
The version of the Appimage is shown as: laserweb-builder-v4.0.996-130-x86_64.AppImage
So perhaps the newest GRBL is not supported in the 4.0.996 version.
Wondering if anyone has way to compile LaserWeb4 the front end as described here:
Install the frontend
Install the LaserWeb4 executable on your Windows, OSX or Linux PC. This way you get the lastest frontend version.
-> You should see a green message "Server connected" in the log area at bottom right.
and hinted at here:
https://gist.github.com/easytarget/fc7a6dabf893d1b461c5e66573d0725a
Regards,
Sid
The text was updated successfully, but these errors were encountered: