This project is a kind of a Toniebox port.
| TF522 Modul | Raspberry Pi |
|---|---|
| SDA | Pin 24 / GPIO8 (CE0) |
| SCK | Pin 23 / GPIO11 (SCKL) |
| MOSI | Pin 19 / GPIO10 (MOSI) |
| MISO | Pin 21 / GPIO09 (MISO) |
| IRQ | --- |
| GND | Pin 6 (GND) |
| RST | Pin 22 / GPIO25 |
| 3.3V | Pin 1 (3V3) |
-
Download most current Raspbian Image
-
Use BalenaEtcher to write the downloaded image to the SD card
-
Create empty file named
sshin the root directory of the SD card -
Create the file
wpa_supplicant.confin the root directory of the SD cardcountry=AT ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="YOUR_SSID" psk="YOUR_PASSWORD" } -
Put your SD card into your Raspberry PI and boot the device
-
Connecto to your device:
ssh pi@raspberrypi.local -
Use default password:
raspberry -
Change your password after login:
passwd -
Change the hostname of the device and expand the filesystem
sudo raspi-config -
Install/update all the dependencies
-
... run the script
wget -O - https://raw.githubusercontent.com/jfuerlinger/leabox/dev/scripts/configure.sh | bash -
... perform the steps manually
- Update your packages:
sudo apt-get update -y && sudo apt-get upgrade -y- Install Node JS:
wget https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-armv6l.tar.xz tar -xf node-v11.15.0-linux-armv6l.tar.xz sudo cp -R node-v11.15.0-linux-armv6l/* /usr/local/ rm node-v11.15.0-linux-armv6l.tar.xz rm -R node-v11.15.0-linux-armv6l node -v- Install Git:
sudo apt-get install git -y- Install libasound2-dev (needed for the npm-speaker module)
sudo apt-get install libasound2-dev -y- Install ffmpeg with needed codecs:
git clone --depth 1 http://git.videolan.org/git/x264 cd x264 ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl make -j4 sudo make install cd .. rm -rf x264 sudo apt-get install libmp3lame-dev -y git clone git://source.ffmpeg.org/ffmpeg --depth=1 cd ffmpeg ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree make -j4 sudo make install cd .. rm -rf ffmpeg
- Clone the source
git clone https://github.com/jfuerlinger/leabox- Download all the npm-modules
npm install
-
To get some insights and telemetry data Microsoft Application Insights are used.
Therefor its needed to export the instrumentation key as a global variable:
echo 'export APPINSIGHTS_INSTRUMENTATIONKEY="<YOUR-INSTRUMENTATION-KEY>"' >> ~/.bashrc