From b7cec3a0704c4ba2d773542502bf24df7fb505ec Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Mon, 30 Sep 2019 14:47:48 +0200 Subject: [PATCH] Implemented multiple changes --- .gitignore | 1 + .travis | 12 +++++++++++ README.md | 33 +++++++++++++++++++++++++++++- scripts/decrypt-data.sh | 0 scripts/encrypt-data.sh | 0 scripts/export-data-to-system.sh | 0 scripts/import-data-from-system.sh | 0 init.sh => scripts/system-setup.sh | 11 ++++++++-- 8 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 .travis create mode 100644 scripts/decrypt-data.sh create mode 100644 scripts/encrypt-data.sh create mode 100644 scripts/export-data-to-system.sh create mode 100644 scripts/import-data-from-system.sh rename init.sh => scripts/system-setup.sh (78%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8fce603 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data/ diff --git a/.travis b/.travis new file mode 100644 index 0000000..e85bbfe --- /dev/null +++ b/.travis @@ -0,0 +1,12 @@ +sudo: required + +services: +- docker + +arch: + script: + - "./scripts/system-setup.sh" + +script: +- shellcheck ./administration/*.sh +- "curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash" diff --git a/README.md b/README.md index e036d56..af96a6f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,37 @@ # Core System [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](./LICENSE.txt) + This repository contains scripts to set up an working client system, maintain it and to save the data on an USB stick. -It's adapted to the needs of Kevin Veen-Birkenbach. +It's adapted to the needs of Kevin Veen-Birkenbach aka. Frantz. +## Requirements +This script is optimized for a [Manjaro Linux](https://manjaro.org) with [GNOME desktop](https://www.gnome.org/?). +Specific system requirements are described in the [.travis file](./.travis). + +## Functions +### System Setup +To setup the customized software on a system you have to execute: +```bash +bash ./scripts/system-setup.sh +``` +### Import Data +To import configuration files from the system you have to execute: +```bash +bash ./scripts/import-data-from-system.sh +``` +### Export Data +To export configuration files to the system you have to execute: +```bash +bash ./scripts/export-data-to-system.sh +``` +### Decrypt Data +To decrypt the data you have to execute: +```bash +bash ./scripts/decrypt-data.sh +``` +### Encrypt Data +To encrypt the data you have to execute: +```bash +bash ./scripts/encrypt-data.sh +``` ## License The ["GNU GENERAL PUBLIC LICENSE Version 3"](./LICENSE.txt) applies to this project. diff --git a/scripts/decrypt-data.sh b/scripts/decrypt-data.sh new file mode 100644 index 0000000..e69de29 diff --git a/scripts/encrypt-data.sh b/scripts/encrypt-data.sh new file mode 100644 index 0000000..e69de29 diff --git a/scripts/export-data-to-system.sh b/scripts/export-data-to-system.sh new file mode 100644 index 0000000..e69de29 diff --git a/scripts/import-data-from-system.sh b/scripts/import-data-from-system.sh new file mode 100644 index 0000000..e69de29 diff --git a/init.sh b/scripts/system-setup.sh similarity index 78% rename from init.sh rename to scripts/system-setup.sh index 95f5e60..240032c 100644 --- a/init.sh +++ b/scripts/system-setup.sh @@ -8,6 +8,11 @@ echo "Synchronizing programing languages..." sudo pacman --needed -S jdk11-openjdk python php echo "Synchronizing administration tools..." sudo pacman --needed -S htop tree git base-devel yay make gcc cmake +echo "Synchronizing gui tools..." +sudo pacman --needed -S gnome-shell-extensions +echo "Install NASA picture of the day GNOME extension..." +git clone https://github.com/Elinvention/gnome-shell-extension-nasa-apod.git $HOME/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh +gnome-shell-extension-tool -e nasa_apod@elinvention.ovh echo "Synchronizing office tools..." sudo pacman --needed -S chromium gimp echo "Synchronizing communication tools..." @@ -44,9 +49,11 @@ sudo pacman --needed -S docker echo "Synchronizing orchestration tools..." sudo pacman --needed -S ansible echo "Add current user($USER) to user group docker..." -usermod -a -G docker $USER +sudo usermod -a -G docker $USER +echo "Enable docker service..." +sudo systemctl enable docker --now echo "Synchronizing games..." sudo pacman --needed -S 0ad warzone2100 -#yay pacman --needed -S emulationstation +yay -S emulationstation echo "More game recomendations you will find here: https://wiki.archlinux.org/index.php/List_of_games..." echo "More software recomendations you will find here: https://wiki.archlinux.org/index.php/list_of_applications"