Raspberry Hardware:
USB-Stick (für die Daten):
Auf der Workstation das Raspberry Pi OS Betriebssystem herunterladen und auf die SD-Karte schreiben:
Raspberry Pi OS → Raspberry Pi OS Lite (nur Kommandozeile) herunterladen.
sudo dnf install rpi-imager sudo rpi-imager
Imager → Raspberry Pi OS (other) → Raspberry Pi OS Lite (32-bit)
Dann die SD-Karte in den Raspberry Pi einlegen und starten:
sudo raspi-config
sudo timedatectl set-timezone Europe/Berlin sudo nano /etc/systemd/timesyncd.conf
[Time] NTP=0.europe.pool.ntp.org 1.europe.pool.ntp.org 2.europe.pool.ntp.org 3.europe.pool.ntp.org
sudo timedatectl set-ntp false sudo timedatectl set-ntp true timedatectl status # Manuell: sudo date -s 'YYYY-MM-DD HH:mm:ss'
sudo apt update sudo apt upgrade
# Prüfung auf Verwendung von systemd cat /proc/1/comm nano /etc/dhcpcd.conf
#Example static IP configuration: #interface eth0 #static ip_address=192.168.0.10/24 #static ip6_address=fd51:42f8:caae:d92e::ff/64 #static routers=192.168.0.1 #static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1 # It is possible to fall back to a static IP if DHCP fails: # define static profile profile static_eth0 static ip_address=192.168.178.xxx/24 static routers=192.168.178.1 static domain_name_servers=192.168.178.1 # fallback to static profile on eth0 interface eth0 fallback static_eth0
systemctl restart networking systemctl status dhcpcd
apt install ufw ufw allow 22/tcp ufw logging medium ufw default deny incoming ufw enable systemctl restart ufw ufw status
# ufw Regel löschen ufw status numbered ufw delete <Nummer>
https://www.raspberrypi.org/documentation/computers/remote-access.html
hostname -I ssh pi@<IP-Adresse>