WSL 2 (Windows 11)
• 1 min read
- Syncthing - SyncTrayzor - optional:
https://syncthing.net/downloads/ - Windows store: install WSL 2 + Ubuntu 22.04
- Windows store: install Windows Terminal
- Windows Terminal: Settings - Standardprofil "Ubuntu 22.04"
- Windows Terminal: Settings - Standardmäßige Terminalanwendung "Windows Terminal"
- Windows Terminal - Settings - Beim Starten des Computers starten "Ein" - Save
- start Windows Terminal - Ubuntu 22.04:
$ mkdir '/mnt/c/Users/USER/Default Folder' # replace USER with your username
$ cd '/mnt/c/Users/USER/Default Folder'
# apt update
# apt ugrade
# apt install vim
$ vim burzltag.wsl
i
------------- (Schnipp)
#!/bin/bash
export PAGER='/usr/bin/less -Xr'
cd '/mnt/c/Users/USER/Default Folder'
java -jar CalculateBirthdays-1.0-SNAPSHOT.jar print |mdless
------------ (Schnapp)
ESC
ZZ
$ chmod +x '/mnt/c/Users/USER/Default Folder/burzltag.wsl'
# apt install openjdk-17-jre-headless
# apt install ruby
# gem install mdless
$ vim calculate_birthdays.wsl
i
------------ (Schnipp)
#!/bin/bash
cd '/mnt/c/Users/USER/Default Folder'
java -jar CalculateBirthdays-1.0-SNAPSHOT.jar "$@"
------------- (Schnapp)
ESC
ZZ
$ chmod +x calculate_birthdays.wsl
$ echo "
#burzltag
'/mnt/c/Users/USER/Default Folder/burzltag.wsl'
export PATH=$PATH:/mnt/c/Users/USER/Default\ Folder" >> .bashrc
$ cp '/mnt/c/Users/USER/Downloads/artifacts/target/CalculateBirthdays-1.0-SNAPSHOT.jar' '/mnt/c/Users/USER/Default Folder/'