- How to Add Ubuntu Tab to Windows Terminal in Windows 10
- Add Ubuntu Tab to Windows Terminal
- Add Custom Tab Icon to Ubuntu Tab in Windows Terminal
- Install windows from ubuntu terminal
- 2. Requirements
- 3. Enable WSL
- 4. Install Ubuntu for Windows 10
- 5. Launch Ubuntu on Windows 10
- First launch
- 6. Getting help
- Ubuntu on WSL
- Deploying WSL at your company?
- Access the Linux terminal on Windows
- Develop cross-platform
- Manage IT infrastructure
- What you never thought was possible on Windows
- Editors
- Servers
- Development
- Shells
- Containers
- Scripting
- Network hardening
- Kubernetes
- Why WSL
- Easy to Use
- Security
- Enterprise support
- Install Ubuntu on Windows Subsystem for Linux (WSL)
- Enable WSL on Windows 10
- Install Ubuntu
- Как работать с Linux используя Windows
- Ubuntu из Microsoft Store
- VirtualBox
How to Add Ubuntu Tab to Windows Terminal in Windows 10
Microsoft recently released a new terminal application called Windows Terminal. The terminal application has a lot of features that the developers have been asking for years. One of those features is that ability to add any console window to a new tab. Let me show you how to add Ubuntu tab to the Windows Terminal.
By default, Windows Terminal comes with PowerShell and Command Prompt tabs. If you want to, you can add any number of other consols to the Windows Terminal. For example, if you are a web developer and need to add a Linux console to Windows Terminal. You can do that by adding a few lines of code in a JSON file.
Note: I assume you’ve already installed the new Windows Terminal app. If not, you can install it from the Microsoft Store.
Add Ubuntu Tab to Windows Terminal
1. Make sure that you’ve installed Ubuntu in Windows 10. If not, you can install Ubuntu in Windows 10 with just a few clicks. Follow that Ubuntu installation guide and come here next.
2. Before you can add Ubuntu tab to Windows Terminal, you need to generate a new GUID (Globally Unique Identifier). This is how Windows Terminal differentiates between different consols. To generate a new GUID, search for Ubuntu in the start menu and open it.
3. In the Ubuntu window, execute the uuidgen command. This will give a unique GUID, copy it. We are going to need that GUID in the coming steps. So, paste it somewhere safe.
A quick tip: Select the GUID with the mouse and right-click to copy.
4. Now, open Windows Terminal by searching for it in the start menu.
5. In the Terminal window, click on the dropdown icon and select “Settings”.
6. The above action will open the profiles.json file in your default code editor. In my case, the default code editor is VS Code. In the editor, scroll down until you see the Profiles array. At the end of the array add , .
7. Next, copy and paste the below code under the , while replacing YOUR_GUID with the actual GUID you got in step 3.
Note: If you’ve installed a specific version of Ubuntu then modify the 5th line in the below code and add the version number too. For example, if you’ve installed Ubuntu 18.04, modify the line as wsl.exe -d Ubuntu-18.04 .
8. Press Ctrl + S to save the JSON file.
9. Now, go back to the Windows Terminal and click on the dropdown menu. You will see the new Ubuntu option.
10. Click on the Ubuntu option and the Ubuntu terminal will open in Windows Terminal.
Add Custom Tab Icon to Ubuntu Tab in Windows Terminal
If you look at the dropdown menu, there is no icon next to the Ubuntu option. That’s because you haven’t added any. The good thing is, you can any image you want as the Ubuntu tab icon.
1. The first thing you need to do is find the icon you want to set. The icon should be in PNG format with transparent background and 32×32 size. You can use this website to find free icons.
2. Once you have the icon, save it somewhere on your hard disk. For instance, I have a dedicated folder in my I drive that hosts all the icons I use for various folders.
3. Now, open the profiles.json file, go to the Ubuntu profile, find the “icon” value and replace the dummy icon path with the actual icon path. In my case, the icon path is “I:/System Icons/ubuntu.png”.
4. Save the file.
That is it. You will see the new icon applied instantly in the Windows Terminal.
It is that simple to add Ubuntu tab to Windows Terminal. If you are facing any problems, comment below and I will try to help as much as possible.
Install windows from ubuntu terminal
Switch language: EN | ES
The wonderful Ubuntu terminal is freely available for Windows 10.
As any Linux user knows, it’s the command line terminal where the magic happens. It’s perfect for file management, development, remote administration and a thousand other tasks.
The Ubuntu terminal for Windows has many of the same features you’ll find using the terminal on Ubuntu:
- Unrivalled breadth of packages, updates and security features
- Bash, Z-Shell, Korn and other shell environments without virtual machines or dual-booting
- Run native tools such as SSH, git, apt and dpkg directly from your Windows computer
- A huge community of friendly, approachable users
Originally authored by Graham Morrison.
2. Requirements
You will need a x86 PC running Windows 10.
Windows 10 needs to be updated to include the Windows 10 Fall Creators update, released October 2017. This update includes the Windows Subsystem for Linux which is needed to run the Ubuntu terminal.
3. Enable WSL
To enable WSL 1 on Windows 10 Fall Creators update and newer run the following in PowerShell as Administrator:
To enable WSL 2 on Windows 10 May 2020 update and newer run the following in PowerShell as Administrator:
and then restart Windows 10.
4. Install Ubuntu for Windows 10
Ubuntu can be installed from the Microsoft Store:
- Use the Start menu to launch the Microsoft Store application or click here.
- Search for Ubuntu and select the first result, ‘Ubuntu’, published by Canonical Group Limited.
- Click on the Install button.
Ubuntu will be downloaded and installed automatically. Progress will be reported within the Microsoft Store application.
5. Launch Ubuntu on Windows 10
Ubuntu can now be launched in the same way as any other Windows 10 application, such as searching for and selecting Ubuntu in the Start menu.
First launch
When launched for the first time, Ubuntu will inform you that it’s ‘Installing’ and you’ll need to wait a few moments.
When complete, you’ll be asked for a username and password specific to your Ubuntu installation. These don’t need to be the same as your Windows 10 credentials. With this step complete, you’ll find yourself at the Ubuntu bash command line.
Congratulations! You have successfully installed and activated the Ubuntu terminal on Windows 10. You now have all the power of the command line at your fingertips.
6. Getting help
If you need some guidance getting started with the Ubuntu terminal, take a look at the community documentation, and if you get stuck, help is always at hand:
Ubuntu on WSL
Install a complete Ubuntu terminal environment in minutes on Windows 10 with Windows Subsystem for Linux (WSL).
Access the Linux terminal on Windows, develop cross-platform applications, and manage IT infrastructure without leaving Windows.
Deploying WSL at your company?
We help companies achieve a seamless integration with their WSL deployments. Contact us to learn more about how we support enterprises on the Windows Subsystem for Linux.
Access the Linux terminal on Windows
In seconds, be able to access the Linux terminal and run Linux applications and workflows on your Windows machine.
Develop cross-platform
Build and debug Linux applications with Windows tools like Visual Studio Code, Visual Studio, and JetBrains IDEs before deploying to the cloud.
Manage IT infrastructure
From the same workstation, manage mixed Linux and Windows infrastructure both on-prem and across public clouds.
What you never thought was possible on Windows
Editors
Run your choice of Linux text editors, including vim, emacs, and nano
Servers
Spin up Node.js, install your dependencies with npm, and start testing your web app
Development
Install compilers and libraries from the Ubuntu repository, maintained by Canonical
Shells
Use your choice of Linux shells, such as bash, zsh and fish
Containers
Work with LXD and Docker containers on Windows
Scripting
Automate Linux and Windows tasks with advanced bash scripting
Network hardening
Leverage Linux security tools to test and harden your network
Crunch big numbers with tools for R and Python
Kubernetes
Build, test, and deploy Kubernetes clusters on Windows
Why WSL
Easy to Use
Ubuntu is intuitive, user-friendly, and offers the flexibility for customizations when operating within WSL.
Security
Achieve the same first-class, out-of-the-box, compliant security that is synonymous with Ubuntu. With long-term support releases, you’ll have five years of security patches and updates.
Enterprise support
Ubuntu is certified on WSL through close collaboration with Microsoft. Enterprise support is provided for Ubuntu from Azure to Windows workstations creating a seamless operating environment.
Install Ubuntu on Windows Subsystem for Linux (WSL)
Enable WSL on Windows 10
Open PowerShell as Administrator:
Type the following command to enable WSL 1:
Type the following command to enable WSL 2:
Restart your computer.
After restarting, download and install the WSL 2 Linux kernel from Microsoft for your device architecture:
- x86_64 for Intel and AMD devices
- arm64 for Snapdragon and other ARM devices
Finally, it is recommended to set WSL 2 as the default WSL environment.
Open PowerShell as Administrator as above and type the following command:
Install Ubuntu
Download Ubuntu for WSL from the Microsoft Store.
Как работать с Linux используя Windows
Инструкция по установке Ubuntu Linux внутри Windows с использованием различных технологий виртуализации.
Содержание
Если вы только начали свой путь разработчика и до сих используете операционную систему семейства Microsoft Windows, то уже наверняка столкнулись с ситуацией, когда ваш инструментарий отличается от того, что установлено у большинства людей из этой профессии. Чаще всего проблемы начинаются при работе в командной строке. Дело в том, что Windows не является POSIX-совместимой операционной системой, поэтому в ней отсутсвует базовый набор прикладных программ, который необходим для разработки.
Этот вопрос можно решить установкой какого-либо из многочисленных дистрибутивов Linux в качестве основной, либо альтернативной операционной системы. Для новичков есть способ проще и быстрее — технологии виртуализации. Об этом и поговорим.
Ubuntu из Microsoft Store
Если вы работаете на Windows версии 10 с архитектурой x64, то можно можно воспользоваться встроенным решением и установить слой совместимости (Windows Subsystem for Linux) на основе Ubuntu Linux через магазин приложений Microsoft Store.
Перед тем как начать, необходимо убедиться, что системные требования соответствуют рекомендованным. Для этого запустите приложение Microsoft Store, введите в графе поиска Ubuntu и перейдите по найденной ссылке. Если ранее Windows не обновлялся, то вероятней всего вы получите соответствующее указание сделать это до начала установки Ubuntu. Если всё OK, то нажимайте на кнопку «Получить» и через несколько минут (в зависимости от скорости интернет соединения) вы получите сигнал об успешной установке приложения.
Первый запуск может вызвать ошибку Error: 0x8007007e и предложение прочитать инструкцию по её решению https://aka.ms/wslinstall. Если хотите сэкономить время, то просто запустите PowerShell (не путать с cmd ) от имени администратора и выполните следующую команду:
После этого компьютер попросит перегрузиться, а потом нужно снова запустить приложение Ubuntu. В случае удачной установки откроется интерпретатор командной строки с предложением ввести имя пользователя и пароль. Выглядеть это будет вот так:
Преимущество такого способа установки позволяют стереть грань между операционными системами и получить доступ ко всему инструментарию Linux ( bash , ssh , git , apt и так далее) из стандартной командной строки Windows не теряя привычное окружение и оставаясь на одном файловом уровне.
Ссылки на официальную документацию:
VirtualBox
Если вы работаете на Windows версии ниже 10 или хотите получить изолированную операционную систему Linux, да ещё и с графическим окружением, то можно воспользоваться сторонним бесплатным программным продуктом под названием VirtualBox.
Инсталлятор Oracle VM VirtualBox для Windows Hosts
Ссылка на скачивание: Download Oracle VM VirtualBox
Образ операционной системы Ubuntu Linux в формате ISO
Ссылка на скачивание: Download Ubuntu Desktop
Для начала необходимо установить и запустить приложение VirtualBox.
Нажимаем кнопку «Создать», выбираем из списка тип операционной системы «Linux», если нет своих предпочтений по дистрибутиву, то выбираем версию «Ubuntu» 32 или 64 битной архитектуры, а название можно ввести любое.
Указываем объём оперативной памяти выделенной под виртуальную систему. Рекомендованный объём составляет 1024 MB.
Указываем объём дискового пространства выделенного под виртуальную систему. Рекомендованный объём составляет 10 GB.
Тип виртуального жёсткого диска можно оставить как есть — VDI (VitrualBox Disk Image).
Формат хранения данных выберите исходя из личных предпочтений. Динамический виртуальный жёсткий диск растёт по мере заполнения, а фиксированный создаётся сразу того размера, который был указан на предыдущем шаге.
Имя и размер файла можно оставить без изменений и сразу нажать на кнопку «Создать».
По завершению у вас будет создана виртуальная машина, но она пока без операционной системы. Для того чтобы её установить, нужно скачать Ubuntu Linux (32-bit или 64-bit, в зависимости от того, что было выбрано на шаге, где мы указывали тип ОС).
Нажатие на кнопку «Запустить» должно привести к появлению диалогового окна с предложением указать путь до скаченного ISO образа. Сделайте этого и нажмите кнопку «Продолжить»
Виртуальная машина автоматически будет выполнять часть процессов, но в некоторых операциях всё же потребуется участие пользователя.
Выберите языковую поддержку в списке слева и нажмите «Установить Ubuntu».
Можно загрузить обновления сразу на этапе установки.
Без особых опасений выбираем пункт «Стереть диск и установить Ubuntu» и двигаемся дальше.
Если вы выбрали русский язык на первом этапе установки, то вам предложат русскую раскладку клавиатуры в качестве дополнительной.
Заполните поля и выберите режим входа в систему.
Далее начнётся процедура разметки диска, переноса файлов, установка обновлений и другие процессы, которые не потребуют прямого участия пользователя.
По завершению виртуальный компьютер перезагрузится и вы попадёте в уже установленную среду Ubuntu Linux.
Но это ещё не всё. Весьма желательно установить так называемые «Дополнения гостевой ОС». Они содержат драйверы и прочие системные файлы, необходимые для наилучшей производительности и обеспечения дополнительных функциональных возможностей между виртуальной и гостевой операционными системами.
Выберите пункт меню «Устройства» программы VitrualBox, подпункт «Подключить образ диска Дополнений гостевой ОС…» и дождитесь предложение запустить приложение для автоматического запуска с виртуального привода.
Виртуальная ОС Ubuntu Linux установлена и готова к работе.
Ссылка на официальную документацию: Oracle VM VirtualBox User Manual