Skip to main content

Extra stuff

Setup temperature monitoring script

sudo mkdir /home/pi/scripts  
sudo touch /home/pi/scripts/get_temperature.sh
sudo echo "vcgencmd measure_temp" | sudo tee /home/pi/scripts/get_temperature.sh
sudo chmod u+x /home/pi/scripts/get_temperature.sh

Add temperature shortcut alias

sudo echo "alias checktemp='vcgencmd measure_temp'" >> ~/.bash_aliases  

Setup K3s uninstall script

sudo touch /home/pi/scripts/uninstall_k3s.sh  
sudo echo "sudo /usr/local/bin/k3s-uninstall.sh" | sudo tee /home/pi/scripts/uninstall_k3s.sh
sudo echo "sudo rm -r /etc/rancher" | sudo tee /home/pi/scripts/uninstall_k3s.sh
sudo echo "sudo rm -r /var/lib/rancher" | sudo tee /home/pi/scripts/uninstall_k3s.sh
sudo chmod u+x /home/pi/scripts/uninstall_k3s.sh

Next Step

Go back to the index page.