Skip to content
dk9uv edited this page Dec 7, 2018 · 36 revisions

Welcome to the rpi-setup wiki!

Installation base system

  • Download Raspbian Strecht Lite from https://www.raspberrypi.org/downloads/raspbian/
  • Copy image on SD card (e.g. with Win32DiskImager)
  • Plug in SD card in PC and create empty file ssh in /boot to enable ssh access
  • Plug in SD card in Pi and start to access via ssh with user pi and passwod raspberry (IP address of Pi can be detected by Router or PC program Angry IP)
  • Update Pi
    • sudo -s
    • apt-get update
    • apt-get upgrade
    • apt-get install oracle-java8-jdk (optional if Java is required)
    • reboot
  • Configure Pi
    • sudo raspi-config
    • Change User Password
    • Boot to console
    • Change localisation
    • add de_de utf-8
    • default de ???
    • Timezone Berlin
    • VRAM to 16MB

Add Wifi

  • sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
  • Add access point network={ ssid="123" psk="456" }
  • Reconfigure the interface by wpa_cli -i wlan0 reconfigure
  • If this does not work then sudo pkill wpa_supplicant and sudo wpa_supplicant -i wlan0 -c wpa_supplicant.conf

Installation b4j (only for development required)

Autorun program at startup

  • sudo nano /etc/rc.local and enter path and filename
  • Example: java -jar /home/pi/b4j/Non_UI_test.jar &

Configure read-only file system

Setup MQTT broker at Amazon

Set MQTT configuration

  • The MQTT configuration is stored in /boot/mqtt.config

  • Example
    1234
    tcp://m5678.cloudmqtt.com:12345
    Username
    Password
    Topic_extension

  • Description: On cloundmqtt this will lead to the following messages
    Username-Heartbeat (every minute with timestamp followed by 1234)
    Username-Topic_extension (when new data arrives via USB virtual com port)

  • sudo reboot when completed