githubEdit

Windows (WSL Ubuntu)

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

Windows has become an excellent choice for sandbox development with the addition of Windows Subsystem for Linuxarrow-up-right (WSL). You can run complete Linux environments directly on Windows. Visual Studio Codearrow-up-right (VS Code), a code editor of choice for many folks, also supports Remote WSLarrow-up-right. 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

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 WSL manual installation steps for older versionsarrow-up-right.

Install

Windows Subsystem for Linux (Ubuntu)

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

circle-info

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

windows-terminal-icon.png Windows Terminal

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

circle-info

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:

Later in the Ubuntu setup, we will install Powerlevel10karrow-up-right, a theme for Zsh that emphasizes speedarrow-up-right, flexibilityarrow-up-right, and out-of-the-box experiencearrow-up-right.

Installation of the following fonts is recommended:

Nerd Fontsarrow-up-right also has some good options. For example, RobotoMonoarrow-up-right is nice.

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

Linux (WSL) Setup (Ubuntu)

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.

Ubuntuchevron-right

vscode-icon.png Visual Studio Code

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

circle-info

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

Install Extensions

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: vs-code-extensions-icon.png

You can browse for extensionsarrow-up-right:

  • The Remote - WSLarrow-up-right 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.

circle-info

After installing this extension, select the open a remote window icon: vs-code-open-remote-window-icon.png 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 Dockerarrow-up-right extension makes building, managing, and deploying containerized applications from Visual Studio Code easy. The GitHub Actionsarrow-up-right extension lets you manage your workflows, view the workflow run history, and helps with authoring workflows.

Settings

Set terminal font family to work with Powerleve10karrow-up-right.

Last updated