Skip to content
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

run under linux #374

Open
megahacker91 opened this issue Jan 25, 2024 · 8 comments
Open

run under linux #374

megahacker91 opened this issue Jan 25, 2024 · 8 comments

Comments

@megahacker91
Copy link

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

@svenhb
Copy link
Owner

svenhb commented Jan 25, 2024

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
Copy link

metzger100 commented Feb 27, 2024

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:

  • Steam (Add a Non-Steam Game)
  • Install GE-Proton https://github.com/GloriousEggroll/proton-ge-custom (Recommended to us ProtonUp-Qt (AUR: protonup-qt))
  • Add a Non-Steam Game (select GRBL-Plotter_Setup.exe) execute and install it
  • Change path to GRBL-Plotter.exe [replace {USER}]("/home/{USER}/.steam/steam/steamapps/compatdata/4067479436/pfx/drive_c/Program Files (x86)/GRBL-Plotter/GRBL-Plotter.exe") and the "Execute in" Path ("home/{USER}/.steam/steam/steamapps/compatdata/4067479436/pfx/drive_c/Program Files (x86)/GRBL-Plotter/")
  • install Protontricks windowsdll gdiplus (AUR: protontricks)
  • install ttf-ms-win11-auto (AUR)

@svenhb
Copy link
Owner

svenhb commented Feb 27, 2024

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

@metzger100
Copy link

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
Copy link

metzger100 commented Feb 27, 2024

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
Copy link
Owner

svenhb commented Feb 27, 2024

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
Copy link
Owner

svenhb commented Feb 27, 2024

Default font for the controls is
"Microsoft Sans Serif"

@metzger100
Copy link

metzger100 commented Feb 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants