How to configure Windows 10 WSL1 that's already installed


  1. Posts : 15
    Windows 10 64 bit
       #1

    How to configure Windows 10 WSL1 that's already installed


    I need to use the Windows Subsystem for Linux. Just for fun I typed bash in a command window, and much to my surprise it started up. It was surprising because I never installed it (or at least don't remember doing so), and docs like the install guide from Microsoft imply that you have to.

    My W10 version (18362.1082) is lower than necessary to run WSL2, so it must be WSL1 (unless it could be something else). Other than that, since I don't remember installing it, I have no idea what flavor or version of Linux is installed. I tried the normal linux command for this purpose, cat /etc/os-release , which replies there is no such file.

    The docs say that the linux admin credentials are independent of the W10 credentials. So I also ran whoami to see if a user had been established and it gave me the same name as for my W10 installation. When I tried to use a sudo command to see if it was the same password too, it said bash: sudo: command not found. So something is amiss.

    How can I determine what is going on here? How can I tell if this unix instance is WSL1, and if so whether it is fully set up and what flavor/version of Linux it's running? Also what the admin password is? Or do I still need to take all the steps in the install guide linked above?

    Update 1

    I found here that I should be able to launch wsl by entering `wsl` on a command line. When I do so it says wsl is not recognized as a command, so I suppose this means wsl1 is not installed. There is some linux installed though, so the question now is whether it's safe to install wsl1 over that or if I need to uninstall the existing first (and if so how to do that).
    Last edited by cormanaz; 14 Sep 2020 at 15:32.
      My Computer


  2. Posts : 42,737
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Just in passing, you might like to be aware of an issue with the latest 2004 update affecting WSL2:
    https://www.windowslatest.com/2020/0...t-found-error/

    (I know you're not runnng 2004).
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:15.
Find Us




Windows 10 Forums