Skip to content

kenchan/wsl-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

182 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSL Gentoo Setup

This repository contains my personal WSL setup for Gentoo distribution.

Prerequisites

  • Windows 11 with WSL2 enabled
  • Gentoo WSL installed

Setup Steps

1. Initial System Configuration

First, update the package database and install required packages:

emerge --sync && emerge curl dev-vcs/git sudo

2. User and Security Setup

  1. Set root password for administrative tasks:

    passwd
  2. Configure sudo access for the wheel group:

    EDITOR=nano visudo

    Uncomment the following line:

    %wheel ALL=(ALL) ALL 
  3. Create a regular user and add to the wheel group:

    useradd -m -G wheel kenchan passwd kenchan

3. WSL Configuration

  1. 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
  2. Restart WSL to apply changes:

    # Run this command from Windows PowerShell wsl --shutdown

4. Provisioning

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)"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors