Git Product home page Git Product logo

quicksystemconfigurator's Introduction

Linux System Configurator

Linux System Configurator is a Python script that automates the installation of packages and themes on different Linux distributions based on a JSON configuration file.

Requirements

  • Python 3.x
  • Curl (to download the JSON configuration file)

Usage

  1. Clone the repository:
git clone https://github.com/joshua-cotugno/LinuxSystemConfigurator.git
cd LinuxSystemConfigurator
  1. Run the script, providing the Git repository URL as an argument:
python3 install.py https://github.com/joshua-cotugno/LinuxSystemConfigurator

Configuration

The script uses a JSON configuration file to specify the packages and themes to be installed. The systemConfig.json file is located in the root directory of the repository. The file is organized into two main sections:

  1. Packages: Contains the package installation information, including the package manager, installation method, package names, and alternate installation methods (e.g., snap, flatpak).
  "packages": {
    "requirements": {
      "git": {
        "installation_method": "package-manager",
        "package-name": "git",
        "alternate_installation_methods": {
          "snap": "git",
          "flatpak": "org.gnome.git"
        }
      },
      "code": {
        "installation_method": "script",
        "script": [
          "script in",
          "individual lines"
        ]
      }
    }
  },
  1. Themes: Contains the theme installation information, including the Git repositories and installation scripts for different theme types.
  "themes": {
    "gnome": {
      "main_theme": {
        "git_repo": "https://github.com/a-user/theme.git",
        "installation_script": [
          "cd theme-dir",
          "cp * ~/.themes"
        ]
      },
      "icon_theme": {
        "git_repo": "https://github.com/a-user/icon-theme.git",
        "installation_script": [
          "cd icon-theme-dir",
          "cp * ~/.icons"
        ]
      },
      "other_themes": {
        "Theme Type Name":{
            "git_repo": "https://github.com/a-user/theme.git",
            "installation_script": [
                "./install-theme.sh"
            ]
        }
      }
    },
    "kde":{}
  }
}

Supported Package Managers

The script currently supports the following package managers for different Linux distributions:

  • apt: Debian and Ubuntu-based systems
  • dnf: Fedora, CentOS, and RHEL-based systems
  • pacman: Arch Linux

If your distribution is not explicitly supported, the script will try to use snap and flatpak as alternative package managers if specified in the JSON configuration.

Contribution

Contributions to the project are welcome! If you find a bug or have a suggestion for improvement, please open an issue or submit a pull request.

Disclaimer

Please use this script with caution and review the JSON configuration before running it on your system. The script will install packages and themes as specified in the configuration, which may modify your system's settings. Make sure to have the necessary permissions to run package manager commands with sudo.

License

This project is licensed under the MIT License. See the LICENSE file for details.

quicksystemconfigurator's People

Contributors

jxctn0 avatar

Watchers

 avatar

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.