/wsl-setup

WSL Ubuntu Dotfiles

Primary LanguageShellMIT LicenseMIT

WSL Ubuntu Dotfiles

This is a simple dotfiles and scripts to setup Windows Subsystem for Linux (WSL) with Ubuntu.

Features

Check linked files to more details.

Installation files

Settings Files

Prerequisites

  • Windows 10
  • WSL (Windows Subsystem for Linux) with Ubuntu

Installation

See SamuelRamox's Windows 10 Setup Script to configure Windows 10, install some apps and WSL. To use the script, just download and open it with PowerShell. If you use it, skip to step Install dotfiles.

1. Install WSL

If you do not already have WSL, open Powershell as an Administrator and run these commands:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform

Make WSL 2 your default architecture you can do so with this command:

wsl --set-default-version 2

After restarting, install Ubuntu from the Microsoft Store

Launch Ubuntu.exe from the Start menu.

2. Run the Setup Script

If you already have Windows 10 and WSL installed, run these commands in WSL:

git clone https://github.com/stvhwrd/wsl-setup.git
chmod 700 wsl-setup/ -R
cd wsl-setup
./install/setup.sh

Remote - WSL

Install the Remote - WSL extension in VSCode to get a better experience with WSL.

Reference