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

Running on linux #94

Open
konradmoesch opened this issue Oct 1, 2023 · 3 comments
Open

Running on linux #94

konradmoesch opened this issue Oct 1, 2023 · 3 comments

Comments

@konradmoesch
Copy link

Hi,
I play MSFS on Linux (using proton) and want to use (and maybe help developing) the plane and simbridge. How much is simbridge depending on the win32-platform, and what would be a starting point for porting/running it on linux?

@CEbbinghaus
Copy link

Currently Investigating this. Since its written in Typescript there is no reason why it wouldn't be possible to run it on linux. I took a shot and tried getting it to run in docker (which I think is a great start). My use case involves running simbridge in headless mode on my server to have a persistent api. That way I don't need to ensure the simbridge services is running locally whenever I want to start my flight sim (and gives me the possibility of accessing my routes remotely).

To achieve this I had to delete any and all terrain code and anything that had to do with the system tray but at least it runs:
image

I don't know how performant a docker container would be especially without access to the GPU when rendering the terrain but I am sure it can be done.

+1 on this and considering deployments that aren't standalone windows applications

@ZigTag
Copy link
Member

ZigTag commented Jan 11, 2024

I mean if you were running on docker it should run natively on Linux which would allow you to be able to access the GPU, After looking into it, it seems like GPU.js (the library we use for GPU operations) works on Linux.

This may work for allowing GPUs in docker if that is needed

Edit: I should've done some research before posting

@CEbbinghaus
Copy link

CEbbinghaus commented Jan 11, 2024

Its a PITA to get Nvidia GPUs into docker. It can be done and I have managed to get it running but only for video transcoding for which ffmpeg was the real hero. I wouldn't mind linux binaries for full desktop or VM deployments together with a docker container. And as you pointed out, any binary that runs in docker also runs in linux. But it might be smartest to have 3 different versions of (full windows, full linux, stripped docker). Additionally the JS support for conditional compilation is basically non existent so extra logic needs to be added to only load certain libraries on certain operating systems.

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

No branches or pull requests

3 participants