WSL #10953

Closed
opened 2026-01-31 02:34:37 +00:00 by claunia · 14 comments
Owner

Originally created by @yezz123 on GitHub (Oct 8, 2020).

  • Bug

My configuration :

Operating System: Windows 10 Pro 64-bit (10.0, Build 19041) (19041.vb_release.191206-1406)
System Manufacturer: Hewlett-Packard
Processor: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz (4 CPUs), ~2.3GHz
Memory: 16384MB RAM
DirectX Version: DirectX 12

After Getting Debian 10.5 and install it .
I add it to my list Setting.json and when i save it and restart my Windows Terminal nothing work i re-open the Setting file and the information that i add they was removed
If there is an update or a special configuration for Debian Tell me
Screenshot 2020-10-08 153423

Screenshot 2020-10-08 153401

Originally created by @yezz123 on GitHub (Oct 8, 2020). - [X] Bug My configuration : ``` Operating System: Windows 10 Pro 64-bit (10.0, Build 19041) (19041.vb_release.191206-1406) System Manufacturer: Hewlett-Packard Processor: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz (4 CPUs), ~2.3GHz Memory: 16384MB RAM DirectX Version: DirectX 12 ``` After Getting [Debian 10.5](https://www.microsoft.com/store/productId/9MSVKQC78PK6) and install it . I add it to my list `Setting.json` and when i save it and restart my `Windows Terminal` nothing work i re-open the Setting file and the information that i add they was removed If there is an update or a special configuration for Debian Tell me ![Screenshot 2020-10-08 153423](https://user-images.githubusercontent.com/52716203/95474582-2f0ee780-097d-11eb-894b-5a555626d2c4.png) ![Screenshot 2020-10-08 153401](https://user-images.githubusercontent.com/52716203/95474124-ac862800-097c-11eb-8ea8-f44d4330ab93.png)
claunia added the Needs-TriageNeeds-Tag-FixResolution-No-ReproNeeds-Attention labels 2026-01-31 02:34:37 +00:00
Author
Owner

@DHowett commented on GitHub (Oct 8, 2020):

You must launch Debian once from the start menu to register it with the operating system.
Does that help?

@DHowett commented on GitHub (Oct 8, 2020): You must launch Debian once from the start menu to register it with the operating system. Does that help?
Author
Owner

@yezz123 commented on GitHub (Oct 8, 2020):

I launch it and i take the guid then i put it with all information as a list like the powershell and cmd and nothing work .

@yezz123 commented on GitHub (Oct 8, 2020): I launch it and i take the ` guid ` then i put it with all information as a list like the `powershell` and `cmd `and nothing work .
Author
Owner

@DHowett commented on GitHub (Oct 8, 2020):

After you launch Debian, launch Terminal. Send a copy of your settings.json.

@DHowett commented on GitHub (Oct 8, 2020): After you launch Debian, launch Terminal. Send a copy of your settings.json.
Author
Owner

@yezz123 commented on GitHub (Oct 9, 2020):

// This file was initially generated by Windows Terminal 1.0.1811.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.

// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
    "$schema": "https://aka.ms/terminal-profiles-schema",

    "defaultProfile": "{XXXXXXXXXXXXXXX}",

    // You can add more global application settings here.
    // To learn more about global settings, visit https://aka.ms/terminal-global-settings

    // If enabled, selections are automatically copied to your clipboard.
    "copyOnSelect": false,

    // If enabled, formatted data is also copied to your clipboard
    "copyFormatting": false,

    // A profile specifies a command to execute paired with information about how it should look and feel.
    // Each one of them will appear in the 'New Tab' dropdown,
    //   and can be invoked from the commandline with `wt.exe -p xxx`
    // To learn more about profiles, visit https://aka.ms/terminal-profile-settings
    "profiles":
    {
        "defaults":
        {
            // Put settings here that you want to apply to all profiles.
        },
        "list":
        [
            {
                // Make changes here to the powershell.exe profile.
                "guid": "{XXXXXXXXXXXXXXX}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
                "hidden": false
            },
            {
                // Make changes here to the cmd.exe profile.
                "guid": "{XXXXXXXXXXXXXXX}",
                "name": "Command Prompt",
                "commandline": "cmd.exe",
                "hidden": false
            },
            {
                "guid": "{XXXXXXXXXXXXXXX}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            },
        ]
    },

    // Add custom color schemes to this array.
    // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
    "schemes": [],

    // Add custom keybindings to this array.
    // To unbind a key combination from your defaults.json, set the command to "unbound".
    // To learn more about keybindings, visit https://aka.ms/terminal-keybindings
    "keybindings":
    [
        // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
        // These two lines additionally bind them to Ctrl+C and Ctrl+V.
        // To learn more about selection, visit https://aka.ms/terminal-selection
        { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
        { "command": "paste", "keys": "ctrl+v" },

        // Press Ctrl+Shift+F to open the search box
        { "command": "find", "keys": "ctrl+shift+f" },

        // Press Alt+Shift+D to open a new pane.
        // - "split": "auto" makes this pane open in the direction that provides the most surface area.
        // - "splitMode": "duplicate" makes the new pane use the focused pane's profile.
        // To learn more about panes, visit https://aka.ms/terminal-panes
        { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
    ]
}

Screenshot 2020-10-09 004103

@yezz123 commented on GitHub (Oct 9, 2020): ``` // This file was initially generated by Windows Terminal 1.0.1811.0 // It should still be usable in newer versions, but newer versions might have additional // settings, help text, or changes that you will not see unless you clear this file // and let us generate a new one for you. // To view the default settings, hold "alt" while clicking on the "Settings" button. // For documentation on these settings, see: https://aka.ms/terminal-documentation { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{XXXXXXXXXXXXXXX}", // You can add more global application settings here. // To learn more about global settings, visit https://aka.ms/terminal-global-settings // If enabled, selections are automatically copied to your clipboard. "copyOnSelect": false, // If enabled, formatted data is also copied to your clipboard "copyFormatting": false, // A profile specifies a command to execute paired with information about how it should look and feel. // Each one of them will appear in the 'New Tab' dropdown, // and can be invoked from the commandline with `wt.exe -p xxx` // To learn more about profiles, visit https://aka.ms/terminal-profile-settings "profiles": { "defaults": { // Put settings here that you want to apply to all profiles. }, "list": [ { // Make changes here to the powershell.exe profile. "guid": "{XXXXXXXXXXXXXXX}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false }, { // Make changes here to the cmd.exe profile. "guid": "{XXXXXXXXXXXXXXX}", "name": "Command Prompt", "commandline": "cmd.exe", "hidden": false }, { "guid": "{XXXXXXXXXXXXXXX}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" }, ] }, // Add custom color schemes to this array. // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes "schemes": [], // Add custom keybindings to this array. // To unbind a key combination from your defaults.json, set the command to "unbound". // To learn more about keybindings, visit https://aka.ms/terminal-keybindings "keybindings": [ // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. // These two lines additionally bind them to Ctrl+C and Ctrl+V. // To learn more about selection, visit https://aka.ms/terminal-selection { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" }, { "command": "paste", "keys": "ctrl+v" }, // Press Ctrl+Shift+F to open the search box { "command": "find", "keys": "ctrl+shift+f" }, // Press Alt+Shift+D to open a new pane. // - "split": "auto" makes this pane open in the direction that provides the most surface area. // - "splitMode": "duplicate" makes the new pane use the focused pane's profile. // To learn more about panes, visit https://aka.ms/terminal-panes { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" } ] } ``` ![Screenshot 2020-10-09 004103](https://user-images.githubusercontent.com/52716203/95524114-5b038a80-09c8-11eb-8084-d2c0af67fb29.png)
Author
Owner

@yezz123 commented on GitHub (Oct 9, 2020):

And when i add the Guid that i take it from registry and the name and the launcher and save the file and restart the Windows Terminal nothing work

@yezz123 commented on GitHub (Oct 9, 2020): And when i add the Guid that i take it from registry and the name and the launcher and save the file and restart the `Windows Terminal` nothing work
Author
Owner

@DHowett commented on GitHub (Oct 9, 2020):

If you run wsl.exe -v -l, what do you see?

@DHowett commented on GitHub (Oct 9, 2020): If you run `wsl.exe -v -l`, what do you see?
Author
Owner

@yezz123 commented on GitHub (Oct 9, 2020):

Usage: wsl.exe [Argument] [Options...] [CommandLine]

Arguments for running Linux binaries:

    If no command line is provided, wsl.exe launches the default shell.

    --exec, -e <CommandLine>
        Execute the specified command without using the default Linux shell.

    --
        Pass the remaining command line as is.

Options:
    --distribution, -d <Distro>
        Run the specified distribution.

    --user, -u <UserName>
        Run as the specified user.

Arguments for managing Windows Subsystem for Linux:

    --export <Distro> <FileName>
        Exports the distribution to a tar file.
        The filename can be - for standard output.

    --import <Distro> <InstallLocation> <FileName> [Options]
        Imports the specified tar file as a new distribution.
        The filename can be - for standard input.

        Options:
            --version <Version>
                Specifies the version to use for the new distribution.

    --list, -l [Options]
        Lists distributions.

        Options:
            --all
                List all distributions, including distributions that are currently
                being installed or uninstalled.

            --running
                List only distributions that are currently running.

            --quiet, -q
                Only show distribution names.

            --verbose, -v
                Show detailed information about all distributions.

    --set-default, -s <Distro>
        Sets the distribution as the default.

    --set-default-version <Version>
        Changes the default install version for new distributions.

    --set-version <Distro> <Version>
        Changes the version of the specified distribution.

    --shutdown
        Immediately terminates all running distributions and the WSL 2 lightweight utility virtual machine.

    --terminate, -t <Distro>
        Terminates the specified distribution.

    --unregister <Distro>
        Unregisters the distribution.

    --help
        Display usage information.
@yezz123 commented on GitHub (Oct 9, 2020): ``` Usage: wsl.exe [Argument] [Options...] [CommandLine] Arguments for running Linux binaries: If no command line is provided, wsl.exe launches the default shell. --exec, -e <CommandLine> Execute the specified command without using the default Linux shell. -- Pass the remaining command line as is. Options: --distribution, -d <Distro> Run the specified distribution. --user, -u <UserName> Run as the specified user. Arguments for managing Windows Subsystem for Linux: --export <Distro> <FileName> Exports the distribution to a tar file. The filename can be - for standard output. --import <Distro> <InstallLocation> <FileName> [Options] Imports the specified tar file as a new distribution. The filename can be - for standard input. Options: --version <Version> Specifies the version to use for the new distribution. --list, -l [Options] Lists distributions. Options: --all List all distributions, including distributions that are currently being installed or uninstalled. --running List only distributions that are currently running. --quiet, -q Only show distribution names. --verbose, -v Show detailed information about all distributions. --set-default, -s <Distro> Sets the distribution as the default. --set-default-version <Version> Changes the default install version for new distributions. --set-version <Distro> <Version> Changes the version of the specified distribution. --shutdown Immediately terminates all running distributions and the WSL 2 lightweight utility virtual machine. --terminate, -t <Distro> Terminates the specified distribution. --unregister <Distro> Unregisters the distribution. --help Display usage information. ```
Author
Owner

@DHowett commented on GitHub (Oct 9, 2020):

I apologize. I meant to say wsl -l -v. ☹️

@DHowett commented on GitHub (Oct 9, 2020): I apologize. I meant to say `wsl -l -v`. ☹️
Author
Owner

@yezz123 commented on GitHub (Oct 9, 2020):

 NAME      STATE           VERSION
* Debian    Stopped         2
@yezz123 commented on GitHub (Oct 9, 2020): ``` NAME STATE VERSION * Debian Stopped 2 ```
Author
Owner

@DHowett commented on GitHub (Oct 9, 2020):

This is very strange. Windows Terminal should automatically detect this. It runs the code to detect WSL every time it is launched.

@DHowett commented on GitHub (Oct 9, 2020): This is very strange. Windows Terminal should automatically detect this. It runs the code to detect WSL every time it is launched.
Author
Owner

@yezz123 commented on GitHub (Oct 9, 2020):

Yeah is weird But i will try in other computer with the same windows version i will install Windows terminal and turn all features That WSL need on and then install Debian if hee work i will told you that the Problem is from my laptop if not will send you here all screen and also a video with all what i do.
Thank you ! 🙏

@yezz123 commented on GitHub (Oct 9, 2020): Yeah is weird But i will try in other computer with the same windows version i will install `Windows terminal` and turn all features That `WSL `need on and then install `Debian` if hee work i will told you that the Problem is from my laptop if not will send you here all screen and also a video with all what i do. Thank you ! 🙏
Author
Owner

@yezz123 commented on GitHub (Oct 9, 2020):

  • Bug Fixed

After using a Desktop computer with this configuration :

- Intel Core i7-8700K  3.7 GHz (4.7 GHz Max Turbo)

- NVIDIA GeForce GTX 1080 8GB

- Windows 10 Home 64-bit

- Memory: 16384MB RAM

and Turn on those services :

  • Hyper-V with (Hyper-V Management & Hyper-V Platform)

  • Virtual Machine Platform

  • Windows Subsystem for linux

And then restart the computer and install windows terminal and Debian and when i install it and launch it for the first time from the Debian icon its work and then i find it on my Windows terminal Also i use the same Microsoft account.

Screenshot 2020-10-09 110443
Screenshot 2020-10-09 110510

So i guess i will try with the laptop by reinstall Windows or Re-install Windows and then i will do the same Steps.
Thank you for helping 🙏

@yezz123 commented on GitHub (Oct 9, 2020): - [X] Bug Fixed After using a Desktop computer with this configuration : ``` - Intel Core i7-8700K 3.7 GHz (4.7 GHz Max Turbo) - NVIDIA GeForce GTX 1080 8GB - Windows 10 Home 64-bit - Memory: 16384MB RAM ``` and Turn on those services : - [X] Hyper-V with (Hyper-V Management & Hyper-V Platform) - [X] Virtual Machine Platform - [x] Windows Subsystem for linux And then restart the computer and install windows terminal and Debian and when i install it and launch it for the first time from the Debian icon its work and then i find it on my `Windows terminal ` Also i use the same Microsoft account. ![Screenshot 2020-10-09 110443](https://user-images.githubusercontent.com/52716203/95570831-659d3e80-0a1f-11eb-8d71-08d7d9964f78.png) ![Screenshot 2020-10-09 110510](https://user-images.githubusercontent.com/52716203/95570836-66ce6b80-0a1f-11eb-9e7f-6d44e31d4147.png) So i guess i will try with the laptop by reinstall Windows or Re-install Windows and then i will do the same Steps. Thank you for helping 🙏
Author
Owner

@yezz123 commented on GitHub (Oct 9, 2020):

Screenshot 2020-10-09 111118

In the Laptop i have Windows Pro edition but in the desktop the Home edition

@yezz123 commented on GitHub (Oct 9, 2020): ![Screenshot 2020-10-09 111118](https://user-images.githubusercontent.com/52716203/95571342-2c190300-0a20-11eb-820f-08c6fdd9ff33.png) In the Laptop i have Windows `Pro edition` but in the desktop the `Home edition`
Author
Owner

@zadjii-msft commented on GitHub (Oct 9, 2020):

Weird that this seemed to just not work on one laptop. Glad you got it figured out!

(P.S. The guids aren't sensitive info - I can tell you for a fact that the powershell, cmd, and azure GUIDs you have are "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", and "{b453ae62-4e3d-5e58-b989-0a998ec441b8}" (respectively), since those are static values 😄)

@zadjii-msft commented on GitHub (Oct 9, 2020): Weird that this seemed to just not work on one laptop. Glad you got it figured out! (P.S. The `guid`s aren't sensitive info - I can tell you for a fact that the powershell, cmd, and azure GUIDs you have are `"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}"`, `"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}"`, and `"{b453ae62-4e3d-5e58-b989-0a998ec441b8}"` (respectively), since those are static values 😄)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10953