Update
RPi4 now supports booting directly from USB. First update to get an eeprom which supports USB Boot, then configure the bootloader to boot from USB.
Original guide
- Download Raspbian from the official site
Update
RPi4 now supports booting directly from USB. First update to get an eeprom which supports USB Boot, then configure the bootloader to boot from USB.
Original guide
Below are my personal notes related to the Nvidia Jetson Nano Dev-board.
Nvidia allows your to fine tune the performance of your Jetson nano. More on this here.
sudo /usr/bin/jetson_clocks.sh --show| # /------------------------------------------\ | |
| # | don't forget to download the .tp file | | |
| # | and place it in the user's directory :› | | |
| # | | | |
| # | also install lolcat: | | |
| # | https://github.com/busyloop/lolcat | | |
| # \------------------------------------------/ | |
| alias test-passed='if [ "$?" -eq "0" ]; then lolcat ~/.tp -a -s 40 -d 2; fi;' |
| # Instructions for installing Pi-hole 4.2 on UniFi CloudKey Gen 1 (UC-CK) running firmware 0.13.6 | |
| # Pi-hole will need to be completely re-installed after every FW update or if CloudKey is reset to defaults. | |
| # Verify UC-CK is running firmware v0.13.6 (or later) before installing Pi-hole. If not, do: | |
| ubnt-systool fwupdate https://dl.ubnt.com/unifi/stage/cloudkey/firmware/UCK/UCK.mtk7623.v0.13.6.7ad551e.190225.0939.bin | |
| # UC-CK firmware v0.13.6 downgrades UniFi Controller to 5.10.17. Upgrade to 5.10.19 with: | |
| cd /tmp | |
| wget https://dl.ubnt.com/unifi/5.10.19/unifi_sysvinit_all.deb | |
| dpkg -i unifi_sysvinit_all.deb |
This is an unofficial documentation of what I did to setup the Rancher v2 air-gap HA install
Official docs are here https://rancher.com/docs/rancher/v2.x/en/installation/air-gap-high-availability/
| #!/bin/bash | |
| echo "This will generate a new kube config for accessing your RKE-created kubernetes cluster. This script MUST be run on a Kubernetes node." | |
| echo "Please enter the IP of one of your control plane hosts, followed by [ENTER]:" | |
| read cphost | |
| openssl genrsa -out kube-admin.key 2048 | |
| openssl req -new -sha256 -key kube-admin.key -subj "/O=system:masters/CN=kube-admin" -out kube-admin.csr | |
| sudo openssl x509 -req -in kube-admin.csr -CA /etc/kubernetes/ssl/kube-ca.pem -CAcreateserial -CAkey /etc/kubernetes/ssl/kube-ca-key.pem -out kube-admin.crt -days 365 -sha256 | |
| sudo rm -f /etc/kubernetes/ssl/kube-ca.srl |
| #!/bin/sh | |
| # Backup your data | |
| # Use at your own risk | |
| # Usage ./extended-cleanup-rancher2.sh | |
| # Include clearing all iptables: ./extended-cleanup-rancher2.sh flush | |
| docker rm -f $(docker ps -qa) | |
| docker rmi -f $(docker images -q) | |
| docker volume rm $(docker volume ls -q) | |
| for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do umount $mount; done | |
| cleanupdirs="/etc/ceph /etc/cni /etc/kubernetes /opt/cni /opt/rke /run/secrets/kubernetes.io /run/calico /run/flannel /var/lib/calico /var/lib/etcd /var/lib/cni /var/lib/kubelet /var/lib/rancher/rke/log /var/log/containers /var/log/pods /var/run/calico" |
| shell_command: | |
| rtlamr_start: 'python3.6 /home/pi/work/rtlamrmqtt.py' | |
| kill_rtlamr: 'pkill -f rtlamr' | |
| automation: | |
| - action: | |
| - data: {} | |
| service: shell_command.rtlamr_start | |
| alias: Start RTLAMR Script | |
| condition: [] |