This repository contains some shell scripts to download and configure linux images and to transfer them to a storage.
Go to file
Kevin Veen-Birkenbach f1349be5c0 Implemented transfering of manjaro isos 2020-05-18 21:01:18 +02:00
.meta Updated screenshot and gnome terminal 2019-10-07 11:36:43 +02:00
configuration/packages Implemented check for local files 2020-05-15 18:37:41 +02:00
scripts Implemented transfering of manjaro isos 2020-05-18 21:01:18 +02:00
templates Implemented screenshot dialog 2019-10-30 11:48:59 +01:00
.gitignore Implemented transfering of manjaro isos 2020-05-18 21:01:18 +02:00
.travis.yml Optimized .travis 2020-05-05 12:22:52 +02:00
LICENSE.txt Initial commit 2019-09-30 13:44:02 +02:00
README.md Implemented transfering of manjaro isos 2020-05-18 21:01:18 +02:00

README.md

Core System

License: GPL v3 Codacy Badge Travis CI

The
  _____                _____           _                 
 / ____|              / ____|         | |                
| |     ___  _ __ ___| (___  _   _ ___| |_ ___ _ __ ___  
| |    / _ \| '__/ _ \\___ \| | | / __| __/ _ \ '_ ` _ \
| |___| (_) | | |  __/____) | |_| \__ \ ||  __/ | | | | |
 \_____\___/|_|  \___|_____/ \__, |___/\__\___|_| |_| |_|
                              __/ |                      
                             |___/                       
is an administration tool designed from and for Kevin Veen-Birkenbach.
Licensed under GNU GENERAL PUBLIC LICENSE Version 3

Todo

  • Implement ssh configuration
  • Implement wifi automation
  • Install client software depentend on hardware
  • Use travis
  • Move repository folder

Description

This repository contains scripts to set up an working client system, maintain it and to save all important and configuration data on an USB stick. The data is stored encrypted with EncFS. It's adapted to the needs of Kevin Veen-Birkenbach. Feel free to clone it and to adapt it to your needs. The goal is to never setup and configure a system manual again, or to care about loosing passwords and important data. Instead the whole process SHOULD be automatized.

Functions

This repository contains the following scripts:

Order Description
bash ./scripts/system-setup.sh Setup the customized software on the system on which you execute it.
bash ./scripts/backup.sh Executes all setup scripts.
bash ./scripts/import-data-from-system.sh Import data from the host system.
bash ./scripts/export-data-to-system.sh Export data to the host system.
bash ./scripts/unlock.sh Unlock the stored data.
bash ./scripts/lock.sh Lock the stored data
bash ./scripts/pull-local-repositories.sh Pulls all local repositories branches
bash ./scripts/pushs-local-repositories.sh Pushs all local repositories branches
encfsctl passwd .encrypted Change the password of the encrypted folder.

System

Client

The client script is optimized for a Manjaro Linux. It's recommended to encrypt the hard drive with LUKS if the computer isn't shared.

Folder

The following folder structures will be used:

Path Description
$HOME/Documents/certificates/ Contains certificates to authenticate via certificate based authentication.
$HOME/Documents/recovery_codes/ Contains files with recovery_codes e.g. for Two-factor authentication.
$HOME/Documents/identity/ Contains files to prove the identity of the Core System Owner in physical live like passports.
$HOME/Documents/passwords/ Contains e.g the KeePassXC database with all Core System Owner passwords.
$HOME/Documents/repositories/ Contains all git repositories
$HOME/Images/ contains os images

Desktop

The System allows to use a GNOME desktop or a Xfce desktop. Depending on the desktop environment you have different functionalities.

User Data

Right now the software expects that the Core System Owner has on all systems the same username. By executing the import script it automatic backups the application configuration data, ssh keys and other important data which is saved in well defined configuration files and folders.

Server

Raspberry Pi

This repository contains some shell scripts to install Arch Linux for the Raspberry Pi on a SD-Card and to backup a SD-Card.

Setup
Guided

To install a Linux distribution manually on a SD card type in:

  bash ./sd_setup.sh
Piped

To pase the configuration to the program use this syntax:

(
  echo "$USER"              # | The username
  echo "sdX"                # | The device
  echo "64_bit"             # | The architecture type; arm or 64_bit
  echo "manjaro"            # | The operation system
  echo "architect"          # | The version
  #echo "n"                 # ├── If arch: Should a encrypted setup be used? (y/n)
  echo "n"                  # | Should the image download be forced?(y/n)
  echo "y"                  # | Should the image be transfered to $device_path?(y/n)
  echo "n"                 # ├── Overwrite device before copying? (y/n)
  echo "n"                  # | Should the ssh-key be copied to the image?(y/N)
  #echo "test12345"         # ├── The user password_1
  #echo "test12345"         # ├── The user password_2
  echo "n"                 # | Should the ssh-key be copied to the image?(y/N)
  echo "n"                  # |Should the hostname be changed?(y/N)
  #echo "example-host"       # | The hostname
  #echo "y"                 # | Setup Wifi on target system - Not implemented yet
)| sudo bash ./scripts/image/setup.sh | tee log.txt

License

The "GNU GENERAL PUBLIC LICENSE Version 3" applies to this project.