Windows 10: Broke WSL by changing default shell

Discus and support Broke WSL by changing default shell in Windows 10 Software and Apps to solve the problem; I tried changing the default shell to ZSH using this command -> sudo usermod -s /usr/bin/zsh $whoamiand now I'm getting ->[process exited with code... Discussion in 'Windows 10 Software and Apps' started by mferino, Oct 20, 2021.

  1. mferino Win User

    Broke WSL by changing default shell


    I tried changing the default shell to ZSH using this command -> sudo usermod -s /usr/bin/zsh $whoamiand now I'm getting ->[process exited with code 1]I'm assuming I need to modify something in my /etc/passwd file in wsl but not sure. Any help would be greatly appreciated as I don't want to reinstall WSL. Thanks!

    :)
     
    mferino, Oct 20, 2021
    #1

  2. WSL

    Version 2 of WSL uses a new lightweight utility virtual machine capability. To enable the lightweight virtual machine and WSL, you need to enable two Windows features: Virtual Machine Platform and Windows Subsystem for Linux.

    To enable these features via the user interface (UI), press the Windows key and enter Windows Features, then click on Turn Windows features on or off.
    When the Windows Features dialog appears, check the boxes for Virtual Machine Platform and Windows Subsystem for Linux.




    If you want to make version 2 the default for any Linux distros you install then run the following command:


    Code:
    Now you can install Linux distro from Microsoft Store it will be running version 2 of WSL.

    A distro can be converted between versions of WSL after installation. To achieve this, you use the wsl --set-version command.

    This command takes two arguments:

    • The name of the distro to update
    • The version to convert it to

    An example of converting the Ubuntu distro to version 2 is shown here:

    Code:
    Execute wsl --list --verbose versions of WSL installed distro.
     
    FreeBooter, Oct 20, 2021
    #2
  3. Wsl shell always shows an error message on the daily inform.

    Hi,



    Thank you for writing to Microsoft Community Forums.



    I understand you receive WSL shell on your PC. However, we do have a dedicated forum where you should be able to find support for your query. Let me help you in pointing towards the right direction, I would suggest you to pot your query on
    TechNet forums, where we have support professionals with expertise to assist
    you with your query.



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, Oct 20, 2021
    #3
  4. bsan Win User

    Broke WSL by changing default shell

    size of mouse cursor changing from Windows 10 to WSL bash shell

    Hi,

    I am using WSL Linux Ubuntu bash shell for my work in Windows 10 Pro. I have noticed that the size of the mouse cursor (that is normal in Windows 10 browser) getting reduced in any documents opened from WSL Linux bash shell.

    Can anyone please help me to sove this issue.

    Thanks in advance.
     
Thema:

Broke WSL by changing default shell

Loading...
  1. Broke WSL by changing default shell - Similar Threads - Broke WSL changing

  2. I changed the the exe file default value as well as the default values of shell and shellex...

    in Windows 10 Customization
    I changed the the exe file default value as well as the default values of shell and shellex...: I changed the the exe file default value as well as the default values of shell and shellex in the HKEY_CLASSES_ROOT from Registry Editor by mistake... Now I am not able to open any exe file.. When i open any exe file it gives the error "No such interface supported"... I...
  3. I changed the the exe file default value as well as the default values of shell and shellex...

    in Windows 10 Gaming
    I changed the the exe file default value as well as the default values of shell and shellex...: I changed the the exe file default value as well as the default values of shell and shellex in the HKEY_CLASSES_ROOT from Registry Editor by mistake... Now I am not able to open any exe file.. When i open any exe file it gives the error "No such interface supported"... I...
  4. I changed the the exe file default value as well as the default values of shell and shellex...

    in Windows 10 Software and Apps
    I changed the the exe file default value as well as the default values of shell and shellex...: I changed the the exe file default value as well as the default values of shell and shellex in the HKEY_CLASSES_ROOT from Registry Editor by mistake... Now I am not able to open any exe file.. When i open any exe file it gives the error "No such interface supported"... I...
  5. Broke WSL by changing default shell

    in Windows 10 Gaming
    Broke WSL by changing default shell: I tried changing the default shell to ZSH using this command -> sudo usermod -s /usr/bin/zsh $whoamiand now I'm getting ->[process exited with code 1]I'm assuming I need to modify something in my /etc/passwd file in wsl but not sure. Any help would be greatly appreciated as I...
  6. Default Display for WSL console Ubuntu

    in Windows 10 Customization
    Default Display for WSL console Ubuntu: I have two monitors, but every time I open WSL console Ubuntu in my case it opens on main monitor, not the secondary. All other applications' default monitor can be changed as described here, but not WSL console. Is this a bug or I'm missing something?...
  7. Can no longer change default shell from explorer.exe to custom

    in Windows 10 Customization
    Can no longer change default shell from explorer.exe to custom: I had an old installation of Windows 10(Unsure of exact version, was v 1703 or older) where I replaced the default shell of explorer.exe with my own startup.bat file(which started multiple programs excluding explorer) so it would boot directly into my programs. I accomplished...
  8. Wsl shell always shows an error message on the daily inform.

    in Windows 10 BSOD Crashes and Debugging
    Wsl shell always shows an error message on the daily inform.: /usr/lib/ubuntu-release-upgrader/release-upgrade-motd: 31: cannot create /var/lib/ubuntu-release-upgrader/release-upgrade-available: Permission denied This is what the message shows on wsl once a day. Although it seems to be no harm, I still wonder how can I avoid this. I...
  9. size of mouse cursor changing from Windows 10 to WSL bash shell

    in Windows 10 Customization
    size of mouse cursor changing from Windows 10 to WSL bash shell: Hi, I am using WSL Linux Ubuntu bash shell for my work in Windows 10 Pro. I have noticed that the size of the mouse cursor (that is normal in Windows 10 browser) getting reduced in any documents opened from WSL Linux bash shell. Can anyone please help me to sove this issue....
  10. size of mouse cursor changing from Windows 10 to WSL bash shell

    in Windows 10 Customization
    size of mouse cursor changing from Windows 10 to WSL bash shell: Hi, I am using WSL Linux Ubuntu bash shell for my work in Windows 10 Pro. I have noticed that the size of the mouse cursor (that is normal in Windows 10 browser) getting reduced in any documents opened from WSL Linux bash shell. Can anyone please help me to sove this issue....