Simulating Locally Computing Remotely

We have installed GEANT4 on a virtual machine using Google Cloud Services. The computations are working. But, unlike running GEANT4 on the local machine, we can’t visualize the simulations as we can on the local machine. Can we simulate what is computed remotely on the virtual machine on our local machine as if both the computation and visualization are local?

_Geant4 Version:_11.2.2
_Operating System:_SMP Debian 4.19.316-1 (2024-06-25) x86_64 GNU/Linux
_Compiler/Version:_gcc (Debian 8.3.0-6) 8.3.0
_CMake Version:_3.24.3


It’s better to outline the question in the description rather than the post title.

What exactly do you want to do here - is the VM on your local machine, or on a remote system? If the latter, how are you logging into the machine - ssh or some other mechanism? What OS are you running locally, and what’s the VM running?

The VM is on a remote system. We are using -ssh. The OS that we are running locally is Windows 10. Our remote system is Linux. We are using VS Code.

Thanks! It’s not something I’ve done myself, but this should be possible in principle through X11 forwarding. There’s an old, but still I think relevant ticket here:

and searching for “vscode X11 forwarding” should give more hints/info.

Thank you! We will see if this works. We have it working on the desktop using VS Code and WSL. We will work to get the VM installation up and running soon.

Please do feedback if you get this working or have issues - would be useful to have this so we can add to the documentation if needed!

Sure! As soon as we have success, we will be happy to share.