Add setup instructions
This commit is contained in:
parent
d77857ef46
commit
c2e1363021
2 changed files with 5 additions and 1 deletions
|
@ -8,12 +8,16 @@ This repository also contains configuration files and installation scripts insid
|
|||
|
||||
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:
|
||||
```
|
||||
```shell
|
||||
machinectl start servnest-<sysid>
|
||||
machinectl shell servnest-<sysid>
|
||||
```
|
||||
|
|
0
usr/local/bin/.gitkeep
Normal file
0
usr/local/bin/.gitkeep
Normal file
Loading…
Reference in a new issue