Tag: raspberry

Compiling/Installing the Telldus Service on Raspberry Pi

Time to take a big breath!

Basicly two alternatives either compiling on the pi or cross-compiling on my linux-box.

Since the Telldus-server is a rather small server and knowing that setting up a cross-compiling environment often takes more time than expected, so the choise is easy!

Starting off by installing the development environment on the pi by doing the following:

apt-get install g++
apt-get install cmake

The ‘g++’ is the gnu C++ compiler including all other necessary libraries, ‘cmake’ is a cross-platform make.

Found an excellent description on how to compile telldus on raspberry pi – Link
Basicly repeating it:

nano /etc/apt/sources.list.d/telldus.list
Add the following to file above "deb-src http://download.telldus.com/debian/ stable main"
wget http://download.telldus.se/debian/telldus-public.key
apt-key add telldus-public.key
apt-get update
apt-get install build-essential
apt-get build-dep telldus-core
apt-get install cmake libconfuse-dev libftdi-dev help2man
mkdir -p ~/src/telldus-core

cd ~/src/telldus-core
apt-get –compile source telldus-core
dpkg --install *.deb

Yes! The last install statement is returning “[ ok ] Starting the Telldus TellStick daemon : telldusd.” which is a receipt that the server has started. There is a start/stop script in /etc/init.d/telldusd and this script is run during startup. It is also possible to use this script to restart the server when configuration has been changed.


Time to Configure the Raspberry Pi!

Time to configure the raspberry pi!

Choosing hexxeh raspbian since it seems small and only have a 4 GB SD-card around.

Starting off by downloading the image from http://www.raspbian.org/HexxehImages

Using Win32DiskImager to flash it to the SD-card.

The raspberry pi boots up and the LEDs flashes => seems promising.

Using ssh root@ to login into the raspberry pi. The password is ‘hexxeh’

Following the steps on the download page to configure the hexxeh image:

apt-get update
apt-get install ntp fake-hwclock
dpkg-reconfigure tzdata
apt-get install locales
dpkg-reconfigure locales

rm /etc/ssh/ssh_host_* && dpkg-reconfigure openssh-server
Finally rebooting and logging into the raspberry pi again using ssh.
Now we have achieved a good base image and will continue to add application and development packages.