Skip to content

Gorlenah/StartJavaGameProject-CLI-W10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

StartJavaGameProject-CLI-W10

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

  1. Download & install Font:

    • DejaVu Sans Mono for Powerline.ttf - LINK
  2. Install Bash on Ubuntu on Windows (BUW)

    • Open Windows PowerShell as Administrator by pressing WINDOWS + X and 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
  3. Install Java on (BUW)

    • sudo apt update
    • sudo add-apt-repository ppa:linuxuprising/java
    • sudo apt -y install oracle-java14-installer
      Source
  4. Now you can run your jar on BUW

    • cd path/to/jar/
    • java -jar fileName.jar
  5. You can Run also on Windows Terminal:

    • 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

About

instruction to start POLIMI Project on W10 with WSL & Windows Terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published