osinfra.io (Alpha)
HomeDiscordGitHubSponsor
  • Overview
    • Welcome!
      • Overview
      • Team Norms
      • Language
  • Fundamentals
    • Architecture Decision Records
      • ADR-0001
      • ADR-0002
      • ADR-0003
      • ADR-0004
    • Development Setup
      • Docker
      • GitHub Codespaces
      • Ubuntu
      • Windows (WSL Ubuntu)
    • Tools
      • GitHub
      • Terraform
        • Child Modules
        • Coding Conventions
      • Testing
        • Infracost
        • Checkov
  • Collaboration
    • Contributors
    • Platform Engineers
    • Software Engineers
  • Product Guides
    • Google Cloud Platform
      • Kubernetes
        • Istio
        • cert-manager
        • Gatekeeper
      • Landing Zone
        • Resource Hierarchy and IAM
        • Audit Logging
        • Workload Identity
        • Terraform Backend
        • Networking
        • Services
    • GitHub
      • Organization Management
      • Continuous Delivery Enablement
    • Datadog
      • Organization Management
    • Backstage
Powered by GitBook
On this page
  • Prerequisites
  • Install
  • Windows Subsystem for Linux (Ubuntu)
  • Windows Terminal
  • Linux (WSL) Setup (Ubuntu)
  • Visual Studio Code

Was this helpful?

Edit on GitHub
  1. Fundamentals
  2. Development Setup

Windows (WSL Ubuntu)

Windows with Windows Subsystem for Linux as your Infrastructure as Code (IaC) sandbox development environment.

Last updated 11 days ago

Was this helpful?

Windows has become an excellent choice for sandbox development with the addition of (WSL). You can run complete Linux environments directly on Windows. (VS Code), a code editor of choice for many folks, also supports . This extension lets you use the Windows Subsystem for Linux as your full-time development environment from Visual Studio Code!

The official documentation can be found here:

Prerequisites

Install

Open up a Windows Command Prompt as the administrator run the following command and restart your computer.

wsl --install

You can uninstall the Linux distribution and start fresh by running:

wsl --unregister Ubuntu; wsl --install -d Ubuntu

Install Windows Terminal by searching the Microsoft Store for "Windows Terminal" or use the following download link.

If you'd like to run the Windows Terminal Preview, you should use the following download link.

Set your default profile and default terminal application in the settings:

Installation of the following fonts is recommended:

Set the font in Windows Terminal settings for the desired profile:

With a complete Linux environment on Windows with Windows Subsystem for Linux (WSL). We can access the Linux terminal, develop cross-platform applications, and manage infrastructure without leaving Windows.

Tools Install

To install all the local tools on Ubuntu, please follow the documentation on the following page.

Install Visual Studio Code by searching the Microsoft Store for "Visual Studio Code" or use the following download link.

If you'd like to run the insider build of Visual Studio Code, you should use the following download link.

Install Extensions

Settings

You must run Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11. If you're running an older build or just prefer not to use the install command and would like step-by-step directions, see .

Windows Subsystem for Linux (Ubuntu)

Windows Terminal

Later in the Ubuntu setup, we will install , a theme for Zsh that emphasizes , , and .

also has some good options. For example, is nice.

Linux (WSL) Setup (Ubuntu)

Visual Studio Code

VS Code extensions let you add languages and tools to your installation to support your development workflow. To install extensions, open up Visual Studio Code and select the extension's icon in the sidebar:

You can :

The extension lets you use Visual Studio Code on Windows to build Linux applications that run on the WSL. You get all the productivity of Windows while developing with Linux-based tools, runtimes, and utilities.

After installing this extension, select the open a remote window icon: in the bottom left, choose "New WSL Window" and close the old window. You are now running in Linux and can install the other extensions. You should see "Install in WSL: Ubuntu" or now when installing the extensions that prefer to run in Linux. The extension makes building, managing, and deploying containerized applications from Visual Studio Code easy. The extension lets you manage your workflows, view the workflow run history, and helps with authoring workflows.

The extension for VS Code integrates with Datadog to accelerate your development.

allows you to open any folder or repository inside a Docker container and use Visual Studio Code's full feature set.

The extension makes building, managing, and deploying containerized applications from Visual Studio Code easy.

With the VS Code extension, you can create documentation while you code using your voice.

The extension lets you manage your workflows, view the workflow run history, and helps with authoring workflows.

provides cloud-hosted development environments for any activity - whether a long-term project or a short-term task like reviewing a pull request. You can connect to Codespaces from Visual Studio Code or a browser-based editor that's accessible anywhere.

is a companion extension to that houses preview Chat features.

provides autocomplete-style suggestions from an AI pair programmer as you code. You can receive suggestions from GitHub Copilot either by starting to write the code you want to use or by writing a natural language comment describing what you want the code to do.

The extension allows you to review and manage GitHub pull requests and issues in Visual Studio Code.

The for Visual Studio Code (VS Code) adds syntax highlighting for files.

The extension uses the Terraform Language Server to add syntax highlighting and other editing features to Terraform files.

The extension shows you cost estimates for Terraform right in your editor! Prevent costly infrastructure changes before they get into production.

The extension for developers building applications to run in clusters and for DevOps staff troubleshooting Kubernetes applications.

The extension provides markdown linting and style checking for Visual Studio Code.

The extension provides the ability to develop, test, debug, and analyze policies for the Open Policy Agent project.

The extension provides comprehensive YAML Language support to Visual Studio Code, via the , with built-in Kubernetes syntax support.

Set terminal font family to work with .

WSL manual installation steps for older versions
Windows Terminal
Windows Terminal Preview
Powerlevel10k
speed
flexibility
out-of-the-box experience
MesloLGS NF Regular.ttf
MesloLGS NF Bold.ttf
MesloLGS NF Italic.ttf
MesloLGS NF Bold Italic.ttf
Nerd Fonts
RobotoMono
Ubuntu
Visual Studio Code
Visual Studio Code Insiders
browse for extensions
Remote - WSL
Datadog
Dev Containers
Docker
GitBook
GitHub Actions
GitHub Codespaces
GitHub Copilot Chat
GitHub Copilot
GitHub Copilot
GitHub Pull Requests and Issues
HashiCorp HCL Extension
HCL
HashiCorp Terraform
Infracost
Kubernetes
Markdownlint
Open Policy Agent
YAML
yaml-language-server
Powerleve10k
Windows Subsystem for Linux
Visual Studio Code
Remote WSL
Install Windows Subsystem for Linux
Install Windows Terminal
Install Visual Studio Code
Docker
GitHub Actions