Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid

Install Home Assistant on Raspberry Pi

Install Home Assistant on Raspberry Pi
https://www.home-assistant.io/installation/raspberrypi/

# Install rpi-imager
sudo apt install rpi-imager

rpi-imager

# Create Homeassistant SD-Card
# Other specific-purpose OS > Home assistants and home Automation > Home Assistant OS

# Connect to HA
http://YOUR_HOME_ASSISTANT_IP:8123/

# Create Home Assistant account

# Install SSH plugin in Add-on-Store
http://YOUR_HOME_ASSISTANT_IP:8123/hassio/addon/core_ssh/info

# Open SSH Web CLI
http://YOUR_HOME_ASSISTANT_IP:8123/hassio/ingress/core_ssh

# get wifi data from workstation
WIFI_SSID="$(nmcli dev wifi show-password | grep SSID | cut -d' ' -f2-)" 
WIFI_PASS="$(nmcli dev wifi show-password | grep Pass | cut -d' ' -f2-)"
echo ha network update wlan0 \
  --ipv4-method auto \
  --wifi-auth wpa-psk \
  --wifi-mode infrastructure \
  --wifi-ssid \'${WIFI_SSID}\' \
  --wifi-psk \'${WIFI_PASS}\'

# paste output to SSH online console 

# debug
ha network info

Enable SSH key to hypervisor (Raspberry Pi)
https://community.home-assistant.io/t/howto-how-to-access-the-home-assistant-os-host-itself-over-ssh/263352/6

#@homeassistant online console
curl https://github.com/foo.keys >> /root/authorized_keys 
systemctl enable --now dropbear
ssh root@YOUR_HOME_ASSISTANT_IP -p 22222

Backup
https://www.home-assistant.io/common-tasks/general/#backups

ls -l /mnt/data/supervisor/backup/

ha backups new

# copy files over SSH
ssh root@homeassistant.local 'for f in /mnt/data/supervisor/backup/*.tar; do printf "%s\n" "$f"; done' | while read -r f; do
   ssh -n root@homeassistant.local "cat \"$f\"" > "$(basename "$f")"; 
done

Raspberry Pi

Creeate boot SD card
https://www.raspberrypi.com/software/

sudo apt install rpi-imager

Configure WLAN
https://raspberrypi.stackexchange.com/questions/79613/raspbian-static-ip-for-eth0-and-dhcp-for-wlan0
https://www.elektronik-kompendium.de/sites/raspberry-pi/1912221.htm

# at workstation
WIFI_SSID="$(nmcli dev wifi show-password | grep SSID | cut -d' ' -f2-)"
WIFI_PASS="$(nmcli dev wifi show-password | grep Pass | cut -d' ' -f2-)"

wpa_passphrase "${WIFI_SSID}" "${WIFI_PASS}" | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf

# /etc/network/interfaces
# static
#allow-hotplug wlan0
#iface wlan0 inet static
#address 192.168.1.100
#netmask 255.255.255.0
#gateway 192.168.1.254

# dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Enable MPEG decoder

mount -o remount,rw /flash/
LICENSE_KEY=0x12345678
sed -i "s|^#.*decode_MPG2=0x.*$|decode_MPG2=${LICENSE_KEY}|g" /flash/config.txt
reboot

Fix HDMI: force HDMI even if unplugged or powered off

mount /flash -o remount,rw
sed -i 's|#.*hdmi_force_hotplug=1|hdmi_force_hotplug=1|' /flash/config.txt

Images
https://www.raspberrypi.org/downloads/

Raspbian (Debian Jessie)

sudo umount /dev/mmcblk0*
wget -q http://director.downloads.raspberrypi.org/raspbian/images/raspbian-2016-02-29/2016-02-26-raspbian-jessie.zip -P /tmp
unzip -p /home/pako/Downloads/2016-02-26-raspbian-jessie.zip | sudo dd of=/dev/mmcblk0
sync

wget -q http://director.downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2016-02-29/2016-02-26-raspbian-jessie-lite.zip -P /tmp

View used codecs

LibreELEC / Kodi on Raspberry-Pi

Create boot SD-CARD

wget http://releases.libreelec.tv/LibreELEC-RPi2.arm-9.1.002.img.gz -O /tmp/LibreELEC-RPi2.arm-9.1.002.img.gz
zcat /tmp/LibreELEC-RPi2.arm-9.1.002.img.gz | sudo dd of=/dev/mmcblk0
sync

Default SSH credentials

user: root
pass: libreelec

Remote
https://wiki.libreelec.tv/infrared_remotes

Links
https://libreelec.tv/downloads_new/raspberry-pi-3-3/

raspberry
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung