WSL(Window Subsystem for Linux) is a virtual machine platform that makes running a Linux application on the window OS possible.
Installation
Before installation, let's check out the minimum specification first the operating system must be window 10 / 64bit or more. You can check this on the 'system information'.
In the search bar open the 'powershell' application
Run this command to install wsl
wsl --install
When the installation is done, restart your computer. Go the the search bar again. By default, 'Ubuntu' comes with it. Open the 'Ubuntu' teminal.
You have to create a user first. Type in a username
Then enter the password (Don't panic! It is natural, it won't show what you are typing so be mindful).
Check the Version
Now, let's check the version to verify the installation. Run the command below in the Powershell or CLI
wsl -l -v
Password Reset
Have you forgot your password? I have got you covered! run this command in the Powershell or CLI
wsl -u root
passwd <username>
Then you can reset the password
Setting Up Development Environment
visual studio code installation
Visual Studio Code - Code Editing. Redefined
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
code.visualstudio.com
After installing the VS Code, go to the extension menu and add this extention
Remote development
※ If the package is too much, you can just add the neccessary extension for working with the application. WSL extension enables us to access Window subsystem folders through the VS Code terminal.
wsl
Well, we are done! That was not too hard right?
References
Install WSL
Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.
learn.microsoft.com
Set up a WSL development environment | Microsoft Learn
Set up a WSL development environment
Set up a WSL development environment using best practices from this set-by-step guide. Learn how to run Ubuntu, Visual Studio Code or Visual Studio, Git, Windows Credential Manager, MongoDB, MySQL, Docker remote containers and more.
learn.microsoft.com
Get started using VS Code with WSL | Microsoft Learn
Get started using VS Code with WSL
Learn how to set up VS Code to author and debug code using the Windows Subsystem for Linux.
learn.microsoft.com
Remote Development - Visual Studio Marketplace
Remote Development - Visual Studio Marketplace
Extension for Visual Studio Code - An extension pack that lets you open any folder in a container, on a remote machine, or in WSL and take advantage of VS Code's full feature set.
marketplace.visualstudio.com
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl
WSL - Visual Studio Marketplace
Extension for Visual Studio Code - Open any folder in the Windows Subsystem for Linux (WSL) and take advantage of Visual Studio Code's full feature set.
marketplace.visualstudio.com
'Backend' 카테고리의 다른 글
Docker - Installation (0) | 2023.03.25 |
---|---|
Internet Computer (Web 3) application (0) | 2023.03.07 |
Web 3 Application Deployment with Cycles Faucet (3) | 2023.03.04 |