svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
647 stars 172 forks source link

run under linux #374

Open megahacker91 opened 5 months ago

megahacker91 commented 5 months ago

is there any way to run this app under linux ???

svenhb commented 5 months ago

It may work the same was as for lasergrbl: It is easy to install LaserGRBL in linux using PlayOnLinux via this script

As alternative you can run LaserGRBL in linux with wine 5.0 and wine mono 4.9.4 (wineprefix 32-bit) and windowsdll gdiplus. read more

metzger100 commented 4 months ago

Hello svenhb, i tried to run grbl-plotter with ProtonGE. It starts without an issue after installing steam (Repo), ttf-ms-win11-auto (AUR) and gdiplus (Protontricks {update to cabextract 1.11 beacause of a bug in 1.10}) and gdiplus_winxp (Maybe not needed || Protontricks). I don't know which Windows fonts are needed but in ttf-ms-fonts (AUR) the required fonts are missing. I can't tell what package is needed on other distros. It doesn't work with wine but ProtonGE (Steam & Add a Non-Steam Game) is the way to go anyway, when running windows software. I didn't try to connect to the arduino yet but I expect it ot work, maybe there a some configuration of wine regedit needed. If anyone needs further help please ask.

image

ARCH Linux:

svenhb commented 4 months ago

Did you try this? https://forum.winehq.org/viewtopic.php?t=32363

metzger100 commented 4 months ago

Thanks for the link. There were some fonts missing. Installing https://aur.archlinux.org/packages/ttf-ms-win11-auto fixed the font problem. After installing it wine freezed but it worked flawlessly with GE-Proton8-27 by adding GRBL-Plotter as a non-Steam Game and and enabeling Steam Play.

metzger100 commented 4 months ago

If you could tell me which fonts are needed by grbl plotter I could write a short guide for linux for your Readm (not like i did in this thread). The main problem is, that every distro has different packages to install windows fonts and they not always contain the same fonts.

svenhb commented 4 months ago

I try to figure out, usually system fonts Your error code probably pointed to this code line in virtual joystick code : AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font

svenhb commented 4 months ago

Default font for the controls is "Microsoft Sans Serif"

metzger100 commented 4 months ago

Great. I will open a pull request, when I think everything works. I didn't use grbl plotter to control my cnc yet. I will test some stuff first to verify everything works.