Giter Site home page Giter Site logo

centwsl's People

Contributors

pkostelnik avatar yuk7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

centwsl's Issues

Can't uninstall or reinstall Centos7

I have Windows 10 Pro Version 2004 (OS Build 19041.450)

  1. I downloaded CentOS 7.6 1907 zip file to C:\users\myuser\Download and followed the installation instructions.

  2. I removed the folder without cleaning it.

  3. I then tried to clean it in Powershell using
    ./CentOS.exe clean

I got this error message

./CentOS.exe : The term './CentOS.exe' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • ./CentOS.exe clean
  •   + CategoryInfo          : ObjectNotFound: (./CentOS.exe:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    
  1. I re-downloaded the zip file to C:\centos7

  2. I unzipped and executed again but it doesn't run. It seems it is looking for the deleted folder

  3. Now I'm not able to clean or re-install. How can I resolve this please

Cannot get CentOS back after uninstalling

I have tried to follow the directions for a clean uninstall but I keep getting the error message to make sure to reinstall, if it even starts at all. Most recently when I click the .exe it just shows a fast console open and close. Please help me correct this. I am running Windows Server 2019. It all crashed when I unsuccessfully tried to install and use GNOME desktop and Graphical User Interface Groups with this distro. Please and thank you!

WSL and CentOS 6

Has anyone gotten CentOS 6 to work with WSL? I've a feeling it won't.

how to upgrade to new version

I have install some soft on old version instance , I want to upgrade to new version and keep there softs in new version instance

Error: 0x80070005 before installation

Hi there,

Windows 10 1909, OS Build 17763.504

1- When I launch CentOS.exe, I get the following error:

Installing...
ERROR:Installation Failed!
HRESULT:0x80070005
Press any key to continue...

2- Do you plan to release the source code of the CentOS.exe ?

Bye

CentOS 6?

Can you make one for Centos 6 please? Or if anyone can provide me with instructions on how to do so. Thanks!

Clean install Centos 8 release => yum / dnf issue

after installing i could login with no password, so I tried changing it, but passwd did not appear to be installed. Tried installing it:

dnf install passwd
Last metadata expiration check: 0:00:59 ago on Mon 13 Apr 2020 05:24:57 PM CEST.
Dependencies resolved.
========================================================================================================================
 Package                    Architecture              Version                           Repository                 Size
========================================================================================================================
Installing:
 passwd                     x86_64                    0.80-2.el8                        BaseOS                    114 k
Installing dependencies:
 libuser                    x86_64                    0.62-23.el8                       BaseOS                    417 k

Transaction Summary
========================================================================================================================
Install  2 Packages

Total size: 531 k
Installed size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] libuser-0.62-23.el8.x86_64.rpm: Already downloaded
[SKIPPED] passwd-0.80-2.el8.x86_64.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
RPM: error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
RPM: error: cannot open Packages index using db5 -  (-30969)
RPM: error: cannot open Packages database in /var/lib/rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Could not run transaction.

Yum update fails

When I install and start CentWSL, I then generally do a yum update. However this then fails due to verion problems between glibc-common i686 and x86_64.

I assume this happens for everyone, as at this point it's the basic instance of CentOS? Any idea how to resolve it?

Protected multilib versions: glibc-2.17-260.el7_6.6.x86_64 != glibc-2.17-260.el7_6.5.i686

P.S. Thanks for creating this - it's been a huge boon. Also, I previously set this up a few months ago without any issue - but now it doesn't matter if I use the latest release, or the one I used last time - both error.

This does not work - What is this? how does it work?

I downloaded the .zip, I see CentOS.exe, now what?

If I double click CentOS.exe, I get the following:

c:\os\wsl\centos_wsl>.\CentOS.exe
Installation directory not found: .
Make sure it exists or reinstall.
Press any key to continue...

same when I run from the command line.

Is there a .tar anywhere for CentOS7 that will work if I do: cmd>wsl --import ?

I just want CentOS to work under WSL.

Feature request: systemd for CentOS 8 in CentWSL

I'm on WSL2, which supports 'systemd', however, after running CentOS8.exe to install CentOS 8, I found out that there's no systemd.

$ sudo dnf install nginx -y
$ sudo systemctl start nginx
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

May CentWSL (CentOS 8) come with systemd please?

CentOS 8 @ WSL2 2004 - HRESULT:0x8000000d

Hey,

I'm running W10 2004 and here's what I get when trying to run CentOS 8.1:

