Developers can access the power of both Windows and Linux at the same time on a Windows machine. The Windows Subsystem for Linux (WSL) lets developers install a Linux distribution (such as Ubuntu, OpenSUSE, Kali, Debian, Arch Linux, etc) and use Linux applications, utilities, and Bash command-line tools directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.
You can now install everything you need to run WSL with a single command. Open PowerShell or Windows Command Prompt in administrator mode by right-clicking and selecting "Run as administrator", enter the wsl --install command, then restart your machine.
The first time you launch a newly installed Linux distribution, a console window will open and you'll be asked to wait for files to de-compress and be stored on your machine. All future launches should take less than a second.
The above command only works if WSL is not installed at all. If you run wsl --install and see the WSL help text, please try running wsl --list --online to see a list of available distros and run wsl --install -d to install a distro.To uninstall WSL, see Uninstall legacy version of WSL or unregister or uninstall a Linux distribution.
If you want to install additional distributions from inside a Linux/Bash command line (rather than from PowerShell or Command Prompt), you must use .exe in the command: wsl.exe --install -d or to list available distributions: wsl.exe -l -o.
To install a Linux distribution that is not listed as available, you can import any Linux distribution using a TAR file. Or in some cases, as with Arch Linux, you can install using an .appx file. You can also create your own custom Linux distribution to use with WSL.
Once you have installed WSL, you will need to create a user account and password for your newly installed Linux distribution. See the Best practices for setting up a WSL development environment guide to learn more.
We recommend following our Best practices for setting up a WSL development environment guide for a step-by-step walk-through of how to set up a user name and password for your installed Linux distribution(s), using basic WSL commands, installing and customizing Windows Terminal, set up for Git version control, code editing and debugging using the VS Code remote server, good practices for file storage, setting up a database, mounting an external drive, setting up GPU acceleration, and more.
To set the default Linux distribution used with the wsl command, enter: wsl -s or wsl --set-default , replacing with the name of the Linux distribution you would like to use. For example, from PowerShell/CMD, enter: wsl -s Debian to set the default distribution to Debian. Now running wsl npm init from Powershell will run the npm init command in Debian.
To run a specific wsl distribution from within PowerShell or Windows Command Prompt without changing your default distribution, use the command: wsl -d , replacing with the name of the distribution you want to use.
To change versions, use the command: wsl --set-version 2 replacing with the name of the Linux distribution that you want to update. For example, wsl --set-version Ubuntu-20.04 2 will set your Ubuntu 20.04 distribution to use WSL 2.
If you manually installed WSL prior to the wsl --install command being available, you may also need to enable the virtual machine optional component used by WSL 2 and install the kernel package if you haven't already done so.
To learn more, see the Command reference for WSL for a list of WSL commands, Comparing WSL 1 and WSL 2 for guidance on which to use for your work scenario, or Best practices for setting up a WSL development environment for general guidance on setting up a good development workflow with WSL.
WSL supports running as many different Linux distributions as you would like to install. This can include choosing distributions from the Microsoft Store, importing a custom distribution, or building your own custom distribution.
Try the most recent features or updates to WSL by joining the Windows Insiders Program. Once you have joined Windows Insiders, you can choose the channel you would like to receive preview builds from inside the Windows settings menu to automatically receive any WSL updates or preview features associated with that build. You can choose from:
Since I updated to Windows 11 I've been having a weird issue. I'm not able to select a different wallpaper for each of my two monitors. In the Personalization>Background menu, upon right clicking on the image to display the context menu, if I select "Set for Desktop 2" it does not change anything. On the other hand if I select "Set for Desktop 1" it changes the background for both monitors. Please note that I have my dual monitor set to Extend and not duplicate.
Hover over the "desktop" app on the taskbar next to the magnifying glass. It should say "Desktop 1" & "New Desktop". Open a New Desktop and remove "Desktop 1". After I did this it worked for me. I hope it works for you too! :)
This fixed it for me. I went to windows 11 > Display Settings > disconnected all monitors but the main one, re-extended my 2nd monitor. Went into Display Settings > Personalization > Background > and then had the right-click option on a recent image to select monitor 1 or 2.
In most cases, the Dynamic Host Configuration Protocol (DHCP) automaticallyconfigures your system to use the IP addresses of your ISP's domain nameservers. To use Google Public DNS, you need to explicitly change the DNSsettings in your operating system or device to use the Google Public DNS IPaddresses. The procedure for changing your DNS settings varies according tooperating system and version (Windows, Mac, Linux, or ChromeOS) or the device(computer, phone, or router). We give general procedures here that might notapply for your OS or device; consult your vendor documentation for authoritativeinformation.
Depending on your system you may also have the option of enabling a newprivacy-oriented feature called DNS-over-TLS. This feature provides privacyand security for the DNS messages sent between your device and Google's DNSservers. Details on configuring this optional feature are in specific sectionsfor each system.
Before you change your DNS settings to use Google Public DNS, be sure to writedown the current server addresses or settings on a piece of paper. It is veryimportant that you keep these numbers for backup purposes, in case you need torevert to them at any time.
You can configure Google Public DNS addresses for either IPv4 or IPv6connections, or both. For IPv6-only networks with a NAT64 gateway using the64:ff9b::/96 prefix, you can use Google Public DNS64 instead of GooglePublic DNS IPv6 addresses, providing connectivity to IPv4-only services withoutany other configuration.
Because the instructions differ between different versions/releases of eachoperating system, we only give one version as an example. If you need specificinstructions for your operating system/version, please consult your vendor'sdocumentation. You may also find answers on our user group page.
Many systems let you to specify multiple DNS servers, to be contacted inpriority order. In the following instructions, we provide steps to specify onlythe Google Public DNS servers as the primary and secondary servers, to ensurethat your setup correctly uses Google Public DNS in all cases.
Select Use the following DNS server addresses. If there are any IPaddresses listed in the Preferred DNS server or Alternate DNSserver, write them down for future reference.
For more information see the Android blog post announcing the feature.Please note that in Android P, the default mode for Private DNS is "Automatic"which means it uses the network specified DNS server and it attempts a TLSconnection to port 853 before falling back to UDP on port 53.
Devices running versions older than Android 9 do not support DNS-over-TLS andcannot configure private DNS for all networks. You can configure DNS for eachindividual Wi-Fi network you use. This requires configuring all networkinformation manually and is only recommended for advanced users.
DNS servers are typically specified under advanced Wi-Fi settings. However, asevery mobile device uses a different user interface for configuring DNS serversettings, we provide only the generic procedure. For more information,please consult your mobile provider's documentation.
From your browser, enter a hostname URL (such as ). If it resolvescorrectly, quit the browser, load the page again and refresh it for severaltimes to make sure the result is not from a cached web page.
If this works correctly, reload the page with a new opened browser to makesure the page is loaded from scratch. If these tests work (but step 1fails), then there is a problem with your DNS configuration; check the stepsabove to make sure you have configured everything correctly. If these testsdo not work, go to the next step.
If you had not previously configured any customized DNS servers, to switch backto your old settings, in the window in which you specified the Google IPaddresses, select the option to enable obtaining DNS server addressesautomatically, and/or delete the Google IP addresses. This reverts your settingsto using your ISP's default servers.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
The Division I Council voted Tuesday to introduce proposals that would change notification-of-transfer windows for undergraduate students in Division I men's basketball, women's basketball and football from a total of 45 days to 30 days.
d3342ee215