- First, manually install git. So as to clone this repo and run the installation script.
- Git can be installed using the GitForWindows installer Or through the commandline tool winget. Winget is now available in almost all latest windows installations, (Windows 10 and above)
- So preferable way:
winget install Git.Git
- Once Git is installed, then clone the repo
mkdir $Env:USERPROFILE\Repos git clone https://github.com/aniketgm/system-setup
- Now run the powershell script from an elevated terminal (Open As Administrator), inorder to avoid any permission issues.
- In a powershell terminal, this can be achieved as follows:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser & software-install.ps1
- This setup file will be responsible for installing necessary softwares and then it will automatically restart the system for the changes to take effect.
- Once the system restarts, launch the Windows Terminal and set the default profile of the terminal to Powershell 7.
- Relaunch the terminal as Admin again and run the next script:
& post-install-setup.ps1
- Now after restart, launch Alacritty, which should launch WSL prompt.
- If WSL is not launched properly, you might want to check a few things:
- If alacritty is launched through shortcut, check the properties and the target config file set in the properties.
- Else, check the config file
$Env:APPDATA\alacritty\alacritty.yml
, for any issue in the configuration.
NOTE: The post-install-setup
script is responsible for setting up config files and other softwares. It will again restart the system.
- The setup for Linux is similar to that of WSL, with a few more for the actual NonWSL2 setup
- Assuming the OS is Ubuntu (WSL), 'apt' package manager is considered below.
- WSL now can be launched from Alacritty.
- Install git.
sudo apt install git
- Clone the repo 'aniketgm/system-setup' (OR in WSL2, one can cd into the already cloned repo on Windows FileSystem)
mkdir ~/Repos && cd $_
git clone https://github.com/aniketgm/system-setup
cd system-setup
- Run the following script that is inside the
Linux
folder:sudo wsl-setup.sh
- Run the following script that is inside the
Linux
folder:sudo nonwsl-setup.sh