bluefeds:
- verify img checksum - add steps related to DNS, hostname, timezone, ssh-key generation - fix typos regarding container names
This commit is contained in:
parent
431ed00f94
commit
aed8ae3ce8
|
@ -9,9 +9,16 @@ toc: true
|
||||||
|
|
||||||
## Stage 0000: Flash SD Card
|
## Stage 0000: Flash SD Card
|
||||||
|
|
||||||
|
Verify the checksum first
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
xzcat Fedora-IMAGE-NAME.raw.xz | sudo dd status=progress bs=4M of=/dev/XXX
|
echo "<CHECKSUM> *Fedora-Server-VERSION.aarch64.raw.xz" | shasum --check
|
||||||
|
```
|
||||||
|
|
||||||
|
Flash the SD Card
|
||||||
|
|
||||||
|
```bash
|
||||||
|
xzcat Fedora-Server-VERSION.aarch64.raw.xz | sudo dd status=progress bs=4M of=/dev/XXX
|
||||||
sync && sync && sync
|
sync && sync && sync
|
||||||
sudo lvchange -an /dev/fedora_fedora/root
|
sudo lvchange -an /dev/fedora_fedora/root
|
||||||
sudo eject /dev/XXX
|
sudo eject /dev/XXX
|
||||||
|
@ -22,12 +29,36 @@ sudo eject /dev/XXX
|
||||||
|
|
||||||
## Stage 0001: Immediate initial setup
|
## Stage 0001: Immediate initial setup
|
||||||
|
|
||||||
|
|
||||||
|
### Set hostname
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo hostnamectl set-hostname bluefeds
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Set timezone
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo timedatectl set-timezone Asia/Kolkata
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Set DNS Servers
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nmcli connection modify "$(nmcli -g name,device connection show | grep "eth0" | cut -f1 -d":")" ipv4.dns "1.1.1.2,1.0.0.2"
|
||||||
|
nmcli connection modify "$(nmcli -g name,device connection show | grep "eth0" | cut -f1 -d":")" ipv4.ignore-auto-dns yes
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### REBOOT! (hostname needs to come in effect)
|
### REBOOT! (hostname needs to come in effect)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo reboot +0
|
sudo reboot +0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Expand the rootfs
|
### Expand the rootfs
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -68,15 +99,10 @@ sudo grubby --remove-args=rhgb --update-kernel=ALL
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd $HOME/.ssh
|
cd $HOME/.ssh
|
||||||
ssh-keygen -t ed25519
|
ssh-keygen -t ed25519 -f gitea
|
||||||
```
|
ssh-keygen -t ed25519 -f github
|
||||||
|
ssh-keygen -t ed25519 -f gitlab
|
||||||
|
ssh-keygen -t ed25519 -f sentinel
|
||||||
### Set DNS servers
|
|
||||||
|
|
||||||
```bash
|
|
||||||
nmcli connection modify "$(nmcli -g name,device connection show | grep "eth0" | cut -f1 -d":")" ipv4.dns "1.1.1.2,1.0.0.2"
|
|
||||||
nmcli connection modify "$(nmcli -g name,device connection show | grep "eth0" | cut -f1 -d":")" ipv4.ignore-auto-dns yes
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -383,11 +409,9 @@ systemctl --user enable container-caddy-vishwambhar container-gitea-chitragupta
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# power down containers before a snapshot is taken on 00:00 Fridays
|
# power down containers before a snapshot is taken on 00:00 Fridays
|
||||||
45 23 * * 4 systemctl --user stop container-caddy-vishwambhar container-gitea-chitragupta container-gitea-govinda container-hugo-mahayogi container-hugo-vaikunthnatham container-nextcloud-chitragupta container-nextcloud-govinda container-nextcloud-karm
|
45 23 * * 4 systemctl --user stop container-caddy-vishwambhar container-gitea-chitragupta container-gitea-govinda container-hugo-mahayogi container-hugo-vaikunthnatham container-nextcloud-chitragupta container-nextcloud-govinda container-nextcloud-karma
|
||||||
a
|
|
||||||
# start containers after a snapshot is taken on 00:00 Fridays
|
# start containers after a snapshot is taken on 00:00 Fridays
|
||||||
10 00 * * 5 systemctl --user start container-caddy-vishwambhar container-gitea-chitragupta container-gitea-govinda container-hugo-mahayogi container-hugo-vaikunthnatham container-nextcloud-chitragupta container-nextcloud-govinda container-nextcloud-kar
|
10 00 * * 5 systemctl --user start container-caddy-vishwambhar container-gitea-chitragupta container-gitea-govinda container-hugo-mahayogi container-hugo-vaikunthnatham container-nextcloud-chitragupta container-nextcloud-govinda container-nextcloud-karma
|
||||||
ma
|
|
||||||
|
|
||||||
|
|
||||||
# a zfs scrub takes place on the first Friday of every month
|
# a zfs scrub takes place on the first Friday of every month
|
||||||
|
|
Loading…
Reference in New Issue