KnightTheCoder / Linux-Distro-Post-Install-Scripts

Configure a distro after a fresh install
GNU General Public License v2.0
1 stars 0 forks source link

Post install script for Linux

Supported distros

Tested distros:

Features

Requirements

Motivation

This project's motivation is to quickly setup a system with the same configuration/software across multiple distros. The scripts are meant to be reproducable and allow you to get to using your new system/virtual machine rather than try to replicate your already existing setup. You only need to configure apps and configuration files once when changing the project to suit your own needs and be able to use it afterwards.

Steps the script runs:

Project breakdown

Project structure:

.
├── config
│   ├── firefox
│   │   └── policies.json
│   ├── fish
│   │   ├── config_debian.fish
│   │   └── config.fish
│   └── vscode
│       ├── keybindings.json
│       └── settings.json
├── distros
│   ├── arch
│   │   ├── README.md
│   │   └── setup.sh
│   ├── debian
│   │   ├── README.md
│   │   └── setup.sh
│   ├── fedora
│   │   ├── README.md
│   │   └── setup.sh
│   └── opensuse
│       ├── README.md
│       └── setup.sh
├── LICENSE
├── post_install.sh
├── README.md
└── shared
    ├── setup.fish
    ├── setup.zsh
    └── shared_scripts.sh

Config

Pre-made configuration files, these are meant to be copied and not changed

Distros

Distro specific setups that will execute the specific steps for them: example: using the distro's package manager and approprioate package names, repos

Shared:

Shared scripts between all distro setups, these include shell setup and program specific setups like installing hack nerd fonts, setting up scripts with plugin managers, neovim configurations, flatpaks, etc.

How to run

Stable

Download scripts

wget -O "$(xdg-user-dir DOWNLOAD)/post-install-scripts.zip" "https://github.com/KnightTheCoder/Linux-Distro-Post-Install-Scripts/archive/refs/heads/master.zip"

Navigate and unzip

cd "$(xdg-user-dir DOWNLOAD)" && unzip post-install-scripts.zip && cd Linux-Distro-Post-Install-Scripts-master

Run

bash ./post_install.sh

Experimental

Download scripts

wget -O "$(xdg-user-dir DOWNLOAD)/post-install-scripts.zip" "https://github.com/KnightTheCoder/Linux-Distro-Post-Install-Scripts/archive/refs/heads/maintanence.zip"

Navigate and unzip

cd "$(xdg-user-dir DOWNLOAD)" && unzip post-install-scripts.zip && cd Linux-Distro-Post-Install-Scripts-maintanence

Run

bash ./post_install.sh

To copy the firefox policy

Run with

bash ./post_install.sh --copy-firefox-policy