On WSL2 use the command: export DISPLAY=$(ip route | awk '/default/ '):0.0 Then in Section choose “WSL and live default distribution”. In MobaXterm go to Setting->X11->X11 remote access and choose “full”, When you launch the server using Xlaunch. If you use Xcxsrv you will see the option Disable access control The only way is to use the X11 server for Windows : Disable access control in X11 server and use the default router (local IP address of Windows machine) for display settings. In WSL2 Microsoft has made a modification in the network which prevents Windows WSL routing. In WSL1 After starting X11 server you can use: Which provides both X11 server and terminal client with ssh.Īre the other options which we did not test. We made tests with XcXsrv and embedded Ubuntu 20.04 terminal There are several X11 servers for Windows. You will then need to create a user account and password for your new Linux distribution Open “Microsoft Store” and search WSL or Ubuntu.Ĭhoose Ubuntu 20.04 LTS and install it on the Windows Machine. Install your Linux distribution, we made the tests with Ubuntu-20.04 LTS On Microsoft Store, we have chosen Ubuntu 20.04 TLS for our purpose.įor detailed instructions how to enable WSL or WSL 2. Installing WSL in Windows 10Īs the WSL machines for CentOS and Fedora are paid applications For this tutorial we recommend to use Windows Subsystem for Linux (WSL) machine.
0 Comments
Leave a Reply. |