Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Another route to Gentoo on WSL: sideloading
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
salfter
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2003
Posts: 89

PostPosted: Fri Mar 01, 2019 8:48 pm    Post subject: Another route to Gentoo on WSL: sideloading Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8722
Location: ~Brussels - Belgique

PostPosted: Fri Mar 01, 2019 11:03 pm    Post subject: Reply with quote

Hi!

There is a Gentoo version : https://github.com/wakely/WSL-Gentoo ;)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
sayusi
n00b
n00b


Joined: 10 Aug 2006
Posts: 26
Location: Hungary

PostPosted: Tue Jun 11, 2019 11:53 am    Post subject: Reply with quote

xaviermiller wrote:
Hi!

There is a Gentoo version : https://github.com/wakely/WSL-Gentoo ;)


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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8722
Location: ~Brussels - Belgique

PostPosted: Tue Jun 11, 2019 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
sayusi
n00b
n00b


Joined: 10 Aug 2006
Posts: 26
Location: Hungary

PostPosted: Tue Jun 11, 2019 12:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
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