Installing Gentoo Linux on WSL2
Hey all it’s me PastelAbyss and today we will be setting up Gentoo on WSL2! I hope you all enjoy this video and if you did, please like, comment, and subscribe! It would mean a lot! New videos coming soon!
NOTES:
You can actually set core count in .wslconfig under “processors” to the total threads your system has which you can check with task manager. Mine would be 12, so I set that in .wslconfig and changed /etc/portage/make.conf’s MAKEOPTS to “-j12 -l13” to utilize all threads I set in .wslconfig.
Set the working directory of wsl in terminal to %USERPROFILE%, not the setting I put.
Set “generateResolvConf = false” in [network] section of /etc/wsl.conf and “nameserver = 1.1.1.1” in /etc/resolv.conf if you get issues with internet through WSL2.
Set “kernelCommandLine = systemd.firstboot=0” in .wslconfig if you have trouble with systemd not working properly in WSL2.
Useful Links:
Gentoo WSL Wiki Guide –
If you are using WSL1, follow this guide to upgrade to WSL2 –
More info about configuring WSL –
timestamps:
00:00 – Introduction
00:21 – Setting up WSL2
06:28 – Configuring .wslconfig
08:10 – Importing Gentoo Stage 3 into WSL
13:02 – Enter Gentoo WSL System
13:56 – Configure Compile Options
16:10 – Configure Portage
17:57 – Configure binary package host in make.conf
19:43 – Setup CPU flags
20:27 – Setting ACCEPT_LICENSE variable
21:04 – Update world set
22:26 – Update build deps of world set
23:00 – Run emerge depclean
23:42 – Set Timezone and Locale
26:30 – Setting up Sudo and default user
29:02 – Setting a password for user
30:23 – Setting up wsl.conf
35:26 – Setting default init system (systemd)
37:38 – Fixing permission issue
40:51 – Extra Windows Terminal Theming
41:34 – Outro
[ad_2]
source
hi