Instructions to start POLIMI Project on W10 with WSL & Windows Terminal
Main Guide: Tutor Bertoni Guide
This guide was inspired by the tutor's guide
-
- DejaVu Sans Mono for Powerline.ttf - LINK
-
- Open Windows PowerShell as Administrator by pressing
WINDOWS + Xand then selecting the correct voice - Enable the "Windows subsystem for Linux" by running
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux - Reboot when asked
- Install Ubuntu from Microsoft Store
- Launch the application and set username and password
- Open Windows PowerShell as Administrator by pressing
-
sudo apt updatesudo add-apt-repository ppa:linuxuprising/javasudo apt -y install oracle-java14-installer
Source
-
cd path/to/jar/java -jar fileName.jar
-
-
Install Windows Terminal (assets file.msixbundle) or from MS-Store
-
Launch It & go to setting (settings.json appears)
-
Search
"name": "Ubuntu"in"list":(if ubuntu doesn't appear do this steps)-
Find
"list": -
Add at the end of List Array:
{ "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "hidden": false, "name": "Ubuntu", "source": "Windows.Terminal.Wsl", "startingDirectory": "%USERPROFILE%/Desktop" }
-
-
N.B: With
"startingDirectory": "%USERPROFILE%/Desktop"you can choose the default starting directory of BUW -
Set:
"defaultProfile":"{2c4de342-38b7-51cf-b940-2309a097f518}",(with same guid of ubuntu if you want it as default console) -
Set: Defaults Settings to change font, or add
"fontFace"&"fontSize"to your favorite guid
"defaults": { // Put settings here that you want to apply to all profiles. "fontFace": "DejaVu Sans Mono for Powerline", "fontSize": 12 }, -
- N.B: You can copy settings.json present in this repo
- N.B: After launching Windows Terminal, you can press F11 to view the console in full screen