This repository contains my personal WSL setup for Gentoo distribution.
- Windows 11 with WSL2 enabled
- Gentoo WSL installed
First, update the package database and install required packages:
emerge --sync && emerge curl dev-vcs/git sudo
-
Set root password for administrative tasks:
passwd
-
Configure sudo access for the wheel group:
EDITOR=nano visudo
Uncomment the following line:
%wheel ALL=(ALL) ALL
-
Create a regular user and add to the wheel group:
useradd -m -G wheel kenchan passwd kenchan
-
Configure WSL by creating/editing
/etc/wsl.conf
:nano /etc/wsl.conf
Add the following content:
[boot] systemd=true [user] default=kenchan [network] generateResolvConf=false
-
Restart WSL to apply changes:
# Run this command from Windows PowerShell wsl --shutdown
After WSL restarts, run the following command to start the provisioning process:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/kenchan/wsl-setup/master/install.sh)"