This Proof of Concept (PoC) compiles scripts that assist in the initial configuration of a new Linux server.
Scripts are organized within the scripts
folder. For more details on what each
script does, open the script and review its contents.
This step installs the minimum common dependencies required:
$ ./scripts/install-host-deps.sh
For this PoC, we assume that all commands are run as a specific user: devops
.
Here’s how to create the devops
user with initial configurations:
$ ./scripts/create-devops-user.sh
Switch to the devops
user:
$ su devops
NOTE: Ensure you use the devops
user for all subsequent steps.
While not mandatory, we recommend using the following script for initial Git setup, which includes generating an SSH key for GitHub:
$ ./scripts/config-git.sh
To manage Git repositories on your server effectively, consider installing a
tool that integrates Git with your prompt. This script installs
monty/bash-git-prompt
locally:
$ ./scripts/install-git-prompt.sh
Reload your session to apply changes:
$ source ~/.bashrc
If you need to use Conda or install Python packages, installing Miniforge on your server may be necessary:
$ ./scripts/install-miniforge.sh
Reload your session after installation:
$ source ~/.bashrc
To run Docker on your server, use the following script, which follows Docker’s recommended installation steps, including post-install procedures:
$ ./scripts/install-docker.sh