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 BeamNG headless #282

Open
Leviathan321 opened this issue Sep 9, 2024 · 3 comments
Open

Running BeamNG headless #282

Leviathan321 opened this issue Sep 9, 2024 · 3 comments

Comments

@Leviathan321
Copy link

Is there a way to run BeamNG headless? I would need to run it via ssh on a remote machine without using the GUI. When I run it via ssh it does not produce an error but it also does not run.

@aivora-beamng
Copy link
Contributor

Hi, the way to run BeamNG headless is to run it with these command-line arguments:

BinLinux/BeamNG.tech.x64.exe -gfx null -batch

Unfortunately, the feature is still in early development, so this is not documented and you will run into issues trying to use this headless version of BeamNG. We will update you here when the feature is ready to be used.

@Leviathan321
Copy link
Author

Leviathan321 commented Sep 22, 2024

Thank you. Do you also know if there is way to run BeamNG via ssh? It does not need to be necessarily headless then. If I want to run it via ssh, the simulator is not opened.

I way trying to set the DISPLAY variable so that BeamNG can open properly, when I run my code but without success.

@aivora-beamng
Copy link
Contributor

Hi, to run BeamNG via ssh, you can either:

  1. Use X server forwarding (ssh -X or ssh -Y)
ssh -X user@server
BinLinux/BeamNG.tech.x64 <arguments>
  1. Use the X virtual framebuffer on the server
sudo apt-get install xvfb
Xvfb :99 # open a X virtual framebuffer on the display no. 99

and from another terminal instance you can run BeamNG:

DISPLAY=:99 BinLinux/BeamNG.tech.x64 <arguments>

You may encounter some bugs with Xvfb, we are actively working to make the experience smoother for next updates of BeamNG.tech.

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

2 participants