WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Install/Access Distro for All Users?

Open Convincible opened this issue 8 years ago • 44 comments

Hi, is it possible to install the Linux distro for all users on the machine? Currently as it is now a Windows Store app I believe this means it is installing specific to the user account, presumably in the User directory?

I jump between a couple of user accounts on my machine but need to access Ubuntu/bash from all of these and essentially it needs to be the same Linux system I am accessing. Is there a way to do this?

Thanks.

Convincible avatar Feb 25 '18 11:02 Convincible

@Convincible - unfortunately there is currently no way to do this. Each distro is per-user.

benhillis avatar Feb 26 '18 16:02 benhillis

'Tis what I feared! Any chance of a way around this now or in future?

Convincible avatar Feb 26 '18 16:02 Convincible

Nothing currently planned but never say never. Probably a good request for our user voice. Closing since question has been answered.

benhillis avatar Feb 26 '18 17:02 benhillis

This a pretty drastic shortcoming!

RichardBronosky avatar Jul 26 '18 19:07 RichardBronosky

Any updates regarding this you know about @benhillis ? We thought about copy-on-login workaround.

littlehill avatar Aug 21 '18 11:08 littlehill

Now that WSL is present on servers too, not being able to install it for all users makes it almost useless IMO. Any chance to have something like shared/default distro in the future?

bielawb avatar Dec 05 '18 10:12 bielawb

I have an interesting scenario: As a dev/devops I would like to use WSL commands from my build scripts on a Server 2019 running my build agent as NetworkService.

It is quite disappointing that a build script mixing Powershell, cmd and bash works on a Win10 client but not on a build server.

giuliov avatar Feb 13 '19 12:02 giuliov

WSL is an incredibly important improvement that has been long overdue. But not being able to install and manage it globally in a multi-user environment is extremely frustating. I desperately need a scenario where i can activate WSL for all users of a single machine, but optimally also be the only admin for that distro (all users just beeing normal users without root-access).

jvollme avatar May 10 '19 15:05 jvollme

Please don't do what @Biswa96 is suggesting...

benhillis avatar May 13 '19 21:05 benhillis

I badly need this! :(

tareqtms avatar Jun 27 '19 12:06 tareqtms

@giuliov have you found a way to do this? I have the exact same scenario. One way that i figured out, is to run the agent manually via run.cmd and not as a service.

Pbasnal avatar Sep 30 '19 05:09 Pbasnal

@Pbasnal I think there is a way, but not something I would recommend: you need a well know user and launch the step(s) as that user. This will not work on a hosted agent scenario, only if you run agents on your hosts. I do not recommend as you have to manage credentials, issues with process logging and termination and so on. I commented on this issue because the only solid solution can come from Product group.

If you have a mixed shell script scenario, explore using MinGW on Windows or Powershell Core on Linux. It is a sounder path with less headaches. It will have limitation (missing commands and modules) but is currently the best choice.

giuliov avatar Sep 30 '19 06:09 giuliov

Concur. Trying to use WSL as part of a TeamCity build step, which runs as a specific non-login user. Annoying to have to reinstall a separate instance from the store.

kristjanvalur avatar Nov 06 '19 17:11 kristjanvalur

Badly need this feature. My use case is I need to install WSL ubuntu on a server where several operations users logon to provide app support. A shared installation is what is needed, since i) costly on diskspace and time to have each support user install their own instance ii) custom built support scripts have to be copied/linked locally & sourced each time ... Dissapointing :(

zanfilip avatar Apr 28 '20 16:04 zanfilip

+1

k1nger avatar May 04 '20 15:05 k1nger

+1 as well

IPetrik avatar May 10 '20 03:05 IPetrik

+1 as well

Ayush6849 avatar May 26 '20 05:05 Ayush6849

Doesn't seem to be a solution here, so:

+1

maxtimbo avatar Jun 04 '20 17:06 maxtimbo

+1 as well

chriszuercher avatar Jun 08 '20 11:06 chriszuercher

I have solved a similar problem in a VDI environment, although I'm not sure it would be exactly as OP describes it regarding accessing the same virtual Linux kernel.

Anyway, I used the "LxRunOffline" utility (its on github) to install the distros on the Administrator account, and then once a new user logs in and a profile is generated, a script runs that registers the already installed Linux distros into WSL. No Windows Store needed.

Works just fine for my case, but again I'm not sure about OP's exact scenario.

v1sper avatar Jun 17 '20 16:06 v1sper