As per Microsoft’s WSL install guide:
Go into
Windows Features
, turn onWindows Subsystem for Linux
and then restart computer
wsl --install
wsl -l --online
wsl --update
wsl --install
wsl --install -d Ubuntu
kumar-wsl
) and passwordsudo apt update && sudo apt upgrade -y
Edit the .bashrc
and paste config contents such as my .bashrc
Install packages: fastfetch, build-essential
sudo add-apt-repository ppa:zhangsongcui3371/fastfetch
sudo apt update
sudo apt install \
wget curl git tmux zip unzip build-essential \
fzf bat jq eza ripgrep zoxide \
htop fastfetch hwinfo
The build-essential
contains a list of packages dependencies that are required to create a Debian package (.deb
) . These packages are libc
, gcc
, g++
, make
, dpkg-dev
etc.
Type exit
to close WSL Ubuntu session
See output of lsblk
to know your distro is mounted at /mnt/wslg/distro
. Your usual local Windows files in C
drive are available at /mnt/c