2022年2月25日 星期五

WSL Windows Subsystem for Linux, Docker and Clion

Clion with Docker

https://youtu.be/h69XLiMtCT8


CLion Plugins

GitToolBox


Windows Subsystem for Linux WSL

https://docs.microsoft.com/en-us/windows/wsl/install


Upgrade from WSL 1 to WSL 2

https://pureinfotech.com/upgrade-wsl2-wsl1-windows-10/

Enter username and password (this account is Linux Admin, can sudo ls)

Windows 10 > Start > Ubuntu


Windows Terminal

https://github.com/microsoft/terminal

release page, download Microsoft.WindowsTerminal_1.12.10393.0_8wekyb3d8bbwe.msixbundle

Windows 10 > Start > Terminal > ubuntu

Command Pallatte: CTRL SHIFT P
New tab: CTRL SHIFT T
New pane: ALT SHIFT + or - or D

Settings JSON: SHIFT click "settings"

WSL File Storage

explorer.exe > \\wsl$\Ubuntu\home\ricky


Visual Studio Code

https://docs.microsoft.com/en-us/windows/wsl/tutorials/wsl-vscode

Install "Remote Development" from https://marketplace.visualstudio.com/, so that GUI as client, GIT and files on server

Windows Terminal > Ubuntu:

sudo apt-get update
sudo apt-get install wget ca-certificates
code .

Windows > Start > Visual Studio Code:

CTRL SHIFT P (single hand rightmost) >  wsl (Remote New WSL Windows)


Visual Studio (TBC)

// Visual Studio offers native WSL support for C++ cross-platform development

https://docs.microsoft.com/en-us/cpp/linux/download-install-and-setup-the-linux-development-workload (easy)
https://docs.microsoft.com/en-us/cpp/linux/create-a-new-linux-project (easy)
https://docs.microsoft.com/en-us/cpp/linux/cmake-linux-project (easy)
https://docs.microsoft.com/en-us/cpp/linux/cmake-linux-configure


https://docs.microsoft.com/en-us/cpp/build/walkthrough-build-debug-wsl2?view=msvc-170 (not read yet)


Powershell

C:\Users\ricky\wsl ls -la

wsl ls -la | findstr "git"

dir | wsl grep git

notepad.exe .bashrc


Windows 11 with Ubuntu GUI app (TBC, use gen 6 not gen5)

https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps (not read)


End

沒有留言:

張貼留言

2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...