Table of Contents

Home automation server

This page is part of my Home Automation project.

Hardware

eBox 2300 fanless embedded PC from DMP Electronics Inc


Debian Linux Installation

Requirements:

Prepare installation media

These instructions apply for Debian 6.0, nickname Squeeze. USB Flash memory stick with minimum capacity of 256 MB is needed.

Follow Debian installation instructions.

Download hd-media/boot.img.gz from Debian repository, unzip it. Insert USB stick, unmount it if necessary. Then write the extracted image to the stick. Notice: it's expected here that USB stick appears as /dev/sdb. Check your configuration.

$ wget http://http.us.debian.org/debian/dists/squeeze/main/installer-i386/current/images/hd-media/boot.img.gz
$ gunzip boot.img.gz
$ sudo umount /dev/sdb
$ sudo dd if=boot.img of=/dev/sdb

Re-install USB stick, now it gets mounted. Download Debian network install ISO image and copy it to the stick.

$ wget http://cdimage.debian.org/debian-cd/6.0.3/i386/iso-cd/debian-6.0.3-i386-netinst.iso
$ cp debian-6.0.3-i386-netinst.iso /media/Debian\ Inst/
$ sync
$ sudo umount /dev/sdb

Install

Attach external display and PS/2 keyboard to eBox (USB keyboard won't work with eBox BIOS).

Insert USB stick, boot the device, and run Debian installer. Notice that installation takes several hours and there are installation questions requiring user interaction every now and then.


Configuration

Fine tune Debian for Flash operation according to these instructions: Tips for running Linux on a flash device

Networking

For server operation, configure static IP address. Either locally in /etc/network/interfaces:

iface eth0 inet static
address <ip-address>
netmask <network-mask>
broadcast <broadcast-address>
gateway <gateway-address>
dns-nameservers <dns-server-address>

Alternatively configure MAC-based static IP address at the dhcp-server of your network.

Time

Install ntpdate and let crond run it once a night in order to maintain your system clock.

$ apt-get install ntpdate
$ crontab -e

Add following line to run time synchronization each night. Select hour [2] and minute [57] according to your preference.

57 2 * * * /usr/sbin/ntpdate <ntp-server>