DMZ in a Box Don't Panic !

11Dec/110

[Linux] Install Domogik from Mercurial

Hi All,

This is a small step-by-step of how I installed domogok + domoweb from mercurial on a clean Ubuntu Server 10.04LTS + OpenSSH Server role.

All the steps below are a compilation of infos from the wiki + IRC chats.

First thing first ... connect to your box using ssh as user and update the system before installing required packages.

$ sudo aptitude update
$ sudo aptitude safe-upgrade
$ sudo reboot  # I'm sure you also add a kernel update in there :)
$ sudo aptitude install mercurial python2.6-dev gcc libssl-dev libmysqlclient-dev\
 mysql-client  mysql-server-5.1 make ed autoconf libusb-dev swig git-core\
 libyaml-syck-perl libanyevent-perl

Create MySQL Database

$  mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 39
Server version: 5.1.41-3ubuntu12.10 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>  CREATE DATABASE domogik;
Query OK, 1 row affected (0.00 sec)

mysql>  GRANT ALL PRIVILEGES ON domogik.* to domogik@localhost IDENTIFIED BY 'domopass';
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye

Fetch the mercurial sources

$ hg clone http://hg.domogik.org/domogik/
$ hg clone http://hg.domogik.org/domoweb/

If needed, install OWFS :

$ cd
$ wget http://downloads.sourceforge.net/project/owfs/owfs/2.8p4/owfs-2.8p4.tar.gz
$ tar -xzf owfs-2.8p4.tar.gz
$ cd owfs-2.8p4
$ ./configure --with-python
$ make
$ sudo make install

Install domogik :

$ cd domogik/
$ sudo ./install.sh
$ sudo /etc/init.d/domogik start
$ sudo cp /etc/default/domogik /etc/default/domogik.sav # Workaround
$ cd ~/domoweb/
$ sudo ./install.sh
$ sudo rm /etc/default/domogik # Workaround
$ sudo mv /etc/default/domogik.sav /etc/default/domogik # Workaround
$ sudo /etc/init.d/domoweb start

Enjoy your installation on http://your_ip:40404

Additional, udev rules :

$ lsusb
Bus 002 Device 005: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 1-Wire adapter
Bus 002 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

The rule will be :

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="teleinfo", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="04fa", ATTRS{idProduct}=="2490", SYMLINK+="onewire", MODE="0666"

Into /etc/udev/rules.d/domogik.rules

No related posts.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.