/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

Note: I use the Windows 10 Setup Script 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.

Install WSL

If you do not already have WSL, follow these steps to install. Open Powershell by searching for it in Search and right-clicking for a context menu and clicking “Run as Administrator”. Enter the following command:

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

Additionally, if you want to 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 or through the terminal:

curl.exe -L -o ubuntu.appx https://aka.ms/wsl-ubuntu

Launch Ubuntu.exe from the Start Menu. You’ll be asked to enter a username and password (for sudo stuff).

Install dotfiles

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

git clone https://github.com/samuelramox/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