linux-image-manager/README.md

82 lines
4.1 KiB
Markdown
Raw Normal View History

2019-09-30 13:44:02 +02:00
# Core System
2020-05-05 12:25:09 +02:00
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](./LICENSE.txt) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6e66409513d7451b949afbf0373ba71f)](https://www.codacy.com/manual/kevinveenbirkenbach/core-system?utm_source=github.com&utm_medium=referral&utm_content=kevinveenbirkenbach/core-system&utm_campaign=Badge_Grade) [![Travis CI](https://travis-ci.org/kevinveenbirkenbach/core-system.svg?branch=master)](https://travis-ci.org/kevinveenbirkenbach/core-system)
2019-09-30 14:47:48 +02:00
2020-05-03 22:14:18 +02:00
```
The
_____ _____ _
/ ____| / ____| | |
| | ___ _ __ ___| (___ _ _ ___| |_ ___ _ __ ___
| | / _ \| '__/ _ \\___ \| | | / __| __/ _ \ '_ ` _ \
| |___| (_) | | | __/____) | |_| \__ \ || __/ | | | | |
\_____\___/|_| \___|_____/ \__, |___/\__\___|_| |_| |_|
__/ |
|___/
is an administration tool designed from and for Kevin Veen-Birkenbach.
Licensed under GNU GENERAL PUBLIC LICENSE Version 3
```
2019-10-07 11:56:33 +02:00
## Description
2019-10-07 08:12:21 +02:00
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](https://en.wikipedia.org/wiki/EncFS).
2020-05-03 22:14:18 +02:00
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.
2020-04-28 17:48:16 +02:00
2020-05-03 22:14:18 +02:00
## System
### Client
The client script is optimized for a [Manjaro Linux](https://manjaro.org). It's recommended to encrypt the hard drive with [LUKS](https://en.wikipedia.org/wiki/Linux_Unified_Key_Setup) if the computer isn't shared.
2020-05-02 11:46:39 +02:00
2020-05-03 22:14:18 +02:00
#### Folder
The following folder structures will be used:
| Path | Description |
|---|---|
$HOME/Documents/certificates/ | Contains certificates to authenticate via [certificate based authentication](https://blog.couchbase.com/x-509-certificate-based-authentication/). |
| $HOME/Documents/recovery_codes/ | Contains files with recovery_codes e.g. for [Two-factor authentication](https://en.wikipedia.org/wiki/Multi-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](https://keepassxc.org/) database with all *Core System Owner* passwords. |
2020-12-24 21:49:16 +01:00
| $HOME/Repositories/ | Contains all git repository providers. |
| $HOME/Repositories/{{provider}} | Contains all git repositories of an provider. |
| $HOME/Backups | Contains all backups. The sub-folders follow the standards of [Backup Manager](https://github.com/kevinveenbirkenbach/backup-manager) |
| $HOME/Games/roms | Contains all roms |
2020-05-03 22:14:18 +02:00
| $HOME/Images/ | contains os images|
#### Desktop
The System allows to use a [GNOME desktop](https://www.gnome.org/?) or a [Xfce](https://www.xfce.org/) 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.
2020-09-30 17:07:51 +02:00
### Images
2020-05-03 22:14:18 +02:00
2020-09-30 17:07:51 +02:00
This repository contains some shell scripts to configure and generate images and transfer them to a storage.
2020-05-03 22:14:18 +02:00
2020-09-30 17:07:51 +02:00
#### Setup
To install a Linux distribution execute:
2020-05-02 11:46:39 +02:00
```bash
2020-09-30 17:02:56 +02:00
sudo bash ./scripts/image/setup.sh
2020-05-02 11:46:39 +02:00
```
2020-09-30 17:07:51 +02:00
#### Chroot
To chroot into a Linux distribution on a storage execute:
```bash
sudo bash ./scripts/image/chroot.sh
```
#### Backup
To backup a image execute:
```bash
sudo bash ./scripts/image/backup.sh
```
2020-05-02 11:46:39 +02:00
2021-01-23 08:20:02 +01:00
## Todo
- Implement ssh configuration
- Implement wifi automation
- Install client software depentend on hardware
- Use travis
- Move repository folder
2019-09-30 13:44:02 +02:00
## License
The ["GNU GENERAL PUBLIC LICENSE Version 3"](./LICENSE.txt) applies to this project.