ServNest system images generator
Go to file
Miraty 1a61fc6296 sftpgo: bcrypt > argon2id
This allows logging in over SFTP with a password longer than 73 characters
2023-06-03 18:51:30 +02:00
etc Fix tests 2023-04-20 11:32:57 +02:00
install sftpgo: bcrypt > argon2id 2023-06-03 18:51:30 +02:00
mkosi.default.d Fix tests 2023-04-20 11:32:57 +02:00
root Fix sftpgo.sh compilation script for Debian 2023-06-03 18:47:53 +02:00
srv/servnest Add catalog to default knot configuration 2023-05-06 19:59:13 +02:00
usr Better SFTPGo installation 2023-05-05 19:44:36 +02:00
var/log/php Split permissions outside of dedicated file 2023-03-28 00:09:41 +02:00
.gitignore Move important scripts and configs to /install 2023-02-07 19:52:54 +01:00
LICENSE.md Set CNPLv7+ as license 2022-08-29 21:01:16 +02:00
README.md Add setup instructions 2023-05-03 00:54:00 +02:00
mkosi.default Move important scripts and configs to /install 2023-02-07 19:52:54 +01:00
mkosi.nspawn Initial commit 2022-04-20 00:29:47 +02:00
mkosi.postinst Exit installation script on error 2023-04-26 02:01:13 +02:00

README.md

ServNest system images generator

This is the sources to build system images of ServNest using mkosi. You can then use them with systemd-nspawn.

This repository also contains configuration files and installation scripts inside install that may also be useful without mkosi.

Usage

This generator allows to build images for both Arch Linux and Debian Testing, you can replace <sysid> by either arch or debian in the following examples. Note that mkosi may require tools that are not available on your distribution.

First:

  • Put your SSH public key in root/.ssh/authorized_keys
  • Put a SFTPGo binary as usr/local/bin/sftpgo

You can generate a new image in /var/lib/machines/servnest-<sysid> by running mkosi --force -d <sysid> from this repository (--force erases an already existing image).

You need to copy mkosi.nspawn into /etc/systemd/nspawn/servnest-<sysid>.nspawn to allow the container to use network without restrictions.

You can then boot the container:

machinectl start servnest-<sysid>
machinectl shell servnest-<sysid>

The full explanation of the structure in this repository can be found on the mkosi manpage. Here is a summary of what mkosi will do in this repository:

  1. Load configuration from mkosi.default and mkosi.default.d/<sysid>/mkosi.default
  2. Install packages according to configuration
  3. Copy this repository to the container root
  4. Run mkosi.postinst, which runs specific scripts inside install, which do configuration (depending on the distribution)

License

ServNest system images generator is ethical libre software: you can use, redistribute or modify it under the terms of the CNPL-NAv7+ as found in LICENSE.md or at https://git.pixie.town/thufie/npl-builder.