hardcode uid
We are hardcoding this all over the place anyway right now, and the env var does not seem to work.
This commit is contained in:
parent
75464f5c5d
commit
d9abf1916a
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
@ -56,9 +56,9 @@ them and decide for yourself.
|
||||||
- `dnf install elrepo-release`
|
- `dnf install elrepo-release`
|
||||||
- [RPM Fusion](https://wiki.almalinux.org/documentation/epel-and-rpmfusion.html)
|
- [RPM Fusion](https://wiki.almalinux.org/documentation/epel-and-rpmfusion.html)
|
||||||
|
|
||||||
## Disks
|
### Disks
|
||||||
|
|
||||||
### Partitions
|
#### Partitions
|
||||||
|
|
||||||
Repeat the following steps for all disks that you want to join together into
|
Repeat the following steps for all disks that you want to join together into
|
||||||
one single logical volume.
|
one single logical volume.
|
||||||
|
@ -76,7 +76,7 @@ parted --fix --align optimal --script /dev/sdX \
|
||||||
set 1 lvm on
|
set 1 lvm on
|
||||||
```
|
```
|
||||||
|
|
||||||
### LVM
|
#### LVM
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Create physical volume
|
# Create physical volume
|
||||||
|
@ -93,7 +93,7 @@ mke2fs -t ext4 /dev/library/books
|
||||||
e2fsck -f /dev/library/books
|
e2fsck -f /dev/library/books
|
||||||
```
|
```
|
||||||
|
|
||||||
### /etc/systemd/system/volumes-books.mount
|
#### /etc/systemd/system/volumes-books.mount
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[Mount]
|
[Mount]
|
||||||
|
@ -110,7 +110,7 @@ mkdir -p /volumes/books
|
||||||
chown -R $ctuser:$ctuser /volumes
|
chown -R $ctuser:$ctuser /volumes
|
||||||
```
|
```
|
||||||
|
|
||||||
## SSH
|
### SSH
|
||||||
|
|
||||||
SSH is optional, but highly encouraged. Cockpit gives you a terminal too, but
|
SSH is optional, but highly encouraged. Cockpit gives you a terminal too, but
|
||||||
that's nowhere near as good as what you can do with a real terminal emulator
|
that's nowhere near as good as what you can do with a real terminal emulator
|
||||||
|
@ -126,7 +126,7 @@ ssh-keygen -t ed25519 -a 32 -f ~/.ssh/"$localhost-to-$remotehost"
|
||||||
ssh-copy-id -i ~/.ssh/"$localhost-to-$remotehost" "$user@$remotehost"
|
ssh-copy-id -i ~/.ssh/"$localhost-to-$remotehost" "$user@$remotehost"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Override `sshd` config
|
#### Override `sshd` config
|
||||||
|
|
||||||
We don't want to allow anyone to login as root remotely ever. You must be a
|
We don't want to allow anyone to login as root remotely ever. You must be a
|
||||||
`sudoer` with public key auth to elevate to root.
|
`sudoer` with public key auth to elevate to root.
|
||||||
|
@ -257,7 +257,7 @@ sudo -u $ctuser bash -l
|
||||||
# Create dirs
|
# Create dirs
|
||||||
mkdir -p ~/.config/{containers/systemd,environment.d} ~/containers/storage
|
mkdir -p ~/.config/{containers/systemd,environment.d} ~/containers/storage
|
||||||
# Prepare `systemd --user` env
|
# Prepare `systemd --user` env
|
||||||
echo 'XDG_RUNTIME_DIR=/run/user/$UID' >> ~/.config/environment.d/10-xdg.conf
|
echo 'XDG_RUNTIME_DIR=/run/user/2000' >> ~/.config/environment.d/10-xdg.conf
|
||||||
# Enable container auto-update
|
# Enable container auto-update
|
||||||
podman system migrate
|
podman system migrate
|
||||||
# WARNING: Set strict versions for all containers or risk catastrophe
|
# WARNING: Set strict versions for all containers or risk catastrophe
|
||||||
|
|
Loading…
Add table
Reference in a new issue