Installing...
ERROR:Installation Failed!
HRESULT:0x8000000d

Do I need to mandatory run a higher Insider build?

Thank you!

WSL2

How to activate WSL2 on CentWSL? Thanks

Feature request: Could the CentOS 8 in CentWSL download be more complete?

I'm on Windows 10 v2004 (build 19041), recently updated from Microsoft.

I find the installation from CentOS7.exe rather complete, with everything ready, however, the installation from CentOS8.exe is missing a lot of stuff.

CentOS7.zip == 350MB
CentOS8.zip == 70MB

Even 'passwd' is not useable, I had to install this package to use 'passwd':
sudo dnf install cracklib-dicts -y

Also CentOS8.zip doesn't come with libs for GUI apps on virtual X display, so I had to install these too:
sudo dnf install mesa-libGL -y
sudo dnf install mesa-dri-drivers -y

Possibly, CentOS8.zip could be complete like CentOS7.zip?

--default-user

I'm running CentOS.exe config --default-user someuser to set the default user to "someuser".

It doesn't show any output (but if I replace "someuser" with a user that doesn't exist, I get an error).

When I run CentOS.exe, it still just defaults to "root" instead of "someuser".

Am I doing something wrong?

edit: fixed typo in command

how to install in non-admin user?

In some reason i had to use wsl in non-admin user.
Then i got HRESULT:0x80070005. So how can i install this distro correctly??
Thanks for reading.

Unatended registration: how to avoid hitting any key to continue...

Hello and Thank you for CentWSL !

I like automating everything and especially my laptop installation.
Here is the output when I register CentOS7 by calling the first time CentOS7.exe without parameter the first time:

PS C:\CentOS7> .\CentOS7.exe
Installing...
Installation Complete!
Press any key to continue...

Is it possible to avoid the "Press any key to continue..." so that I can automate the registration ?

ERROR:Installation Failed! HRESULT:0x80070569

I get the same error when trying to install either the latest CentOS 7 or 8. I am on the latest Insider Preview edition of Windows, and have tried both versions as myself and running as Administrator.

Installing...
ERROR:Installation Failed!
HRESULT:0x80070569
Press any key to continue...

How to use backup.tar.gz file ?

How to restore backup.tar.gz file ?

I have try to rename backup file to rootfs.tar.gz and it work, is this the right way to use it ?

Access denied when running after installing

Not sure I got it well, but after installation, when I try to start the same launcher, I get an "access denied" error. Am I doing something wrong and should I start it another way ? Thanks !

how to re-register wsl?

hi, i reinstall my os, but i forget to backup the wsl, so how i re-register wsl, i don't wannt to reinstall it.
thanks!

[Question] Updating

I've been using this WSL distro and I'm really fan!
But I have a few questions about this. If there is any mailing list, feel free to close it and point it to me.

  1. I see new releases, but what is being updated? CentOS? .exe file?
  2. I usually update my distro (in this case with yum). Should I also update the whole package when here it is a new version?

Thanks.

How to create CentOS8.2.zip?

What would I need to download, and what steps would I need to follow to recreate the CentOS8.zip that is downloadable here, except do this with the newest release of CentOS 8.2?

I want to run CentOS 8.2 under WSL,

thank you for the instructions.

CentOS7.exe backup >> not working

C:\CentOS7>CentOS7.exe backup
Running backup Script.
If a password is requested, please enter the root password.

tar: Cowardly refusing to create an empty archive
Try tar --help' or tar --usage' for more information.
bash: line 1: --exclude: command not found
bash: line 2: --exclude: command not found

How can I fix it?

Do not know how to enter centos system

I already finish bellow steps , and it shows me the installation is completed successfully

  1. Download installer zip
  2. Extract all files in zip file to same directory
    3.Run CentOS.exe to Extract rootfs and Register to WSL

If I install ubuntu or kali linux from Microsoft store , I can launch them by click on the lunch button , but here , after the installation of centos , I don't how to launch it.

Sorry for stupid, I am not a programmer , just a normal user.

Virus alert while installing

I'm sure Microsoft antivirus alert is a false positive, but I though it was anyway important to report this. While installing, Microsoft AV flagged as sever threat both

.\CentOS7\rootfs\usr\bin\dbus-daemon

and

.\CentOS7\rootfs\usr\bin\systemctl

as affected by Trojan:Win64/Longage.

Thanks

Where it installed?

Hi,green hand in linux and already met a dozen of problem,cuz it is based on the same PC, want to copy directly ,but i couldn't find where it installed,thx a lot !谢谢

ERROR:Installation Failed! HRESULT:0x80370102

Not able to install after updating to wsl2.
running windows build 19041.207
1st Attempt - Only enabled WSL & Virtual Machine Platform = Failed
2nd Attempt - Enabled Hypervisor and Tools = Failed

Checked Event Viewer - error with database format feature version?
What can do to get this resolved?

error_wsl
eventviewer_wsl_error

Can not set default user

After installing I tried to set default-user but got an error

PS C:\Users\i_skiridomov\Downloads\CentOS7> .\CentOS7.exe config --default-uid 1000
PS C:\Users\i_skiridomov\Downloads\CentOS7> .\CentOS7.exe config --default-user i_skiridomov
ERROR
HRESULT:0x80004005
Press any key to continue...
PS C:\Users\i_skiridomov\Downloads\CentOS7>

connect mysql error

mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL server on 'localhost:3306'

I use the eth0 ip of wsl2 , it works.

but another ubuntu mysql instance support 'localhost' connect

dose it can use xshell to connect?

like WSL ubuntu,I can use xshell to connect it。but now,i set the CentWSL in the same way like WSL Ubuntu,but I still can not connect it with xshell... the command line replay: Failed to get D-Bus connection: Operation not permitted

WLS2 Docker

Anyone have succefully run Docker with CentOS in WLS2?
I get error related to d-bus/systemctl

After I have try:
Try https://github.com/gdraheim/docker-systemctl-replacement

And this kind of error :
-bash-4.2# docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

Error 'HRESULT:0x80070002' unregistering

Today I tested this awesome way of using new distros for WSL.
I installed (registered) it, with a custom name.
Executed the following command

yum -y update; \
        yum -y groupinstall 'Development Tools' && \
        yum -y install \
                kernel-devel \
                ImageMagick-devel \
                bzip2-devel \
                libcurl \
                libcurl-devel \
                libevent-devel \
                libffi-devel \
                glib2-devel \
                libjpeg-devel \
                mysql-devel \
                postgresql-devel \
                ncurses-devel \
                readline \
                readline-devel \
                sqlite-devel \
                openssl \
                openssl-devel \
                libxml2-devel \
                libxslt-devel \
                zlib-devel \
                libyaml-devel

(which spent a lot of time)
Installed more packages, yum clean all, executed some commands and exited.

Then whe I tried to clean (unregister) the distro, I got this output

This will remove this distro (<>) from the filesystem.
Are you sure you would like to proceed? (This cannot be undone)
Type "y" to continue:y
Unregistering...
ERROR
HRESULT:0x80070002
Press any key to continue...

Maybe is related to #1, and I don't know where to get more logs to share with you.
wslconfig /l does not shows this distro as registered.
But the rootfs folder was still there. I could not delete but after restart it was not anymore.
Thanks!

Upgrade

Hi
Please could you advice how to upgrade a WSL 1 instance into your WSL 2?

Restore procedure

Hi,
I need to migrate my installation from one laptop to another. I have made backup.tar.gz on the old laptop using CentOS7.exe, moved it together with CentOS7.exe to the new laptop... and what next?

Trying to launch just CentOS7.exe results in error:

C:\CentOS>CentOS.exe
Installing...
ERROR:Installation Failed!
HRESULT:0x80070005
Press any key to continue...

I tried downloading Launcher.exe - same issue.
I have re-downloaded the whole distribution and it installed successfully. After manually unpacking backup.tar.gz and replacing rootfs folder, I get this:

C:\CentOS>CentOS7.exe
Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...
The specified network name is no longer available.

Could you please write a bit about restore procedure? In the README maybe. I think it would be helpful.

cleaning up

Hi,

This is how I messed it up :

1- installed successfully
2- deleted the whole installation directory just manually!
3- trying to clean it and it doesn't work.

wondering how to clean it up or re-install. It says:

.\CentOS.exe
Installing...
ERROR:Installation Failed!
HRESULT:0x80070005

OS Windows 10 Enterprise
Version 10.0.17134 Build 17134

Getting error when setting the default user

C:\Users\zmumin\Documents\WSLDistro\CentOS>centos.exe config --default-user zmumin
ERROR
HRESULT:0x80004005
Press any key to continue...

Kindly help!
I am running command prompt in administrator mode.

Unable to access windows file system

I am accessing /mnt/c/Users/myUserName in centos, there are no files in this path, in fact there are files in windows, why doesn't it show up, how can I copy the files in windows to wsl centos?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.