Skip to content

Instantly share code, notes, and snippets.

@suhailroushan13
Last active November 20, 2024 07:16
Show Gist options
  • Save suhailroushan13/f38bd555c0cc573596280f65c1638195 to your computer and use it in GitHub Desktop.
Save suhailroushan13/f38bd555c0cc573596280f65c1638195 to your computer and use it in GitHub Desktop.
SetUp for WSL 2
1.Remove Unwanted Softwares / Clean PC
2.Delete Temp Files
3.WSL Install
To install Windows Subsystem for Linux on Windows 10, use these steps:
Linux:-
-Ubuntu
-Fedora
-Kali
// Normal Windows
// Windows Terminal Store
// Terminal Power Shell Admin
Open Start on Windows 10.
Search for Power Shell, and select the Run as administrator option.
Type the following command to install the WSL on Windows 10 and press Enter:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Download this file : https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
wsl --install
wsl --install -d Ubuntu-20.04
wsl --set-default-version 2
wsl --list --verbose
//
username:suhail
password:suhail
//
sudo apt update && sudo apt upgrade
git config --global user.name "yourusername"
git config --global user.email "yourgithubgmail"
ssh-keygen -t ed25519 -C "yourgithubemail"
Enter 3 Times
cd .ssh
cat id_ed25519.pub
Copy the whole file content and paste in
Github.com ==> Settings ==> SSH and GPG Settings ==> Add New SSH Key ==> Add Date in Title and paste Key In Below Box
Install Node.js 20.x Current
sudo apt-get update && sudo apt-get install -y ca-certificates curl gnupg
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update && sudo apt-get install nodejs -y
sudo npm install npm@latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment