Turris
https://doc.turris.cz/doc/en/howto/lxc
Wizard:
lxc-create -t download -n debianproxy
authority letsencrypt { | |
api url "https://acme-v02.api.letsencrypt.org/directory" | |
account key "/etc/acme/letsencrypt-privkey.pem" | |
} | |
domain graph.openshift.tips { | |
domain key "/etc/ssl/private/graph.openshift.tips:443.key" | |
domain full chain certificate "/etc/ssl/graph.openshift.tips:443.crt" | |
sign with letsencrypt | |
} |
https://doc.turris.cz/doc/en/howto/lxc
Wizard:
lxc-create -t download -n debianproxy
export PODNAME="nextcloud"
mkdir -p ~/containers/nextcloud/{db,nginx,html}
nginx.conf
file:
services.nodeports
quota = 0$ oc new-project service-nodeport-quota
$ oc project service-nodeport-quota
$ cat << EOF | oc apply -f -
apiVersion: v1
kind: ResourceQuota
metadata:
``` | |
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=443:proto=tcp:toport=8443 --permanent | |
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=443:proto=tcp:toport=8443 | |
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=80:proto=tcp:toport=8080 --permanent | |
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=80:proto=tcp:toport=8080 | |
$ sudo firewall-cmd --zone=trusted --add-service=https --permanent | |
$ sudo firewall-cmd --zone=trusted --add-service=https | |
$ sudo firewall-cmd --zone=trusted --add-service=http --permanent | |
$ sudo firewall-cmd --zone=trusted --add-service=http | |
$ sudo firewall-cmd --zone=trusted --add-masquerade |
Basic install with minimal selection of packages. Enable network.
Reboot and enable the connection using nmtui
dnf clean
Install FreeBSD with encryption (out-of-the-box) like https://vermaden.wordpress.com/2018/11/20/freebsd-desktop-part-2-1-install-freebsd-12/ , including encrypting the root zpool and swap.
After reboot, update the base system
freebsd-update fetch
freebsd-update install
reboot
# Save this at the end of your ~/.bashrc | |
battery_status(){ | |
# From http://www.basicallytech.com/blog/archive/110/Colour-coded-battery-charge-level-and-status-in-your-bash-prompt | |
BATTERY=/sys/class/power_supply/axp20x-battery | |
BATSTATE=$(cat ${BATTERY}/status) | |
CHARGE=$(cat ${BATTERY}/capacity) | |
NON='\033[00m' |
Let's try etcd-dump-db to extract information from the etcd database backup.
It is not available as a package, so let's get get the source
$ sudo dnf provides etcd-dump-db
Updating Subscription Management repositories.
Last metadata expiration check: 0:38:46 ago on Thu 11 Jun 2020 08:30:30 AM UTC.
Error: No Matches found
$ go get -u -v github.com/coreos/etcd
#!/usr/bin/env bash | |
# https://stackoverflow.com/a/55796558/491522 | |
getall() { | |
for i in $(oc api-resources --verbs=list --namespaced -o name | grep -v "events.events.k8s.io" | grep -v "events" | sort | uniq); do | |
echo "Resource:" $i | |
oc -n ${1} get --ignore-not-found=true ${i} -o yaml > ${1}/${i}.yaml | |
done | |
} |