![]() Instead on installing the Linux version on Visual Studio Code on your WSL Linux distribution, install Visual Studio Code in Windows, and add the Remote Development extension pack.Īfter reloading Visual Studio Code, click on the green arrows at the bottom right corner of the window, and select Remote-WSL: New window action.Ī new window will open with a Linux shell and editor. To use a GUI application from a server, simply use the -X switch with the ssh command, for example: ssh -X Īnd run the GUI application from the shell prompt. To have the configuration changes take effect, restart fish, or run:Ī new window will open, containing a pair of eyes that will follow your mouse movements.echo "set -x DISPLAY localhost:0.0" > ~/.config/fish/config.fish.To have the configuration changes take effect, restart bash, or run:.Configure bash to use the local X serverĮcho "export DISPLAY=localhost:0.0" > ~/.bashrc Cancel/deny this request! Otherwise, other computers on your network could access the server.Ī X icon will appear in your system tray. You may receive a prompt to allow it through your firewall. On the last page of the wizard, click on the Save configuration button, and save the configuration file in %appdata%\Microsoft\Windows\Start Menu\Programs\Startup, so vcXsrv will launch at startup without asking about these options, then click on the Finish button. Download and run the latest installer, then locate the XLaunch shortcut in the Start Menu, and click it. VcXsrv is the only fully open source and up-do-date native X server for Windows. In order to run graphical Linux applications, you’ll need an X server. Configure bash to tell GUIs to use the local X server.In order to run Linux GUI applications using WSL, you must: That way, your Windows user directory is accessible from ~/winhome. On Amazon WorkSpaces, this your Windows user directory is located in /mnt/d/Users. To make it easier to access your Windows user directory, consider adding a symbolic link, such as: ln -s /mnt/c/Users/Sean/ ~/winhome ![]() For example, your Windows C: drive is accessible via /mnt/c. Windows drives are mounted by their drive letters under /mnt. Sudo apt install -y ca-certificates findutils command-not-found vim nano curl openssh-client less screen apt-utils top htop whois git python3-pip Accessing the Windows filesystem from WSL The Debian distribution for WSL is minimal, so many packages that you might expect to be installed, such as ca-certificates, are not installed. To do this on Debian/Ubuntu based distributions, run: sudo apt-get update
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |