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

CentOS6.x installed, but i cannot open bash #81

Open
matrix-cm opened this issue Feb 12, 2018 · 2 comments
Open

CentOS6.x installed, but i cannot open bash #81

matrix-cm opened this issue Feb 12, 2018 · 2 comments

Comments

@matrix-cm
Copy link

I installed centos6/centos:6.6/centos:6.7/centos:6.8, but i cannot open bash after installed..
when i install centos7.x ,it works fine.

Does it not support the old version centos?

@bencoman
Copy link

bencoman commented Aug 11, 2018

Same problem. In the process of troubleshooting, did...
C:...> lxrun /uninstall /full
Then installed Ubuntu and Kali from the App Store, then followed these instructions...
http://www.mcubedtech.com/2018/07/running-linux-on-windows.html

C:...> wslconfig /list
Windows Subsystem for Linux Distributions:
Legacy (Default)
kali-linux
Ubuntu

btw...
C:...> winver
Version 1803 (OS Build 17134.165)

C:...> install.py centos:latest
[*] Probing the Linux subsystem...
[*] Default user is root at /root.
[*] Reading /etc/{passwd,shadow,group,gshadow} entries for root...
[*] Beginning extraction...
[*] Backing up current rootfs to ....
[*] Switching to new rootfs...
[*] Writing entries of root to /etc/{passwd,shadow,group,gshadow}...

C:...> bash
Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...
-bash: mesg: command not found
root@BENGINEER:/mnt/c/Apps/WSL-Distribution-Switcher-master# exit

So that worked, it got a bash prompt.
However...
C:...>install.py centos:6.6
[*] Probing the Linux subsystem...
[*] Default user is root at /root.
[*] Reading /etc/{passwd,shadow,group,gshadow} entries for root...
[*] Beginning extraction...
[*] Backing up current rootfs to .....
[*] Switching to new rootfs...
[*] Writing entries of root to /etc/{passwd,shadow,group,gshadow}...

C:\Apps\WSL-Distribution-Switcher-master>bash
Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...
C:\Apps\WSL-Distribution-Switcher-master>

That didn't work. Its still at the cmd.exe prompt. Bash prompt never appeared.

CentOS 6 is the build target for a new gig I'm starting. Would be really great if this worked, otherwise I might have to dig deeper... https://www.brad-x.com/2017/11/05/windows-subsystem-for-linux-installing-arbitrary-distributions/

@bencoman
Copy link

And here is my registry config...

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss{12345678-1234-5678-0123-456789abcdef}]
"State"=dword:00000001
"DistributionName"="Legacy"
"Version"=dword:00000000
"BasePath"="C:\Users\Ben\AppData\Local\lxss"
"DefaultUid"=dword:00000000
"Flags"=dword:00000007
"KernelCommandLine"="BOOT_IMAGE=/kernel init=/init ro"
"DefaultEnvironment"=hex(7):48,00,4f,00,53,00,54,00,54,00,59,00,50,00,45,00,3d,
00,78,00,38,00,36,00,5f,00,36,00,34,00,00,00,4c,00,41,00,4e,00,47,00,3d,00,
65,00,6e,00,5f,00,55,00,53,00,2e,00,55,00,54,00,46,00,2d,00,38,00,00,00,50,
00,41,00,54,00,48,00,3d,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,
61,00,6c,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,
00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,
73,00,72,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,
00,62,00,69,00,6e,00,3a,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,62,00,
69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,00,67,00,61,00,6d,00,65,00,73,
00,3a,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,
67,00,61,00,6d,00,65,00,73,00,00,00,54,00,45,00,52,00,4d,00,3d,00,78,00,74,
00,65,00,72,00,6d,00,2d,00,32,00,35,00,36,00,63,00,6f,00,6c,00,6f,00,72,00,
00,00,00,00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants