Skip to content

Add common dev tools automatically upon install of WSL distro #33

Closed

Description

@WSLUser

Instead of having to manually download packages commonly used by developers every time you install/reinstall a distro for WSL (and thus being forced to create your own scripts), we should add this to the dev-box-setup experience. For instance for the web development we could use wsl.exe apt install build-essentials npm wsl.exe npm install node, etc. Noting of course wsl.exe will launch the default distro, which is the first one installed. Using wslconfig.exe should probably be included as a commented out portion to change the default distro if more than one is installed.

Activity

  1. yodurr commented on May 10, 2018

    @yodurr
    Contributor

    I agree - we're discussing how best to do this as the user creation step in the distro is currently in the way. Changing behavior to creating a default user with blank password may be the best path forward.

  2. WSLUser commented on May 10, 2018

    @WSLUser
    Author

    Changing behavior to creating a default user with blank password may be the best path forward.

    https://github.com/Microsoft/WSL-distrolauncher has what you need in that regard, but how that would work for distros installed from the Store is a different story since that's controlled by the distro maintainer. Perhaps we could automate the user creation process with a password of something like password, make the changes, and removing the account, thus causing a prompt for username to appear.

  3. WSLUser commented on May 10, 2018

    @WSLUser
    Author

    Also since it's relevant to what I said in OP: Build 17666 contains new options from the Release Notes:

    Add –distribution option for wsl.exe to select a specific distro.

    Add –exec option for wsl.exe to invoke a single binary without a shell.

    This makes my wslconfig conjecture a bit moot for the next stable release. But still will be needed for older version of Windows 10.

  4. yodurr commented on Jun 1, 2018

    @yodurr
    Contributor

    We're talking to the distro maintainers about enabling installation with a default user w/blank password. That seems like the best outcome for scripted install.

  5. WSLUser commented on Jun 1, 2018

    @WSLUser
    Author

    Would such a script then be portable enough to work for non-partner distros? For example, the script may work great for Ubuntu but would users be able to follow the same script for Arch Linux with the only very noticeable change being the name of the installation from saying "Ubuntu" to "Arch Linux" (via UI prompt)?

  6. yodurr commented on Jun 1, 2018

    @yodurr
    Contributor

    I believe so because we'd show how to do it in the distro launcher project. it would be up to the distro to support it using their name of choice.

  7. WSLUser commented on Jun 1, 2018

    @WSLUser
    Author

    That should be enough in theory. Just trying co-relate the other issue I made for automating installation of side-loaded distros. The user creation script sounds directly tied to that effort. The script will eventually need to be tied in for automation but with the current install mechanism, documentating it would be sufficient.

  8. yodurr commented on Jun 1, 2018

    @yodurr
    Contributor

    we'll make sure to document it.
    Tara Raj (@tara-raj) FYI

  9. yodurr commented on Aug 29, 2018

    @yodurr
    Contributor

    Check out #68
    It's coming :)

  10. yodurr commented on Aug 30, 2018

    @yodurr
    Contributor

    Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions