wiki.getshifting.com

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


wsl
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wsl [2025/07/29 05:29] sjoerdwsl [2025/07/29 05:53] (current) sjoerd
Line 3: Line 3:
 **Summary**: This wiki page shows how to install and configure WSL for use with all sort of DevOps tools like kubernetes, helm, Argo CD and more. \\ **Summary**: This wiki page shows how to install and configure WSL for use with all sort of DevOps tools like kubernetes, helm, Argo CD and more. \\
 **Date**: 28 July 2025 \\ **Date**: 28 July 2025 \\
-{{tag>windows bash azure kubernetes helm argocd}}+{{tag>windows bash azurecli kubernetes helm argocd}}
  
 WSL is the Windows Subsystem for Linux, which allows you to run a Linux distribution alongside your Windows installation. This is particularly useful for DevOps engineers who need to work with tools that are more commonly used in Linux environments. WSL is the Windows Subsystem for Linux, which allows you to run a Linux distribution alongside your Windows installation. This is particularly useful for DevOps engineers who need to work with tools that are more commonly used in Linux environments.
Line 9: Line 9:
 == Installing WSL == == Installing WSL ==
  
-To install WSL, you can simply run the command {{{wsl --install}}} in a PowerShell or Command Prompt window with administrator privileges. This will install the default Linux distribution (usually Ubuntu) and set up WSL 2. This is the preferred version as it provides better performance and compatibility with Linux applications. See the [[https://learn.microsoft.com/en-us/windows/wsl/install |official WSL installation guide]] for more details. The guide below assumes you're using Ubuntu as your WSL distribution. This is the default, but in case you've installed a different distribution, the command to install Ubuntu is: {{{wsl --install -d Ubuntu}}}.+To install WSL, you can simply run the command {{{wsl --install}}} in a PowerShell or Command Prompt window with administrator privileges. This will install the default Linux distribution (usually Ubuntu) and set up WSL 2. This is the preferred version as it provides better performance and compatibility with Linux applications. See the [[https://learn.microsoft.com/en-us/windows/wsl/install |official WSL installation guide]] for more details. The guide below assumes you're using Ubuntu as your WSL distribution. This is the default, but in case you've installed a different distribution, the command to install Ubuntu is: {{{wsl --install -d Ubuntu}}}. After the installation a prompt will tell you to setup a local user account. 
 + 
 +> Note: After installation of WSL a reboot might be required.
  
 I also recommend to install the [[https://learn.microsoft.com/en-us/windows/terminal/install |Windows Terminal from the Microsoft Store]], which provides a better command line experience than the default console. I also recommend to install the [[https://learn.microsoft.com/en-us/windows/terminal/install |Windows Terminal from the Microsoft Store]], which provides a better command line experience than the default console.
Line 29: Line 31:
  
 <WRAP info>Be sure to start Docker Desktop before you start WSL if you plan to use Docker commands.</WRAP> <WRAP info>Be sure to start Docker Desktop before you start WSL if you plan to use Docker commands.</WRAP>
 +
 +=== Azure CLI ===
 +
 +Azure CLI is a cross-platform command-line tool for managing Azure resources with interactive commands or scripts. To install [[https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux |azure cli in WSL]] you can run the following command:
 +
 +<code bash>
 +curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
 +# Verify the installation
 +az version
 +</code>
  
 === Kubectl === === Kubectl ===
wsl.1753766949.txt.gz · Last modified: by sjoerd