Яндекс.Метрика
qr-код - Как-то так стрелка - Как-то так
Leading Economist + ... пиктограмма - Как-то Так THIS     Economic literacy and web solutions
All on the topic: what, how and why. Actual things - in their own words.
Turn your quality WITH ME - BUTW !
If you don't like what you get, change what you give. © Carlos Castaneda     KAKTOTAK.BY - economic design and web development services (php/js - telegram, WordPress, Laravel, Vue, SEO)    Cooperation - on an ongoing basis    Be in the topic   -    SUBSCRIBE      My notes are ECONOMICS +  и  WEB Developer's Guide | php+js+seo   в Telegram   telegram  

Linux Terminal + VS CODE or how to integrate the Linux operating system into Windows 10

Linux Terminal + VS CODE or how to integrate the Linux operating system into Windows 10

It's no secret to any of the developers that Linux is the preferred programming environment. And one of the main reasons is its full-fledged terminal, which has a large set of console utilities and ways of interacting between them, with which you can do many useful things, in comparison with the same, for many beloved, Windows.

Hence the "question" follows ? - Is there such an opportunity to develop web applications based on Linux, but working on Windows, and even with the ability to configure its terminal / console in such a popular code editor (IDE) as Visual Studio Code.

Yes, you can.

Since relatively recently, Microsoft developers, in order not to lose their competitive advantage over Linux, have implemented into their Windows 10 (x64) operating system the Linux kernel image WSL2 (version 4.19), which is a lightweight virtual machine that does not need to be installed to run a full-fledged the role of Hyper-V (virtualization technology based on a low-level shell). Linux system calls are translated on the fly into Windows calls without using an emulator (unlike WSL1).

A simple step-by-step algorithm for how to install the Linux subsystem on Windows 10 and configure its console to work through the VSCode terminal:

Enabling WSL in Windows 10 (x64)

Linux terminal + VS CODE or how to embed Linux operating system in Windows 10 - 1

Linux terminal + VS CODE or how to embed the Linux operating system in Windows 10 - 2

Linux terminal + VS CODE or how to embed Linux operating system in Windows 10 - 3

Next, you need to install WSL2 (a new version of the Windows subsystem architecture for Linux that supports the Windows subsystem for Linux to run Linux ELF64 binaries on Windows).

After installation, reboot the system.

Next, you need to open Powershell as an administrator (PS>Start-Process powershell-Verb runAs) and run the following command to set WSL2 by default:

wsl --set-default-version 2

Linux terminal + VS CODE or how to embed Linux operating system in Windows 10 - 4

Linux terminal + VS CODE or how to embed Linux operating system in Windows 10 - 5

Installing the Ubuntu distribution on Windows

Let's install the latest version of Ubuntu (currently 22.04.2 TSL)

Ubuntu is GNU/Linux distribution based on Debian GNU/Linux.

Go to the Microsoft Store and enter Ubuntu in the search bar (it's free).

Linux terminal + VS CODE or how to embed Linux operating system in Windows 10 - 6

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 7

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 8

Next, we get it (get) and run it (open).

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 9

The installation window will appear (you need to wait).

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 10

After installation, you will need to register: enter your name (any name) and password (the password is entered without displaying the typed line, keep in mind, and it must be remembered for subsequent work in the console).

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 11

We are not closing this console.

Linking the Linux console to the VS CODE terminal

Before this procedure, the WSL extension must be installed in VS CODE.

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 12

Next, enter the command into the Ubuntu 22.04.2 console:

code .

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 13

and press Enter.

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 14

The Linux console will be integrated into the VS CODE working interface, where you can already use its native terminal to access the Linux system via the command line.

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 15

Linux terminal+ VS CODE or how to embed the Linux operating system in Windows 10 - 16

Now you can install all the necessary packages on Linux and fully work with it, thereby preserving the functionality of Windows for your other tasks.

автор - Михаленко Р.
M R. Автор - kaktotak.by Specialization: financial and economic design - modeling of business, investment projects of the real sector, analysis and evaluation of efficiency, optimization of the management decision system.

A wide range of web-based competencies for solving business problems.

Subscribe to my telegram channel - My notes are ECONOMICS +
Там я ничего не втюхиваю и не навязываю. Просто делюсь полезной информацией по экономической грамотности. Повышайте своё качество вместе со мной: что, как и почему в экономике на простом языке. Понятия, алгоритмы, процессы, микро- и макроаспекты и многое другое. Может, будет интересно !

And also - WEB Developer's Guide | php+js+seo
Notes and native solutions to simple local tasks in PHP, JS. Something about Laravel, WordPress, Vue and SEO.

  Personal assistance in economic design and web development:

  • Financial and economic modeling, analysis, accounting, business planning
  • Comprehensive web development/project support on the web (php/js, seo – Laravel, WordPress, Vue, telegram, administration, content, advertising in Yandex Direct

  telegram или форма обратной связи

Administrator
453
0
Name
E-mail
Rating
Review

Currency Converter
RUB RUB-icon
USD USD-icon
EUR EUR-icon
CNY CNY-icon
BYN BYN-icon
UAH UAH-icon
KZT KZT-icon
SHORT- what is it about
ECONOMIC LITERACY
  Simple online solutions to problems of economics and finance  
I Want To Know Everything. Useful Tips