This is a simple dotfiles and scripts to setup Windows Subsystem for Linux (WSL) with Debian and Ubuntu based Linux distributions.
Check linked files to more details.
- apps.sh - installs applications.
- dotfiles.sh - installs Oh My Zsh, .zshrc and Git configs.
- npm.sh - Node.js and npm settings.
- setup.sh - main installer.
- ssh.sh - generate SSH.
- user.sh - user data to configuration of Git and SSH.
- utils.sh - support functions for other installers.
- .zshrc - terminal configs with aliases, paths, plugins and theme (this file is permanent after installation).
- Updated Windows 10 or later (recommended is Windows 11)
- WSL 2 with Debian/Ubuntu based
Note: I use the Windows 11 Setup Script script to configure Windows
, 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:
wsl --install
After restarting, 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
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
./setup.sh
Install the Remote - WSL extension in VSCode to get a better experience with WSL
.