This is a simple dotfiles and scripts to setup Windows Subsystem for Linux (WSL) with Ubuntu.
Check linked files to more details.
- apps.sh - installs applications.
- dotfiles.sh - install and configure dotfiles.
- npm.sh - install npm packages.
- setup.sh - main installer.
- util.sh - support functions for other installers.
- gitconfig - basic git settings.
- gitignore_global - global gitignore.
- zshrc - terminal configs with aliases, paths, plugins and theme.
- Windows 10
- WSL (Windows Subsystem for Linux) with Ubuntu
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.
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).
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
Install the Remote - WSL extension in VSCode to get a better experience with WSL
.