I am on windows 11 using Ubuntu 22.04.1 LTS in Wsl. I have openFOAM installed and built aswell as paraview. Whenever I go to launch paraview in openFOAM I get this error:
qt.qpa.xcb: could not connect to display :0.0
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-username'
Segmentation fault (core dumped)
Maybe I need to set a different display? However, after several google attemps I have yet to find the command for that.
Thanks!
Try the following:
Find the local IP address of your Windows machine by following these instructions. you can also use the command line prompt: Press
+R, type
cmd
and press Enter. In the command line prompt, typeipconfig
.For example, let's assume that after following the previous step you've found the local IP address to be
192.168.1.55
In WSL, run the following commands (replace the IP address with your own):
If Paraview runs correctly, add the export command to your
~/.bashrc
to make that change permanent: