View previous topic :: View next topic |
Author |
Message |
salfter Tux's lil' helper
Joined: 02 Jan 2003 Posts: 89
|
Posted: Fri Mar 01, 2019 8:48 pm Post subject: Another route to Gentoo on WSL: sideloading |
|
|
A while back, Microsoft put this out:
https://github.com/Microsoft/WSL-DistroLauncher
With some not-insignificant amount of frustration (including needing to roll back one of my computers two or three times with System Restore), I was able to produce a Gentoo package that can be sideloaded on Windows 10:
https://home.alfter.us/s/bdMPE7zsDDg2LmX
If you've not yet installed WSL, you'll need to do that first: open a PowerShell administrator prompt, and enter this (you'll need to reboot afterward):
Code: | Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux |
To install, unpack the zipfile, insert the certificate in your computer's trusted root certificate store (it's a self-signed certificate generated by Visual Studio that I think expires in one year, though I think that should only block installation after that date, at which time the installer can be regenerated), and double-click on the .msix file to install.
The installer contains an AMD64 nomultilib stage3 tarball that was current as of when I built the package. (The only change I made to it was to recompress it with gzip, as WSL-DistroLauncher knows nothing about xzip.) It will unpack the tarball, emerge-webrsync the current Portage tree, emerge sudo, configure sudo to allow the wheel group to use it, and then ask you for a username (doesn't have to be the one you use with Windows) and password. This process will take a fair bit of time, but when it's done, you're then dropped into a bash prompt full of Gentoo goodness.
I'm thinking this might end up as a good replacement for Cygwin.
Since you're sideloading, you'll need to go to Settings -> Update & Security -> For developers and make sure that under "Use developer features," either "Sideload apps" or "Developer mode" is selected before installation. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8718 Location: ~Brussels - Belgique
|
|
Back to top |
|
|
sayusi n00b
Joined: 10 Aug 2006 Posts: 26 Location: Hungary
|
Posted: Tue Jun 11, 2019 11:53 am Post subject: |
|
|
Thanks for your effort putting together this!
Yesterday I tried it out, but, unfortunately, the process doesn't get through the new user creation. When I add a username, it asks again, and no password request, etc... the process you see when an Ubuntu is installed. _________________ - -
-- Csanyi Andras/Sayusi Ando -- http://sayusi.hu -- http://facebook.com/andras.csanyi
-- "Trust in God and keep your gunpowder dry!!" - Cromwell |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8718 Location: ~Brussels - Belgique
|
Posted: Tue Jun 11, 2019 12:26 pm Post subject: |
|
|
Do you have a /home directory in the installation chroot ? if not, create it outside the installation process then continue _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
sayusi n00b
Joined: 10 Aug 2006 Posts: 26 Location: Hungary
|
Posted: Tue Jun 11, 2019 12:51 pm Post subject: |
|
|
xaviermiller wrote: | Do you have a /home directory in the installation chroot ? if not, create it outside the installation process then continue |
If I understand you correctly, then I should check whether there is a /home directory in the directory to where I extract the stage3 tarball (for recompress purposes) and compress it to tar.gz. If there is no /home then it might cause the issue I'm talking about.
I'll give it a try and let you know. _________________ - -
-- Csanyi Andras/Sayusi Ando -- http://sayusi.hu -- http://facebook.com/andras.csanyi
-- "Trust in God and keep your gunpowder dry!!" - Cromwell |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|