Initial setup

I’ve connected RPi to TV to perform initial configuration as it doesn’t have ssh service enabled by default anymore.

OS installation

I’ve selected Raspbian Stretch With Desktop as my OS for RPi. It seems the most popular OS for RPi and I have a previous experience with Ubuntu and they have a common parent Debian. It took significant amount of time to complete the install. Here is my current OS version.

pi@raspberrypi:~$ uname -a
Linux raspberrypi 4.19.34-v7+ #1211 SMP Mon Apr 8 22:56:37 BST 2019 armv7l GNU/Linux

Network and Security setup

Then I’ve setup wifi.

Enabling of SSH is well documented

Setup a Static IP Address

As I prefer to work with RPi over SSH I’d like to have a static IP for it. I’ve followed instructions from Stackoverflow Static IP Address to set it up:

I’ve edited  /etc/dhcpcd.conf

By setting the following:

interface wlan0
static ip_address=
static routers=
static domain_name_servers=

And then I’ve restarted network service:

sudo service networking restart

Setup ssh access with authorized key

I’ve generated a new keys with PuttyGen and added the public key to

.ssh/authorized_keys file. At the same time I’ve specified my private key file in my ssh client as Authentication parameter.


Disable password access

As popularity of RPi growths it can become the new security risk for you, So after setting up access with the key I’ve disabled access using password as described in .

Setup Bluetooth

I need to setup BLE to communicate with my sensors and audio output.

First setp is to Add the pi user to the audio and the bluetooth groups:


sudo adduser pi bluetooth


then’ve check if BLE is enabled:

pi@raspberrypi:~$ ps -ef | grep bluealsa
root       693 1  0 21:21 ?        00:00:00 /usr/bin/bluealsa
pi         923 807  0 21:44 pts/0    00:00:00 grep bluealsa

Then I’ve used BLE control tool bluetoothctl to connect setup connection and trust between RPi and my devices as per instruction.


Next Steps

Collect data from sensors

Explore TensorFlow tools and Magenta models.

Explore Home Assist