-
Notifications
You must be signed in to change notification settings - Fork 0
Home
dk9uv edited this page Dec 7, 2018
·
36 revisions
Welcome to the rpi-setup wiki!
- 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
- 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_supplicantandsudo wpa_supplicant -i wlan0 -c wpa_supplicant.conf
- login
- mkdir b4j
- cd b4j
- ln -s /tmp /home/pi/b4j/tempjars
- wget www.b4x.com/b4j/files/b4j-bridge.jar
- sudo java -jar b4j-bridge.jar
- sudo nano /etc/rc.local and enter path and filename
- Example: java -jar /home/pi/b4j/Non_UI_test.jar &
- See https://learn.adafruit.com/read-only-raspberry-pi/ (GPIO halt and jumper at boot not used)
- If required to switch from read-only to read-write enter
sudo mount -o remount,rw /
sudo mount -o remount,rw /boot
-
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