From 30ea69775593b53d97d8932b540334a55dbc0701 Mon Sep 17 00:00:00 2001 From: Peter Bochmann Date: Mon, 3 Jun 2024 17:39:25 +0200 Subject: [PATCH] initial script and config files --- README.md | 8 ++++++++ conf/etc/sudoers.d/ggs | 2 ++ conf/home/.ssh/authorized_keys | 2 ++ mim.sh | 13 +++++++++++++ 4 files changed, 25 insertions(+) create mode 100644 conf/etc/sudoers.d/ggs create mode 100644 conf/home/.ssh/authorized_keys create mode 100644 mim.sh diff --git a/README.md b/README.md index 23e56ea..9d72d14 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # Config Helper Script This is a set of scripts and config files to make some basic settings for ggs user on a fresh Ubuntu install + +## Usage + +curl is required to download the initial customization script. Start with curl installation: +`sudo apt update && sudo apt install curl -y` + +The user ggs should already exist and have sudo permission. Otherwise create the account first and add him to sudo group. Then login as ggs. After login you may download end execute the customization script by running: +`curl -s https://git.ggs-solutions.eu/GGS/UbuntuConfig/raw/branch/main/mim.sh |/bin/bash` diff --git a/conf/etc/sudoers.d/ggs b/conf/etc/sudoers.d/ggs new file mode 100644 index 0000000..d20fcda --- /dev/null +++ b/conf/etc/sudoers.d/ggs @@ -0,0 +1,2 @@ +# NOPASSWORD sudo for user ggs +ggs ALL=(ALL) NOPASSWD:ALL diff --git a/conf/home/.ssh/authorized_keys b/conf/home/.ssh/authorized_keys new file mode 100644 index 0000000..653da26 --- /dev/null +++ b/conf/home/.ssh/authorized_keys @@ -0,0 +1,2 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEZOTXe5RyPn0pkaGZQWj3YYeP/K6Q9CvDdfmOTswxNj eddsa-key-20230810_PeBo +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM6ipiN1yOx9jOhpKJWmsxu59jiBl33S8h7BSk59N88z eddsa-key-20230828_Noah diff --git a/mim.sh b/mim.sh new file mode 100644 index 0000000..1fa94ab --- /dev/null +++ b/mim.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +cd ~ +echo "Installing required software packages..." + +sudo apt update +sudo apt install git vim + +echo "Download user config files +git clone https://git.ggs-solutions.eu/GGS/UbuntuConfig.git + +echo "Configure ggs user account..." +