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

for codec in H264 MPG2 WVC1 MPG4 MJPG WMV9 ; do \
    echo -e "$codec:\t$(vcgencmd codec_enabled $codec)" ; \
done

Get raspery info

vcgencmd get_config int

OpenELEC (Kodi) for Raspberry Pi3
http://openelec.tv/get-openelec

Create boot SD-card

URL=http://releases.openelec.tv/OpenELEC-RPi2.arm-8.0.4.img.gz
wget -q "${URL}"  -P /tmp
#wget -q "${URL}" -O - | gzip -d | sudo dd of=/dev/mmcblk0
sudo umount /dev/mmcblk0*
zcat /tmp/${URL##*/} | sudo dd of=/dev/mmcblk0
sync

Raspberry Pi Wifi perfomance with iperf

# @ workstation
sudo ufw disable
iperf -s
 
# @ pi
docker run -it mzac23/rpi-iperf-client ${WORKSTATION_IP}
 
# cleaup @ pi
docker system prune -f
 
# cleaup @ workstation
sudo ufw enable

Links
http://elinux.org/RPiconfig
http://www.elinux.org/RPI_vcgencmd_usage
http://wiki.openelec.tv/index.php?title=Installing_OpenELEC_on_Raspberry_Pi
http://cascadia.debian.net/trenza/Documentation/raspberrypi-ltsp-howto/
http://elinux.org/R-Pi_Troubleshooting
http://www.raspberry-pi-geek.de/