![]() You can list your WSL distributions using wsl -l, choose which distribution to launch into with wsl -d, set which one is the default, etc., see wsl -help. It seems to be fine using a windows JDK, even with files located inside of WSL, just not using WSL JDK. Uncheck any project roots that you dont want added. When using Intellij ultimate or community with a JDK located inside of WSL2 the IDE locks up and freezes. ![]() ![]() Youll be prompted with a list of detected Elixir project roots to add to the project. Of course the distributions won't be able to access each others file systems, except via the /mnt/c mount point. If you previously opened the directory in IntelliJ or another JetBrains IDE, youll be prompted to overwrite the. You can probably install a WSL1 distro from the Microsoft Store if you use wsl -set-default-version 1 first, but I haven't tried that personally, LxRunOffline is pretty great and you don't need the Store to do this.Įach WSL1 distro gets its own directory in your Windows partition depending on where you configured it ( c:\wsl\ in my case), and each WSL2 distro gets a virtual ext4 hard disk fie which lives somewhere under %LOCALAPPDATA%\\Packages\\. They can all be running at the same time, and you can configure the list of distros that Windows Terminal shows you when you create a new tab so you can choose which one to log in to. You can follow the instructions I gave using LxRunOffline to add a WSL1 distribution, and there's no need to remove your existing WSL2 distro (just remember to give your WSL1 distro a different name to avoid confusion). In fact, you can have 0.N WSL1 distributions installed and running at the same time as 0.M WSL2 distributions, and they don't even have to be the same type of Linux distribution. For this guide, I will be using VcXsrv but any X Server on windows would do. Microsoft has no plans to deprecate WSL1. Having that said so far the best approach is to simply install Intellij inside of your Linux distribution on WSL2 and connect it to an X Server on windows. You can buy a USB fingerprint reader for $20 from Amazon. Windows Hello does look great, I hadn't read about that yet. The IP can be retrieve from the file /etc/nf that is generated by WSL2. The WSL2 terminal must be configured to set and export the DISPLAY environnment variable to use the Windows host’s IP of WSL2. Settings are accesibles from Windows settings > Update and security > Windows Securities > Firewall and network protection > Allow an application through firewall WSL2 terminal configuration Then you can save the configuration in order to reuse it later to launch VcXsvr directly with the right configuration.Ĭheck that the Windows firewall settings are correctly configured, it must have both public and private checked for VcXsvr windows xserver.Check disable access control or add -ac into the additional parameters, it will avoid permission denied error when trying to run a GUI application.I was seeing 5-10x slower Android builds running flutter from WSL2 compared to native. Sadly, it doesn't work well because WSL2's drvfs is too slow. IntelliJ can run natively in Windows, while CLI tasks can be done in WSL2. This was the first approach I tried - and seemed the most elegant. Install VcXsrv that is an open-source and frequently updated Windows X Server (it will be the provider of graphics resources and keyboard/mouse events), then start it as follow: WSL2 with project files hosted on the Windows partition. Intellij IDEA does not have plugin such as Visual Studio Code Remote Development, nevertheless it is possible to run linux GUI applications directly from WSL2 terminal by installing an X Server for Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |