Open Windows Commandline with administrative privileges, and run the following:
wsl --installThis command activates the features required to run WSL and installs the Ubuntu distribution of Linux
After the installation:
- Open Ubuntu via the menu context
- As UNIX username i recommend your company abbreviation
- Set a secure password
Update your distribution:
sudo apt-get updatesudo apt-get dist-upgradeCreate project folder:
mkdir projectsHide last login time:
touch .hushloginInstall Unzip:
sudo apt-get install unzip zipDownload and install SDKMAN:
curl -s "https://get.sdkman.io" | bashNext, open a new terminal or enter:
source "$HOME/.sdkman/bin/sdkman-init.sh"Install OpenJDK:
sdk install java 17.0.7-msDownload and install NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bashEnter to complete:
source "$HOME/.nvm/nvm.sh"Install Latest Node.js Version:
nvm install --ltsReplace the placerholder below and paste it in your commandline:
git config --global user.name "Max Mustermann"git config --global user.email "Max.Mustermann@CompanyDomain.de"Enter following command in your commandline:
nano .bashrcCopy, paste and save the following lines:
alias update="sudo apt update && sudo apt -y upgrade"
alias build="sh gradlew build"
alias cleanBuild="sh gradlew clean build"Enter following command in your commandline or open a new tab:
source .bashrccp -R /mnt/c/Users/Username/pathFromWindows ~/wishedWSLDestinationRun the command to see the list of available versions:
nvm list-remoteRun the command to install your preferred version:
nvm install xx.x.xRun the command to set your new default:
nvm alias default xx.x.xRun the command to see the list of available versions:
sudo update-alternatives --config javaOpen Windows Commandline with administrative privileges, and run the following:
wsl --update