Setup Windows Subsystem for Linux

Matias Vinberg
Your guide to WSL - from installation to advanced development workflows. Learn how to seamlessly integrate Linux tools with Windows development.

Ubuntu-22.04
user@PC:~$ wsl --install
Installing: Windows Subsystem for Linux
Installing: Ubuntu
βœ“ Installation completed successfully!
user@PC:~$ code .
Opening VS Code in WSL...

Why Choose WSL?

Windows Subsystem for Linux brings the power of Linux to Windows developers, offering the best of both worlds in a single environment.

⚑

Easy Installation

Set up WSL with a single command. Get Ubuntu, Debian, or your favorite Linux distribution running in minutes.

πŸš€

Native Performance

Run Linux binaries natively on Windows with near-native performance. No virtual machine overhead.

πŸ“

File System Integration

Seamlessly access Windows files from Linux and Linux files from Windows. Work across both systems effortlessly.

πŸ› οΈ

Development Tools

Use your favorite Linux development tools, compilers, and utilities alongside Windows applications.

πŸ’»

VS Code Integration

Develop in WSL with full VS Code support. Remote development with IntelliSense, debugging, and extensions.

🐳

Docker & Containers

Run Docker containers natively in WSL2. Perfect for containerized development workflows.

Quick Start Guide

Get up and running with WSL in just a few minutes. Follow these simple steps to transform your Windows development environment.

1

Enable WSL

Open PowerShell as Administrator and run the installation command

This will enable the required features and install Ubuntu by default.

$wsl --install
2

Restart & Setup

Restart your computer and complete the Ubuntu setup

Create your user account and update the system packages.

$sudo apt update && sudo apt upgrade
3

Install Tools

Install your favorite development tools and languages

Get your development environment ready with essential tools.

$sudo apt install git nodejs npm python3 pip
4

VS Code Setup

Install VS Code and the Remote-WSL extension

Open your WSL workspace directly in VS Code for seamless development.

$code .

Supported Technologies

WSL supports a vast ecosystem of tools, languages, and frameworks. Build anything from web applications to machine learning models.

Linux Distributions

🟠

Ubuntu

Most popular choice with excellent package management

πŸ”΄

Debian

Stable and reliable base for many distributions

πŸ”΅

Kali Linux

Perfect for security testing and penetration testing

βšͺ

Alpine

Lightweight and security-oriented distribution

Development Tools

πŸ’™

VS Code

Full-featured IDE with WSL remote development

🟑

Git

Version control that works seamlessly across systems

πŸ‹

Docker

Container platform with native WSL2 integration

🟒

Node.js

JavaScript runtime for modern web development

Programming Languages

🐍

Python

Data science, AI, and web development

πŸ“œ

JavaScript/TypeScript

Web development and modern applications

🐹

Go

Fast, compiled language for system programming

πŸ¦€

Rust

System programming with memory safety

DevOps & Cloud

☸️

Kubernetes

Container orchestration platform

πŸ—οΈ

Terraform

Infrastructure as Code tool

☁️

AWS CLI

Amazon Web Services command line interface

πŸ”·

Azure CLI

Microsoft Azure command line tools

And Much More!

WSL supports virtually any Linux application or tool. If it runs on Linux, it runs on WSL. Explore the endless possibilities of cross-platform development.

VimEmacstmuxzshfishgccmakecmakenginxapache2

Community & Resources

Join the vibrant WSL community. Get help, share knowledge, and stay updated with the latest developments in Windows Subsystem for Linux.

Contribute to This Guide

This WSL guide is a community effort. Help us improve it by contributing tutorials, fixes, or new content. Every contribution makes the WSL ecosystem better for everyone.