Git Product home page Git Product logo

system-setup's Introduction

System Setup

Windows (WSL2)

  1. 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
  2. Once Git is installed, then clone the repo
    mkdir $Env:USERPROFILE\Repos
    git clone https://github.com/aniketgm/system-setup
  3. Now run the powershell script from an elevated terminal (Open As Administrator), inorder to avoid any permission issues.
  4. In a powershell terminal, this can be achieved as follows:
    Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
    & software-install.ps1
  5. This setup file will be responsible for installing necessary softwares and then it will automatically restart the system for the changes to take effect.
  6. Once the system restarts, launch the Windows Terminal and set the default profile of the terminal to Powershell 7.
  7. Relaunch the terminal as Admin again and run the next script:
& post-install-setup.ps1
  1. Now after restart, launch Alacritty, which should launch WSL prompt.
  • If WSL is not launched properly, you might want to check a few things:
    1. If alacritty is launched through shortcut, check the properties and the target config file set in the properties.
    2. 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.

Linux

  • The setup for Linux is similar to that of WSL, with a few more for the actual NonWSL2 setup

Common Setup

  • Assuming the OS is Ubuntu (WSL), 'apt' package manager is considered below.
  • WSL now can be launched from Alacritty.
  1. Install git.
sudo apt install git
  1. 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

WSL2 Config

  • Run the following script that is inside the Linux folder:
    sudo wsl-setup.sh

NonWSL2 Config

  • Run the following script that is inside the Linux folder:
    sudo nonwsl-setup.sh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.