On Command Prompt call:
$ lxrun /setdefaultuser root
When now starting the bash with
$ bash
the user is root and the password can be changed with
$ passwd
See Troubleshooting.
On Command Prompt call:
$ lxrun /setdefaultuser root
When now starting the bash with
$ bash
the user is root and the password can be changed with
$ passwd
See Troubleshooting.
To list all installed distribution call:
$ python switch.py
To switch between them call:
$ python switch.py image[:tag]
To install a downloaded image call:
$ python install.py image[:tag] | tarball | squashfs
To download a new image call:
$ python get-source.py image[:tag]
A list of images can be found at get-source.py.
A tool to switch between distributions is WSL-Distribution-Switcher.
It needs Pythin 3.0 and comes with tools to download, install and switch distributions.
$ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
$ bash
The installation location is %localappdata%\lxss\
See MSDN.