Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ lsb_release -a
- No LSB modules are available.
- Distributor ID: Ubuntu
- Description: Ubuntu 18.04 LTS
- Release: 18.04
- Codename: bionic
- °install https://www.python.org/ftp/python/3.7.1/python-3.7.1.exe
- PS C:\Users\potato\WSL-Distribution-Switcher-master> ls
- Directory: C:\Users\potato\WSL-Distribution-Switcher-master
- Mode LastWriteTime Length Name
- ---- ------------- ------ ----
- d----- 11/5/2018 7:36 AM ntfsea
- -a---- 12/19/2017 7:31 AM 75 .gitignore
- -a---- 12/19/2017 7:31 AM 3216 get-prebuilt.py
- -a---- 12/19/2017 7:31 AM 5208 get-source.py
- -a---- 12/19/2017 7:31 AM 10068 hook_postinstall_all.sample.sh
- -a---- 12/19/2017 7:31 AM 16455 install.py
- -a---- 12/19/2017 7:31 AM 1098 LICENSE.md
- -a---- 12/19/2017 7:31 AM 7442 ntfsea.py
- -a---- 12/19/2017 7:31 AM 13824 ntfsea_x64.dll
- -a---- 12/19/2017 7:31 AM 11264 ntfsea_x86.dll
- -a---- 12/19/2017 7:31 AM 1161 pyinstaller.spec
- -a---- 12/19/2017 7:31 AM 17547 README.md
- -a---- 12/19/2017 7:31 AM 4568 switch.py
- -a---- 12/19/2017 7:31 AM 15026 utils.py
- PS C:\Users\potato\WSL-Distribution-Switcher-master> Set-Alias c -Value cls
- > python .\get-source.py centos
- [*] Fetching official-images info for centos:latest...
- [*] Fetching Dockerfile from repo CentOS/sig-cloud-instance-images/72c01dc74ef482ce318167c5c10646be65ac682e/docker...
- [*] Downloading archive https://raw.githubusercontent.com/CentOS/sig-cloud-instance-images/72c01dc74ef482ce318167c5c10646be65ac682e/docker/centos-7-docker.tar.xz...
- [*] Rootfs archive for centos:latest saved to rootfs_centos_latest.tar.xz.
- > python .\install.py centos
- [*] Probing the Linux subsystem...
- [!] The Linux subsystem is not installed. Please go through the standard installation procedure first.
- > lxrun.exe /install
- Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.
- Distributions can be installed by visiting the Microsoft Store:
- https://aka.ms/wslstore
- This will install Ubuntu on Windows, distributed by Canonical and licensed under its terms available here:
- https://aka.ms/uowterms
- Type "y" to continue: y
- Downloading from the Microsoft Store... 100%
- Extracting filesystem, this will take a few minutes...
- Extracting filesystem, this will take a few minutes...
- Please create a default UNIX user account. The username does not need to match your Windows username.
- For more information visit: https://aka.ms/wslusers
- Enter new UNIX username: n0rbertt
- Enter new UNIX password:
- Retype new UNIX password:
- passwd: password updated successfully
- Installation successful!
- Documentation is available at: https://aka.ms/wsldocs
- > wslconfig /list /all
- Windows Subsystem for Linux Distributions:
- Ubuntu-18.04 (Default)
- Legacy
- > lxrun /setdefaultuser root
- Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.
- Distributions can be installed by visiting the Microsoft Store:
- https://aka.ms/wslstore
- Found UNIX user: root
- Default UNIX user set to: root
- > bash
- Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...
- -bash: mesg: command not found
- # bash
- # cat /etc/redhat-release
- CentOS Linux release 7.5.1804 (Core)
- # yum install sysvinit-tools -y
- https://github.com/RoliSoft/WSL-Distribution-Switcher
- https://github.com/RoliSoft/WSL-Distribution-Switcher/issues/64
- https://puu.sh/BWIP0/c21a1d4ca9.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement