User Tools

Site Tools


raspberry_phoscon

This is an old revision of the document!


Raspberry as minimal Phoscon device (DeCONZ)

Introduction

This howto describes how to install Phoscon DeCONZ software using minimal installation. Everything is done as the root user in this howto.

Installation

Raspbian Buster Lite

Download Raspbian Buster Lite edition at: https://www.raspberrypi.org/downloads/raspbian/ Use Etcher or whatever to install the downloaded zip on a SD card.

Initial settings to enable remote configuration

Use raspi-config to set network and change password of the pi user and change the hostname:

raspi-config
systemctl enable ssh.service
systemctl start ssh.service
/etc/systemd/timesyncd.conf
[Time]
NTP=172.16.0.254
#FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048

Install VNC server

apt install \
  curl \
  kmod \
  libcap2-bin \
  libqt5core5a \
  libqt5gui5 \
  libqt5network5 \
  libqt5serialport5 \
  libqt5sql5 \
  libqt5websockets5 \
  libqt5widgets5 \
  lsof \
  sqlite3 \
  tigervnc-standalone-server \
  tigervnc-common \
  wmii \
  xfonts-base \
  xfonts-scalable

Configure VNC

/etc/systemd/system/vncserver@:0.service
# Vncserver service file for Debian or Ubuntu with systemd
#
# 1. Copy this file to /etc/systemd/system/vncserver@:1.service
# 2. Edit User=
#    e.g "User=paul"
# 3. Edit the vncserver parameters appropriately in the ExecStart= line!
#    e.g. the -localhost option only allows connections from localhost (or via ssh tunnels)
# 4. Run `systemctl daemon-reload`
# 5. Run `systemctl enable vncserver@:<display>.service`
#

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
User=pi

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/tigervncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/tigervncserver -SecurityTypes VncAuth,TLSVnc %i
ExecStop=/usr/bin/tigervncserver -kill %i

[Install]
WantedBy=multi-user.target

Install Phoscon (DeCONZ) software

Import key

wget -O - http://phoscon.de/apt/deconz.pub.key | \
  apt-key add -

Install software

sh -c "echo 'deb http://phoscon.de/apt/deconz \
  $(lsb_release -cs) main' > \
  /etc/apt/sources.list.d/deconz.list"
apt update
apt install deconz

Enable DeCONZ GUI

systemctl enable deconz-gui
systemctl start deconz-gui
raspberry_phoscon.1607258926.txt.gz · Last modified: by herwarth