Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
WSLUser opened this issue May 9, 2018 · 10 comments
Closed

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

WSLUser opened this issue May 9, 2018 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@WSLUser
Copy link

WSLUser commented May 9, 2018

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.

@ferventcoder ferventcoder added the enhancement New feature or request label May 10, 2018
@yodurr
Copy link
Contributor

yodurr commented May 10, 2018

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.

@yodurr yodurr self-assigned this May 10, 2018
@WSLUser
Copy link
Author

WSLUser commented May 10, 2018

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.

@WSLUser
Copy link
Author

WSLUser commented May 10, 2018

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.

@yodurr
Copy link
Contributor

yodurr commented Jun 1, 2018

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.

@WSLUser
Copy link
Author

WSLUser commented Jun 1, 2018

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)?

@yodurr
Copy link
Contributor

yodurr commented Jun 1, 2018

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.

@WSLUser
Copy link
Author

WSLUser commented Jun 1, 2018

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.

@yodurr
Copy link
Contributor

yodurr commented Jun 1, 2018

we'll make sure to document it.
@tara-raj FYI

@yodurr
Copy link
Contributor

yodurr commented Aug 29, 2018

Check out #68
It's coming :)

@yodurr
Copy link
Contributor

yodurr commented Aug 30, 2018

Done!

@yodurr yodurr closed this as completed Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants