GithubHelp home page GithubHelp logo

maxptg / automated-user-env Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 42 KB

A collection of config files that automate the process of setting up my custom user env on any debian/ubuntu machine

Shell 78.78% Dockerfile 21.22%

automated-user-env's Introduction

automated-user-env

A simple automation suite to set up a custom user environment on any Debian/Ubuntu machine. It uses Ansible and Bash scripts to install and configure the necessary packages and environment variables.

It is intended to be used on a fresh install of a Debian/Ubuntu machine, but it can be used to update an existing environment as well. That way, you can keep your environment up to date with the latest changes across all your machines.

Prerequisites

In order to use this script, you must have the following packages installed:

sudo apt update
sudo apt install -y sudo git curl

Packages needed by the suite will be installed on the first run of the initial_setup.sh script.

Usage

Clone the repository into your home directory:

git clone https://github.com/MaxPtg/automated-user-env

Navigate to the scripts directory:

cd automated-user-env/scripts

On a fresh install, run the inistal_setup.sh script:

sudo bash initial_setup.sh && source ~/.bashrc

After the initial setup, you can run the update_env.sh script to update your environment:

sudo bash update_env.sh

NOTE: The update_env.sh script will update your environment with the latest changes from the repository. As some environment variables could be changed/removed, it is recommended to restart your terminal session after running the script.

Testing

To easily develop and test this automation suite, you can use the provided Dockerfile to build a container with the necessary dependencies. To speed up the process, you can use the provided build.sh script:

sudo bash build.sh

This script uses DOCKER_BUILDKIT=1 to build the container, which allows for caching of intermediate layers. This way, you can quickly iterate on the development of the automation suite.

NOTE: The required packages are already installed in the container, so you don't need to install them manually.

Known Bugs/ToDo

  • Add support to change the oh-my-bash installation directory
    • If not left on default, manual changes to the .custom.bash* files are needed

automated-user-env's People

Contributors

maxptg avatar

Stargazers

 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.