×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Running Kstars/EKOS on Windows Subsystem for Linux (WSL)

  • Posts: 269
  • Thank you received: 53
I've now got the Mount Control and What's Interesting windows displaying correctly.
Soution was to not use Windows Native OpenGL
and in WSL
export LIBGL_ALWAYS_INDIRECT=
Also, WSL has no sound driver so turn off sound notifications in Kstars to avoid getting an ALSA error message everytime one is issued

A few days back I ran the whole evening using kstars in WSL (without the above fixes) and still got through the evening without a crash. That has never happened when I've used the Windows version.
So next clear night I'll be trying again with the latest setup to see how it goes
The following user(s) said Thank You: jiberjaber
3 years 3 months ago #65994

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
Cool experience indeed, thanks for talking to yourself! I got a lattepanda board and I was wondering if I should keep the Windows 10 install or reset it to an Ubuntu 20. Your attempt gives me a new track, although I doubt there will be enough memory. Readyboost perhaps, with a spare USB key.

-Eric
3 years 3 months ago #66001

Please Log in or Create an account to join the conversation.

  • Posts: 269
  • Thank you received: 53
Hi Eric
I've managed to get Kstars running on a Pi3 with only 1Gb of memory running Ubuntu server 20.04 - so no desktop. You can X11 forward to any other machine (Win, Mac, Linux) with an X11 server.
With only 1Gb is doesn't run the ekosdebugger - it's just too big.
Running headless this way should help reduce the memory load.
PHD2 can also run the same way but I'm getting a few errors complaining about display size - but they don't appear to affect its operation.
3 years 3 months ago #66022

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
I do run kstars on a 1GB atom system with lxde on Ubuntu 18 and z-ram tuned. I need to have the full setup executing remotely because I can't trust network stability. So that means no x11 forwarding. But while that works pretty well and stable thanks to all the great stuff implemented in 2020, this system is 32-bits, and Ubuntu 20 now doesn't have all packages built for that arch. Plus, it is restricted to usb2, which severely limits frame bandwidth. Plus, two 800MHz hyperthreads make HFR computations veeeery long... So time to explore a new SBC environment.

-Eric
3 years 3 months ago #66035

Please Log in or Create an account to join the conversation.

  • Posts: 269
  • Thank you received: 53
We're spolied for choice these days with SBCs. My Aaeon-Up Core uses the Atom X5-Z8350 x64 with 4 cores. It is now looking dated.
3 years 3 months ago #66038

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
It's exactly the same chipset on the lattepanda v1 I just retrieved :) it will be faster than my old 32-bit atom in any case. You installed Ubuntu 20 on that platform? Any issues except for the usual WiFi or Bluetooth driver rebuilding?

-Eric
3 years 3 months ago #66197

Please Log in or Create an account to join the conversation.

  • Posts: 269
  • Thank you received: 53
Aaeon supply a kernel supporting their built in Ampak Wifi/BT chip. It was many months later than 20.04 release so I had to stick with 18.04 until last month. But no problems. I'm very happy with it and it has alway been more reliable than a Pi (although I only have a Pi2 and a Pi3). I noticed when I was experimenting witha new install of Ubuntu 20 desktop on the Pi that the network management menu did not work properly. I think you need to install Network Manager as the renderer. On the Aaeon, Ubuntu 18 already had Network Manager installed so when it upgraded to 20 it was fine. On the Pi I ended up just installing Ubuntu server but still installed Network manager so I could set up a hotspot. That's what led me to start looking at X11 forwarding.
The following user(s) said Thank You: Eric
3 years 3 months ago #66211

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
The qt wayland compositor is also able to render KStars with any resolution through ssh (and only its application windows). It does not work very well yet because we have qml windows in the code that conflict with the exclusive opengl rendering, but that solution can be interesting for its network performance when it is stabilised.

-Eric
3 years 3 months ago #66223

Please Log in or Create an account to join the conversation.

  • Posts: 269
  • Thank you received: 53
That looks good and it seems Wayland is being incorporated into WSL2
3 years 3 months ago #66246

Please Log in or Create an account to join the conversation.

  • Posts: 269
  • Thank you received: 53
Wayland is now supported by WSL2 as long as you are running Windows 11 Build 22000 or higher.docs.microsoft.com/en-us/windows/wsl/tutorials/gui-appsKstars now displays correctly, especially the Mount control.I had just worked out how to connect to WSL2 through SSH which made it easier to work with X11 btu KStars Mount control still did not display correctly. So this is defintiely an improvement over X11. My only problem now is that my old computer that I use in the observatory cannot be upgraded to Windows 11. May be time for a new computer.Wayland is now supported by WSL2 as long as you are running Windows 11 Build 22000 or higher.docs.microsoft.com/en-us/windows/wsl/tutorials/gui-appsKstars now displays correctly, especially the Mount control.I had just worked out how to connect to WSL2 through SSH which made it easier to work with X11 btu KStars Mount control still did not display correctly. So this is defintiely an improvement over X11. My only problem now is that my old computer that I use in the observatory cannot be upgraded to Windows 11. May be time for a new computer.  
The following user(s) said Thank You: Jasem Mutlaq, Eric, Francisco Bitto
Last edit: 2 years 3 months ago by Ken Self. Reason: Crop picture
2 years 3 months ago #79758
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 13
Any update on this? Can WSL access to devices?

I just bought myself a MeLe Quieter2Q and I plan to test both NINA and EKOS on it. If EKOS/Indi works decently over WSL I might even consider keeping just Windows 11 on it.
Last edit: 1 year 6 months ago by Mireia. Reason: minor
1 year 6 months ago #86777

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 13
Replying to myself, in case someone is interested in exactly this:

Unfortunately USBs are only accessible through usbip. While it could work, I am not that confident about its reliability and did not even bother to try.
1 year 6 months ago #87068

Please Log in or Create an account to join the conversation.

Time to create page: 0.619 seconds