28 lines
1.2 KiB
Markdown
28 lines
1.2 KiB
Markdown
# JILITS System Files Repository
|
|
|
|
This repository contains system configuration files managed by `yadm` for simplified deployment and bootstrap of system files.
|
|
|
|
## System Initialization Instructions
|
|
|
|
To set up the repository on a fresh system, use the provided one-liner below to download and execute the initialization script.The script initializes, clones, and configures `yadm` for system-wide usage.
|
|
|
|
```bash
|
|
curl -fsSL https://git.jilits.se/JILITS/sysfiles/raw/branch/main/usr/local/jilits/sysyadm-init.sh -o /tmp/sysyadm-init.sh && bash /tmp/sysyadm-init.sh
|
|
```
|
|
|
|
### Initialization Prerequisites
|
|
|
|
- **System Requirements**: A Debian-based system (Ubuntu, Debian, etc.).
|
|
- **Git Access**: Ensure you can add the SSH key to the Git server (`git.jilits.se`).
|
|
|
|
### Generated SSH Key
|
|
|
|
The script generates an SSH key for the root user if it does not already exist. The public key will be printed during execution. Make sure to add the SSH key to the Git server to allow cloning.
|
|
|
|
## Troubleshooting
|
|
|
|
If the script fails:
|
|
|
|
1. Ensure you are not running the script as the root user.
|
|
2. Verify internet connectivity and access to the Git repository.
|
|
3. Check that you have permissions to install packages using `sudo`.
|