##Create dss-directory in /etc cd /etc/ mkdir dss cd /etc/dss ##install necessary packages sudo apt-get install git-core \ cmake \ libxml2-dev \ libical-dev \ libpoco-dev \ libboost-system-dev \ libboost-filesystem-dev \ libboost-thread-dev \ libboost-program-options-dev \ libboost-test-dev \ xulrunner-dev \ libssl-dev \ python-lxml \ doxygen \ g++ wget http://developer.digitalstrom.org/files/contrib/gsoap_2.7.15-1_i386.deb sudo dpkg -i gsoap_2.7.15-1_i386.deb ##needfull tools for building websites (additional) sudo apt-get install rubygems sudo gem install rake sprockets echo 'export PATH=$PATH:/var/lib/gems/1.8/bin/' >> ~/.bashrc source ~/.bashrc ##compiling dSM-api cd /etc/dss/ git clone git://gitorious.digitalstrom.org/ds485-stack/ds485-core.git cd /etc/dss/ds485-core git checkout testing cmake -DCMAKE_INSTALL_PREFIX=/etc/dss/libdsm make make install cd .. cd /etc/dss/ git clone git://gitorious.digitalstrom.org/ds485-stack/ds485d.git cd /etc/dss/ds485d git checkout testing cmake -DCMAKE_INSTALL_PREFIX=/etc/dss/libdsm make make install cd .. cd /etc/dss/ git clone git://gitorious.digitalstrom.org/ds485-stack/ds485-client.git cd /etc/dss/ds485-client git checkout testing cmake -DCMAKE_INSTALL_PREFIX=/etc/dss/libdsm make make install cd .. cd /etc/dss/ git clone git://gitorious.digitalstrom.org/ds485-stack/dsm-api.git cd /etc/dss/dsm-api git checkout testing cmake -DCMAKE_INSTALL_PREFIX=/etc/dss/libdsm make make install cd .. ##compilling dSS cd /etc/dss/ git clone git://gitorious.digitalstrom.org/dss/dss-mainline.git cd /etc/dss/dss-mainline git submodule update --init git format-patch origin/master cmake -DLIBDSM_PREFIX=/etc/dss/libdsm #some additonal options #cmake -DWITH_DATADIR=data/ #default /usr/share/dss/data #cmake -DWITH_TESTS=yes/ #default YES #cmake -DWITH_SIM=yes/ #default YES #cmake -DCMAKE_BUILD_TYPE=Release/ #default Release make make install make test ##install websrc for building websites (additional) cd /etc/dss/ git clone git://gitorious.digitalstrom.org/dss-websrc/dss-websrc-mainline.git cd /etc/dss/dss-websrc-mainline autoreconf -i ./configure --prefix=/desired/prefix/path ./configure --prefix=/desired/prefix/etc/dss/dss-mainline make make install ##configuring cd /etc/dss/dss-mainline/tools ./create_cert.sh cp dsscert.pem /usr/local/share/dss/data/ cd .. ##download a ready web-UI cd /usr/local/share/dss/data/ rm -r webroot cd /etc/dss wget http://developer.digitalstrom.org/download/dss/1.0/pre-releases/dss-web-1.0.3-beta1-release.tar.gz tar xfv dss-web-1.0.3-beta1-release.tar.gz cd dss-web-1.0.3-beta1/dss-web mv ./webroot /usr/local/share/dss/data/ cd /etc/dss rm -r dss-web-1.0.3-beta1-release.tar.gz rm -r dss-web-1.0.3-beta1