raspi-config
============
- default login: pi/raspberry
- via "sudo raspi-config"
  - german-locale + german-keymap
  - activate sshd (and i2c for pi-usv)
  - reboot (for keyboard)
  - may disable sound (for stuff that uses gpio like matrix) (/boot/config.txt, dtparam=audio=off)
- apt install -y vim curl htop mc tmux git

manual stuff
============

- configure wlan
  - sudo iwlist wlan0 scan | grep FR36
  - sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
    network={
        ssid="FR36"
        psk="testingPassword"
    }
  - sudo wpa_cli reconfigure
  - we should get a IP now: ifconfig wlan0

docker
======
- Use Raspian/Jessi (2017-9-24, stretch has no docker packages)
 - https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-07-05/
- https://docs.docker.com/engine/installation/linux/docker-ce/debian/#os-requirements
- systemctl enable docker
- sudo mkdir /etc/systemd/system/docker.service.d
  - vi /etc/systemd/system/docker.service.d/override.conf
      [Service]
      ExecStart=
      ExecStart=/usr/bin/dockerd -s overlay2 -H fd:// -H tcp://0.0.0.0:4243
- rm -rf /var/lib/docker
- ln -s /mnt/ssdext/var_lib_docker/ /var/lib/docker
- systemctl daemon-reload && systemctl restart docker
- systemctl status docker
- docker ps

Himbeere only
=============
- configure disks
  - mkdir /mnt/ssdext
    - fstab: /dev/sda1 /mnt/ssdext ext4 rw,defaults 0 0
  - mkdir /mnt/hddex
    - test: mount -t cifs -o username='ftpuser',password='#*ftpuser.00',uid=1000,gid=1000,sec=ntlm //192.168.178.1/FRITZ.NAS/TOSHIBA-MK5065GSXF-01 /mnt/hddext
    - fstab:
        - printf "username=ftpuser\npassword=#*ftpuser.00\n" > /home/pi/.smbcredentials
        - //192.168.178.1/FRITZ.NAS/TOSHIBA-MK5065GSXF-01 /mnt/hddext  cifs credentials=/home/pi/.smbcredentials,uid=1000,gid=1000,sec=ntlm 0 0

