Difference between revisions of "Mini-DCE eibd"

From LinuxMCE
Jump to: navigation, search
(Install on Pandaboard (Rages))
Line 1: Line 1:
= Install on Pandaboard =
+
= Install eibd =
  
I installed the Standalone DCE in a pandaboard with Ubuntu 11.04, these are the steps I followed:
+
I compiled eibd from source:
  
* Install apache2 php5 and mysql, option phpmyadmin
+
        * Prerequisites (from README BCU SDK)
        ° sudo apt-get install apache2
+
        The BCU SDK needs the following software to be installed:
        ° sudo apt-get install php5 libapache2-mod-php5
+
        • A reasonably recent Linux system (e.g. Fedora Core 2 or Debian Sarge)
        ° sudo apt-get install mysql-server mysql-client
+
        • GCC and G++ in version 3.3 or higher
        ° sudo apt-get install libapache2-mod-auth-mysql php5-mysql
+
        • libxml2 (plus development files) 2.6.16 or higher
        ° in option sudo apt-get install phpmyadmin, sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin,
+
        • flex (Debian users must install flex-old, if it is present, instead of flex)
          You will need to edit /etc/phpmyadmin/config.inc.php and delete "//" from:
+
        • bison
          // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
+
        • GNU make
 +
        • xsltproc (part of libxslt)
 +
        • xmllint (part of libxml2 sources)
 +
        • indent (if you want a readable source code for the PHP and Java clients)
 +
        • A java compiler and a jar tool, if you want to build the Java library.
  
* Install build requirements
 
        ° sudo apt-get install build-essential g++ libmysqlclient15-dev libattr1-dev libxml2-dev
 
  
* Download the source
+
        * Compile Pthsem
        ° mkdir -p /home/public/arm-pandaboard
+
        ° cd /home/public/arm-pandaboard
+
        ° svn co http://svn.linuxmce.org/svn/people/hari/mini/ 
+
  
* Make
+
        ° wget http://sourceforge.net/projects/bcusdk/files/pthsem/pthsem_2.0.8.tar.gz
        ° cd /home/public/arm-pandaboard/mini/src/
+
        ° ./configure (''I add -D_FORTIFY_SOURCE=0 to the CFLAGS while compiling pthsem. There seems to be a
        ° edit Makefile and delete AEt_EMC2000. I needed a bin file of EIB-eibd and I added this to the makefile,
+
                      problem with FORTIFY_SOURCE on some archtiectures.'').
          but we must have installed eibd.
+
        ° make
        ° make
+
        ° make install
        ° now copy the bin directory in /usr/pluto/bin and in /opt/pluto/bin
+
  
* Import the database
 
  
        ° go in /home/public/arm-pandaboard/mini/dumps and run ./import.sh
+
        * Compile EIBD from BCU SDK
  
* Run mini-install.sh
+
        ° wget http://sourceforge.net/projects/bcusdk/files/bcusdk/bcusdk_0.0.5.tar.gz
        ° go in /home/public/arm-pandaboard/mini/installer and run ./mini-install.sh
+
        ° ./configure --without-pth-test --enable-onlyeibd --enable-eibnetiptunnel
 +
        ° make
 +
        ° make install
  
* Install lmce_admin
+
Now modify rc.local
        ° download the source, go in /var/www/ and sudo svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/web/lmce-admin
+
        ° now for simplicity we can use phpMyAdmin, and see in the database pluto_main the table Users and
+
          Installers and insert the data of our users, your password should be md5, then (thanks Possy)
+
          in mysql:
+
  
          "update Users set password = md5 ('your-password) where PK_Users = 1;"
+
        /sbin/route add 224.0.23.12 dev eth0
 
+
        /usr/bin/eibd -i -u --eibaddr=0.0.1 --daemon=/var/log/eibd.log ipt:your_gateway_ip
        ° in Installers_Users modifiy userCanModifyInstallation at 1 and you check that FK_users and
+
          FK_Installation match PK_Users and PK_Installetion in tables Users and Installetion.
+

Revision as of 22:05, 17 August 2011

Install eibd

I compiled eibd from source:

       * Prerequisites (from README BCU SDK)
       The BCU SDK needs the following software to be installed:
       • A reasonably recent Linux system (e.g. Fedora Core 2 or Debian Sarge)
       • GCC and G++ in version 3.3 or higher
       • libxml2 (plus development files) 2.6.16 or higher
       • flex (Debian users must install flex-old, if it is present, instead of flex)
       • bison
       • GNU make
       • xsltproc (part of libxslt)
       • xmllint (part of libxml2 sources)
       • indent (if you want a readable source code for the PHP and Java clients)
       • A java compiler and a jar tool, if you want to build the Java library.


       * Compile Pthsem
       ° wget http://sourceforge.net/projects/bcusdk/files/pthsem/pthsem_2.0.8.tar.gz
       ° ./configure (I add -D_FORTIFY_SOURCE=0 to the CFLAGS while compiling pthsem. There seems to be a 
                      problem with FORTIFY_SOURCE on some archtiectures.).
       ° make
       ° make install


       * Compile EIBD from BCU SDK
       ° wget http://sourceforge.net/projects/bcusdk/files/bcusdk/bcusdk_0.0.5.tar.gz
       ° ./configure --without-pth-test --enable-onlyeibd --enable-eibnetiptunnel
       ° make
       ° make install

Now modify rc.local

       /sbin/route add 224.0.23.12 dev eth0
       /usr/bin/eibd -i -u --eibaddr=0.0.1 --daemon=/var/log/eibd.log ipt:your_gateway_ip