User Tools

Site Tools


raspberry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberry [2022/10/05 07:11] – [Kubernetes (k8s) on RaspberryPi] skipidarraspberry [2023/03/29 06:56] (current) – [Remote install of image per ssh] skipidar
Line 693: Line 693:
  
  
-=== Install OS ===+=== Install OS Raspberry === 
 +https://360techexplorer.com/install-k3s-on-raspberry-pi/ 
 + 
 + 
 + 
 + 
 + 
 + 
 +=== Install OS Ubuntu ===
 Use Ubuntu Server 22.04.1. The Current LTS version. Use Ubuntu Server 22.04.1. The Current LTS version.
  
Line 960: Line 968:
 On a different node run the below command.  On a different node run the below command. 
 <code> <code>
-export NODE_TOKEN="T10eb2811f7856b5895acac5179c6ae29787957f5289bb00737cf144ac58da851c4::server:9acae609ca530528b4bcc3219720705b"+export K3S_KUBECONFIG_MODE="644" 
 +export K3S_URL="https://192.168.191.32:6443" 
 +export K3S_TOKEN="T10eb2811f7856b5895acac5179c6ae29787957f5289bb00737cf144ac58da851c4::server:9acae609ca530528b4bcc3219720705b"
  
-# NODE_TOKEN comes from /var/lib/rancher/k3s/server/node-token on your server +curl -sfL https://get.k3s.io | sh -
-sudo k3s agent --server https://192.168.191.32:6443 --token ${NODE_TOKEN}+
 </code> </code>
  
 +
 +
 +==== Remote install of image per ssh ====
 +see
 +https://weberblog.net/reinstall-your-raspberry-over-the-network/
 +
 +  * Login via SSH to the system on which the image is located and read it via dd. The stdout is tunneled through SSH to the local system.
 +  * Using pv you can see how much data is transferred. (You may need to install it with apt-get, but you can also omit this.)
 +  * funzip extracts the first file and sends it to stdout.
 +  * dd writes it to the SD-card.
 +
 +<code>
 +
 +#This will enable the reset of the Raspberry without regular commands.
 +echo 1 > /proc/sys/kernel/sysrq
 +
 +#download image
 +curl -L http://downloads.raspberrypi.org/raspbian_lite_latest | funzip | dd bs=4M of=/dev/mmcblk0
 +
 +# restart the pi (Sofortiger Neustart des Systems (ohne Synchronisation der Speichermedien!))
 +echo b > /proc/sysrq-trigger
 +</code>
raspberry.1664953919.txt.gz · Last modified: by skipidar