Using Visual Studio Code 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.It is a much nicer approach for most applications than Cygwin, or using a Linux VM.
Vscode Hexdump Install Visual StudioThink of it as GNULinuxWindows (apologies to Richard Stallman). This guide starts off with Microsofts instructions for installing the WSL, and then goes a few steps further by describing how to run graphical Linux applications. Vscode Hexdump Windows 10 With ThePrerequisites Your PC must be running (at a minimum) a 64-bit version of Windows 10 with the Anniversary Update. To find your PCs CPU architecture and Windows versionbuild number, open SettingsSystemAbout. Look for the System Type and Version fields respectively, as shown in the screenshot below. Enable the Windows Subsystem for Linux feature You can enable the feature using a GUI or command-line interface. GUI Method From the Start Menu, search for Turn Windows features on or off (type turn) Select Windows Subsystem for Linux Click OK Command-line Method Open a PowerShell prompt as administrator and run: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux. ![]() Install your Linux distribution of choice Linux distributions can be installed using a script, or by using the Microsoft Store links below: Ubuntu Kali Linux Debian GNULinux Fedora Remix for WSL Pengwin Pengwin Enterprise Alpine WSL After installation your Linux distribution will be located at: localappdatalxss This directory is marked as a hidden system folder for a very good reason: Avoid creating andor modifying files in this location using Windows tools and apps If you do, it is likely that your Linux files will be corrupted and data loss may occur. Create a UNIX user The first time you launch a Linux distribution in Windows, you will be prompted to create a UNIX username and password. This UNIX username and password has no relationship to your Windows username and password, and it can be different. Read more. Update the Linux distribution After you have set up your user, update the OS. To do this on DebianUbuntu based distributions, run: sudo apt-get update sudo apt-get upgrade -y sudo apt-get upgrade -y sudo apt-get dist-upgrade -y sudo apt-get autoremove -y Install common tools 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 fix this, run: 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 Windows drives are mounted by their drive letters under mnt. To make it easier to access your Windows user directory, consider adding a symbolic link, such as: ln -s mntcUsersSean winhome On Amazon WorkSpaces, this your Windows user directory is located in mntdUsers. That way, your Windows user directory is accessible from winhome. Graphical Applications In order to run Linux GUI applications using WSL, you must: Install a X server for Windows Configure bash to tell GUIs to use the local X server Install VcXsrv In order to run graphical Linux applications, youll need an X server. VcXsrv is the only fully open source and up-do-date native X server for Windows. Vscode Hexdump Download And RunDownload and run the latest installer, then locate the XLaunch shortcut in the Start Menu, and click it. On the last page of the wizard, click on the Save configuration button, and save the configuration file in appdataMicrosoftWindowsStart MenuProgramsStartup, so vcXsrv will launch at startup without asking about these options, then click on the Finish button. Canceldeny this request Otherwise, other computers on your network could access the server. Configure bash to use the local X server In bash run: echo export DISPLAYlocalhost:0.0.bashrc To have the configuration changes take effect, restart bash, or run:..bashrc Instructions for fish shell users If you use fish instead of bash: echo set -x DISPLAY localhost:0.0.configfishconfig.fish To have the configuration changes take effect, restart fish, or run:..configfishconfig.fish Test a graphical application Install x11-apps sudo apt-get install x11-apps Run xeyes A new window will open, containing a pair of eyes that will follow your mouse movements. Running remote GUI applications over SSH To use a GUI application from a server, simply use the -X switch with the ssh command, for example: ssh -X email protected And run the GUI application from the shell prompt.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |