From ec4d1a9bdd67fc911f8d6b1ab672dd3a2ef8f244 Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 14 Aug 2012 14:11:26 +0200 Subject: Reduce packages. --- base-install | 10 +++++++++- config.sh | 11 ++++++----- debian.list | 29 +++++++++++------------------ raptor2-install | 3 ++- rasqal-install | 3 ++- 5 files changed, 30 insertions(+), 26 deletions(-) diff --git a/base-install b/base-install index 3e3454a..b3a7f6e 100755 --- a/base-install +++ b/base-install @@ -13,12 +13,20 @@ DIR=`pwd` # Not logged # Not logged [ "`id -u`" = "0" ] && echo "This script must not be run as root" 1>&2 && exit 1 -check_utils "aptitude apt-get git apt-cache dpkg" +check_utils "aptitude apt-get apt-key git apt-cache dpkg tee wget" echo echo "Base Packages:" echo echo "Updating index..." + +cmd="$WGET -O redland_key.asc $REDLAND_APT_KEY >/dev/null 2>&1" && run_cmd "$cmd" "Download redland apt-key" +cmd="$APT_KEY add redland_key.asc >/dev/null 2>&1; rm redland_key.asc" && run_cmd "$cmd" "Adding redland apt-key" +if ! cat "/etc/apt/sources.list" | grep "$REDLAND_DEB">/dev/null 2>&1; then + echo "deb $REDLAND_DEB ./" | sudo $TEE -a /etc/apt/sources.list >/dev/null + echo "deb-src $REDLAND_DEB ./" | sudo $TEE -a /etc/apt/sources.list >/dev/null +fi + sudo $APTITUDE update -y >/dev/null 2>&1 DISTRIB_INFO=$(cat /proc/version) diff --git a/config.sh b/config.sh index d844d55..30b8912 100755 --- a/config.sh +++ b/config.sh @@ -5,7 +5,7 @@ # 1) Base setup -OT_DIST="debian" # Linux distribution (debian) +OT_DIST="debian" # Linux distribution (debian, ubuntu) OT_INSTALL="local" # Type (gem, local, server) OT_BRANCH="development" # Maturity (development -need SSH key at Github-, master) @@ -19,10 +19,11 @@ OB_NUM_VER="2.3.1" RAPTOR2_NUM_VER="2.0.8" RASQAL_NUM_VER="0.9.29" RUBY_DWL="http://ftp.ruby-lang.org/pub/ruby/1.9" +REDLAND_DWL="http://download.librdf.org" +REDLAND_APT_KEY="http://purl.org/net/dajobe/gnupg.asc" # Done. - ### Nothing to gain from changes below this line. JAVA_CONF="$HOME/.opentox/java.sh" FST_CONF="$HOME/.opentox/4S.sh" @@ -40,6 +41,6 @@ RASQAL_VER="rasqal-$RASQAL_NUM_VER" OB_DEST="$OT_PREFIX/$OB_VER" OB_DEST_BINDINGS="$OT_PREFIX/openbabel-ruby-install" -RAPTOR2_DWL="http://download.librdf.org/source/$RAPTOR2_VER.tar.gz" -RASQAL_DWL="http://download.librdf.org/source/$RASQAL_VER.tar.gz" - +RAPTOR2_DWL="$REDLAND_DWL/source/$RAPTOR2_VER.tar.gz" +RASQAL_DWL="$REDLAND_DWL/source/$RASQAL_VER.tar.gz" +REDLAND_DEB="$REDLAND_DWL/binaries/$OT_DIST/unstable" diff --git a/debian.list b/debian.list index d16ee3f..86a87c0 100644 --- a/debian.list +++ b/debian.list @@ -1,25 +1,18 @@ +aptitude install +automake install build-essential install cmake install +curl install +libglib2.0-dev install libgsl0-dev install -libtool install -openjdk-6-jdk install -r-base install -r-base-dev install +libopenbabel4 install +libopenbabel-dev install libpcre3-dev install -librasqal3-dev install +libreadline-dev install +libtool install libtool install -libglib2.0-dev install ncurses-dev install -libreadline-dev install +openjdk-6-jdk install +r-base-dev install +r-base install uuid-dev install -libraptor1-dev install -libopenbabel4 install -libopenbabel-dev install -automake install -libyaml-dev install -libopenssl-ruby install -libssl-dev install -libxml2-dev install -libssl-dev install -curl install -aptitude install diff --git a/raptor2-install b/raptor2-install index ad44ed4..4d3be2e 100755 --- a/raptor2-install +++ b/raptor2-install @@ -5,7 +5,7 @@ DIR=`pwd` . ./utils.sh || (echo "Utils could not be loaded, check opentox-ui.sh." 1>&2 && exit 1) SELF=$(basename $0 -install) check_log $SELF -check_utils "wget tar make grep" +check_utils "apt-get wget tar make grep" # Build mkdir -p $OT_PREFIX/tmp @@ -15,6 +15,7 @@ export RAPTOR2_DIR=$OT_PREFIX/$SELF cmd="$TAR xvzf $RAPTOR2_VER.tar.gz" && run_cmd "$cmd" "Unpack" rm $RAPTOR2_VER.tar.gz cd $RAPTOR2_VER +cmd="sudo $APT_GET -y build-dep $SELF" && run_cmd "$cmd" "Build dependencies" cmd="./configure --prefix=$RAPTOR2_DIR" && run_cmd "$cmd" "Configure" cmd="$MAKE" && run_cmd "$cmd" "Make" cmd="$MAKE install" && run_cmd "$cmd" "Make Install" diff --git a/rasqal-install b/rasqal-install index bc06450..42a7765 100755 --- a/rasqal-install +++ b/rasqal-install @@ -5,7 +5,7 @@ DIR=`pwd` . ./utils.sh || (echo "Utils could not be loaded, check opentox-ui.sh." 1>&2 && exit 1) SELF=$(basename $0 -install) check_log $SELF -check_utils "wget tar make grep" +check_utils "apt-get wget tar make grep" # Build mkdir -p $OT_PREFIX/tmp @@ -15,6 +15,7 @@ export RASQAL_DIR=$OT_PREFIX/$SELF cmd="$TAR xvzf $RASQAL_VER.tar.gz" && run_cmd "$cmd" "Unpack" rm $RASQAL_VER.tar.gz cd $RASQAL_VER +cmd="sudo $APT_GET -y build-dep $SELF" && run_cmd "$cmd" "Build dependencies" cmd="./configure --prefix=$RASQAL_DIR" && run_cmd "$cmd" "Configure" cmd="$MAKE" && run_cmd "$cmd" "Make" cmd="$MAKE install" && run_cmd "$cmd" "Make Install" -- cgit v1.2.3 From baf3bb2a87769387c3af41918a3769208d18e1bd Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 14 Aug 2012 14:19:47 +0200 Subject: Corrected Path. --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index fd94cd1..b6d8db3 100755 --- a/install +++ b/install @@ -38,7 +38,7 @@ echo [ -f $OT_PREFIX/install/utils.sh ] || (cmd="mkdir -p $OT_PREFIX/install && cp utils.sh $OT_PREFIX/install" && run_cmd "$cmd" "Install utils.sh to OT_PREFIX") [ -f $HOME/.opentox/config/install/config.sh ] || (cmd="mkdir -p $HOME/.opentox/config/install && cp config.sh $HOME/.opentox/config/install" && run_cmd "$cmd" "Install config.sh to CONFIG (~/.opentox/config)") -[ -f $OT_DEFAULT_CONF ] || (cmd="echo '\$aa = { :uri => nil }' > $OT_DEFAULT_CONF" && run_cmd "$cmd" "Install default.rb to CONFIG (~/.opentox/config)") +[ -f $OT_DEFAULT_CONF ] || (cmd="echo '\$aa = { :uri => nil }' > $OT_DEFAULT_CONF" && run_cmd "$cmd" "Install default.rb to CONFIG (~/.opentox)") . ./base-install # Debian specific; disable this for others. -- cgit v1.2.3 From 9942f7eeba957320cf2d7d41a5b1c25a00b2234d Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 14 Aug 2012 15:10:51 +0200 Subject: Builddep not needed for rasqal. --- install | 2 +- rasqal-install | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/install b/install index b6d8db3..bebae73 100755 --- a/install +++ b/install @@ -58,6 +58,6 @@ fi [ -f $HOME/.opentox/config/ambit_descriptors.yaml ] || (cmd="cp ambit_descriptors.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Ambit keys file") [ -f $HOME/.opentox/config/jl_keys.yaml ] || (cmd="cp jl_keys.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Joelib keys file") -[ -f $OT_TOOLS_CONF ] || (cmd="cp ot-tools-user.sh $OT_TOOLS_CONF" && run_cmd "$cmd" "Install ot-tools.sh to CONFIG (~/.opentox/config)") +[ -f $OT_TOOLS_CONF ] || (cmd="cp ot-tools-user.sh $OT_TOOLS_CONF" && run_cmd "$cmd" "Created ot-tools (stored in ~/.opentox)") notify diff --git a/rasqal-install b/rasqal-install index 42a7765..8bd9fbd 100755 --- a/rasqal-install +++ b/rasqal-install @@ -15,7 +15,6 @@ export RASQAL_DIR=$OT_PREFIX/$SELF cmd="$TAR xvzf $RASQAL_VER.tar.gz" && run_cmd "$cmd" "Unpack" rm $RASQAL_VER.tar.gz cd $RASQAL_VER -cmd="sudo $APT_GET -y build-dep $SELF" && run_cmd "$cmd" "Build dependencies" cmd="./configure --prefix=$RASQAL_DIR" && run_cmd "$cmd" "Configure" cmd="$MAKE" && run_cmd "$cmd" "Make" cmd="$MAKE install" && run_cmd "$cmd" "Make Install" -- cgit v1.2.3 From 636a03bf0022ce5275ac5b7683fb694ddf9ee161 Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 14 Aug 2012 18:45:21 +0300 Subject: Update 4store-install --- 4store-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4store-install b/4store-install index 1125a3a..6eebff7 100755 --- a/4store-install +++ b/4store-install @@ -25,7 +25,7 @@ cmd="make install" && run_cmd "$cmd" "Make Install" # Config echo "if echo \"\$LD_LIBRARY_PATH\" | grep -v \"$FST/lib\">/dev/null 2>&1; then export LD_LIBRARY_PATH=\"\$LD_LIBRARY_PATH:$FST/lib\"; fi" >> "$FST_CONF" -if ! cat "$OT_DEFAULT_CONF" | grep "four_store">/dev/null 2>&1; then echo '\$four_store = { :uri => "http://localhost:8088", :user => "", :password => "" }' >> $OT_DEFAULT_CONF; fi +if ! cat "$OT_DEFAULT_CONF" | grep "four_store">/dev/null 2>&1; then echo '$four_store = { :uri => "http://localhost:8088", :user => "", :password => "" }' >> $OT_DEFAULT_CONF; fi echo "$SELF configuration has been stored in '$FST_CONF'." if ! grep "$FST_CONF" $OT_UI_CONF >/dev/null 2>&1; then -- cgit v1.2.3 From c3c26fc7569c4ff8518b604bfcc641e0805b0333 Mon Sep 17 00:00:00 2001 From: davor Date: Wed, 15 Aug 2012 09:38:52 +0200 Subject: Minor fixes. --- 4store-install | 2 +- debian.list | 1 + install | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/4store-install b/4store-install index 6eebff7..c87c2d9 100755 --- a/4store-install +++ b/4store-install @@ -46,4 +46,4 @@ notify # return to wd cd $DIR . ./utils.sh -cmd="$HOME/opentox-ruby/4S/bin/4s-backend-setup opentox" && run_cmd "$cmd" "Create 'opentox' 4store backend" +cmd="$FST/bin/4s-backend-setup opentox" && run_cmd "$cmd" "Create 'opentox' 4store backend" diff --git a/debian.list b/debian.list index 86a87c0..8667119 100644 --- a/debian.list +++ b/debian.list @@ -11,6 +11,7 @@ libpcre3-dev install libreadline-dev install libtool install libtool install +libyaml-dev install ncurses-dev install openjdk-6-jdk install r-base-dev install diff --git a/install b/install index bebae73..5105689 100755 --- a/install +++ b/install @@ -38,7 +38,7 @@ echo [ -f $OT_PREFIX/install/utils.sh ] || (cmd="mkdir -p $OT_PREFIX/install && cp utils.sh $OT_PREFIX/install" && run_cmd "$cmd" "Install utils.sh to OT_PREFIX") [ -f $HOME/.opentox/config/install/config.sh ] || (cmd="mkdir -p $HOME/.opentox/config/install && cp config.sh $HOME/.opentox/config/install" && run_cmd "$cmd" "Install config.sh to CONFIG (~/.opentox/config)") -[ -f $OT_DEFAULT_CONF ] || (cmd="echo '\$aa = { :uri => nil }' > $OT_DEFAULT_CONF" && run_cmd "$cmd" "Install default.rb to CONFIG (~/.opentox)") +[ -f $OT_DEFAULT_CONF ] || (cmd="echo '\$aa = { :uri => nil }' > $OT_DEFAULT_CONF" && run_cmd "$cmd" "Install default.rb to CONFIG (~/.opentox/conf)") . ./base-install # Debian specific; disable this for others. -- cgit v1.2.3 From 0e9e1e4344eb71e5498d3362bd5a943d680a19cc Mon Sep 17 00:00:00 2001 From: davor Date: Wed, 15 Aug 2012 10:40:47 +0200 Subject: SSL packages needed. --- debian.list | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian.list b/debian.list index 8667119..77a8c54 100644 --- a/debian.list +++ b/debian.list @@ -7,8 +7,10 @@ libglib2.0-dev install libgsl0-dev install libopenbabel4 install libopenbabel-dev install +libopenssl-ruby install libpcre3-dev install libreadline-dev install +libssl-dev install libtool install libtool install libyaml-dev install -- cgit v1.2.3 From 56daaa7bd4543d005aad0149547ebc951d086be3 Mon Sep 17 00:00:00 2001 From: davor Date: Wed, 15 Aug 2012 15:19:14 +0200 Subject: package list updated.Fixed path to tmp dir. --- debian.list | 1 - ubuntu.list | 32 +++++++++++++++----------------- utils.sh | 4 ++-- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/debian.list b/debian.list index 77a8c54..6093a9b 100644 --- a/debian.list +++ b/debian.list @@ -12,7 +12,6 @@ libpcre3-dev install libreadline-dev install libssl-dev install libtool install -libtool install libyaml-dev install ncurses-dev install openjdk-6-jdk install diff --git a/ubuntu.list b/ubuntu.list index d16ee3f..f8386d2 100644 --- a/ubuntu.list +++ b/ubuntu.list @@ -1,25 +1,23 @@ +aptitude install +automake install build-essential install cmake install -libgsl0-dev install -libtool install -openjdk-6-jdk install -r-base install -r-base-dev install -libpcre3-dev install -librasqal3-dev install -libtool install +curl install libglib2.0-dev install -ncurses-dev install -libreadline-dev install -uuid-dev install -libraptor1-dev install +libgsl0-dev install libopenbabel4 install libopenbabel-dev install -automake install -libyaml-dev install libopenssl-ruby install +libpcre3-dev install +libraptor1-dev install +librasqal3-dev install +libreadline-dev install libssl-dev install +libtool install libxml2-dev install -libssl-dev install -curl install -aptitude install +libyaml-dev install +ncurses-dev install +openjdk-6-jdk install +r-base-dev install +r-base install +uuid-dev install diff --git a/utils.sh b/utils.sh index 87013d9..0423786 100755 --- a/utils.sh +++ b/utils.sh @@ -73,8 +73,8 @@ install_ruby() { local DIR=`pwd` check_utils "rbenv curl make tar" if ! $RBENV versions $RUBY_NUM_VER | grep $RUBY_NUM_VER>/dev/null 2>&1; then - [ -d $DIR/tmp ] || mkdir -p $DIR/tmp && cd $DIR/tmp - ([ -d $DIR/tmp/ruby-$RUBY_NUM_VER ] || $CURL $RUBY_DWL/ruby-$RUBY_NUM_VER.tar.gz 2>/dev/null | $TAR xz) && cd ruby-$RUBY_NUM_VER + [ -d $OT_PREFIX/tmp ] || mkdir -p $OT_PREFIX/tmp && cd $OT_PREFIX/tmp + ([ -d $OT_PREFIX/tmp/ruby-$RUBY_NUM_VER ] || $CURL $RUBY_DWL/ruby-$RUBY_NUM_VER.tar.gz 2>/dev/null | $TAR xz) && cd ruby-$RUBY_NUM_VER cmd="./configure --prefix=$RUBY_DIR" && run_cmd "$cmd" "Configure" cmd="$MAKE -j2" && run_cmd "$cmd" "Make" cmd="$MAKE install" && run_cmd "$cmd" "Install" -- cgit v1.2.3 From fe584b59db1d4e59567787cddb1cd5bb57fa197e Mon Sep 17 00:00:00 2001 From: davor Date: Wed, 15 Aug 2012 17:20:17 +0200 Subject: Added pauses. --- ot-tools-user.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ot-tools-user.sh b/ot-tools-user.sh index ca3bdbd..4564181 100644 --- a/ot-tools-user.sh +++ b/ot-tools-user.sh @@ -61,6 +61,7 @@ otstart() { echo "usage: otstart [all|algorithm|compound|dataset|feature|model|task|validation|4store]"; return 1;; esac + sleep 1 cd $DIR } @@ -118,6 +119,7 @@ otreload() { echo "usage: otreload [all|algorithm|compound|dataset|feature|model|task|validation|4store]"; return 1;; esac + sleep 1 } # kill unicorn @@ -162,6 +164,7 @@ otkill() { echo "usage: otkill [all|algorithm|compound|dataset|feature|model|task|validation|4store]"; return 1;; esac + sleep 1 } # get service uri -- cgit v1.2.3 From 14aa03789fcb71edecf0d909df4b37e3a4013e44 Mon Sep 17 00:00:00 2001 From: davor Date: Thu, 16 Aug 2012 18:30:31 +0200 Subject: Added 4S backbone for each service. --- 4store-install | 2 +- base-install | 2 +- debian.list | 3 +++ install | 1 + ot-tools-user.sh | 42 +++++++++++++++++++++++++++++------------- utils.sh | 7 ++++--- 6 files changed, 39 insertions(+), 18 deletions(-) diff --git a/4store-install b/4store-install index c87c2d9..ee04738 100755 --- a/4store-install +++ b/4store-install @@ -25,7 +25,7 @@ cmd="make install" && run_cmd "$cmd" "Make Install" # Config echo "if echo \"\$LD_LIBRARY_PATH\" | grep -v \"$FST/lib\">/dev/null 2>&1; then export LD_LIBRARY_PATH=\"\$LD_LIBRARY_PATH:$FST/lib\"; fi" >> "$FST_CONF" -if ! cat "$OT_DEFAULT_CONF" | grep "four_store">/dev/null 2>&1; then echo '$four_store = { :uri => "http://localhost:8088", :user => "", :password => "" }' >> $OT_DEFAULT_CONF; fi +if ! cat "$OT_DEFAULT_CONF" | grep "four_store">/dev/null 2>&1; then echo '$four_store = { :uri => "http://localhost:9088", :user => "", :password => "" }' >> $OT_DEFAULT_CONF; fi echo "$SELF configuration has been stored in '$FST_CONF'." if ! grep "$FST_CONF" $OT_UI_CONF >/dev/null 2>&1; then diff --git a/base-install b/base-install index b3a7f6e..593bb0c 100755 --- a/base-install +++ b/base-install @@ -38,7 +38,7 @@ case "$DISTRIB_INFO" in esac sudo $DPKG --set-selections < "$PACK_LIST" -sudo $APT_GET -y -u dselect-upgrade +sudo $APT_GET -y --force-yes -u dselect-upgrade if [ ! -f $JAVA_CONF ]; then diff --git a/debian.list b/debian.list index 6093a9b..041a3b2 100644 --- a/debian.list +++ b/debian.list @@ -1,8 +1,11 @@ aptitude install automake install +avahi-daemon install build-essential install cmake install curl install +libavahi-glib-dev install +libavahi-client-dev install libglib2.0-dev install libgsl0-dev install libopenbabel4 install diff --git a/install b/install index 5105689..10c02a9 100755 --- a/install +++ b/install @@ -59,5 +59,6 @@ fi [ -f $HOME/.opentox/config/ambit_descriptors.yaml ] || (cmd="cp ambit_descriptors.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Ambit keys file") [ -f $HOME/.opentox/config/jl_keys.yaml ] || (cmd="cp jl_keys.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Joelib keys file") [ -f $OT_TOOLS_CONF ] || (cmd="cp ot-tools-user.sh $OT_TOOLS_CONF" && run_cmd "$cmd" "Created ot-tools (stored in ~/.opentox)") +if ! cat "$OT_TOOLS_CONF" | grep "OT_PREFIX=">/dev/null 2>&1; then echo "OT_PREFIX=$OT_PREFIX" >> $OT_DEFAULT_CONF; fi notify diff --git a/ot-tools-user.sh b/ot-tools-user.sh index 4564181..39f7b52 100644 --- a/ot-tools-user.sh +++ b/ot-tools-user.sh @@ -20,6 +20,18 @@ start_unicorn() { nice bash -c "nohup unicorn -p $2 >/dev/null 2>&1 &" } +# Start unicorn +# @param1 [backend_name] +# @param2 integer Port +# @example start_unicorn algorithm 8081 +start_4s() { + nice bash -c "nohup $OT_PREFIX/4S/bin/4s-backend $1 >/dev/null 2>&1 &"; + sleep 0.5; + nice bash -c "nohup $OT_PREFIX/4S/bin/4s-httpd -H localhost -p $2 -s -1 $1 >/dev/null 2>&1 &"; #-D for testing + sleep 0.5; + +} + # Start the server otstart() { if [ $# != 1 ] @@ -33,22 +45,26 @@ otstart() { otkill $1 DIR=`pwd` case "$1" in - "algorithm") start_unicorn $1 8081;; - "compound") #start_unicorn $1 8082;; + "algorithm") start_4s $1 9081; + start_unicorn $1 8081;; + "compound") #start_4s $1 9082; + #start_unicorn $1 8082;; echo "$1 not available yet.";; - "dataset") start_unicorn $1 8083;; - "feature") start_unicorn $1 8084;; - "model") #start_unicorn $1 8085;; + "dataset") start_4s $1 9083; + start_unicorn $1 8083;; + "feature") start_4s $1 9084; + start_unicorn $1 8084;; + "model") #start_4s $1 9085; + #start_unicorn $1 8085;; echo "$1 not available yet.";; - "task") start_unicorn $1 8086;; - "validation") #start_unicorn $1 8087;; + "task") start_4s $1 9086; + start_unicorn $1 8086;; + "validation") #start_4s $1 9087; + #start_unicorn $1 8087;; echo "$1 not available yet.";; - "4store") nice bash -c "nohup $HOME/opentox-ruby/4S/bin/4s-backend opentox >/dev/null 2>&1 &"; - sleep 1; - nice bash -c "nohup $HOME/opentox-ruby/4S/bin/4s-httpd -D -H localhost -p 8088 opentox >/dev/null 2>&1 &"; - sleep 1; - if ! pgrep -u $USER 4s-backend>/dev/null 2>&1; then echo "Failed to start 4s-backend."; fi - if ! pgrep -u $USER 4s-httpd>/dev/null 2>&1; then echo "Failed to start 4s-httpd."; fi;; + "4store") start_4s opentox 9088;; + #if ! pgrep -u $USER 4s-backend>/dev/null 2>&1; then echo "Failed to start 4s-backend."; fi + #if ! pgrep -u $USER 4s-httpd>/dev/null 2>&1; then echo "Failed to start 4s-httpd."; fi;; "all") otstart 4store; otstart algorithm; #otstart compound; diff --git a/utils.sh b/utils.sh index 0423786..0837f4c 100755 --- a/utils.sh +++ b/utils.sh @@ -127,10 +127,11 @@ notify() { echo if ps -o stat= -p $PPID | grep "s" >/dev/null 2>&1; then echo "IMPORTANT: How to configure your system:" - echo "IMPORTANT: a) Include '$OT_UI_CONF' in shell startup (e.g. ~/.bashrc)." - echo "IMPORTANT: b) Manually source '$OT_UI_CONF' every time." - echo "IMPORTANT: The command in both cases: '. $OT_UI_CONF'" + echo "IMPORTANT: a) Include '$OT_TOOLS_CONF' in shell startup (e.g. ~/.bashrc)." + echo "IMPORTANT: b) Manually source '$OT_TOOLS_CONF' every time." + echo "IMPORTANT: The command in both cases: '. $OT_TOOLS_CONF'" echo "IMPORTANT: NOW would be the best time to configure!" + echo "Visit 'http://opentox.github.com/General/2012/08/09/install-opentox-development-environment/' for further information about the usage of ot-tools." echo echo "Thank you for your attention." echo -- cgit v1.2.3 From 17210051ed747f527690bc67ac06944281e10627 Mon Sep 17 00:00:00 2001 From: davor Date: Fri, 17 Aug 2012 15:47:52 +0200 Subject: Typo. --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 10c02a9..850b30e 100755 --- a/install +++ b/install @@ -59,6 +59,6 @@ fi [ -f $HOME/.opentox/config/ambit_descriptors.yaml ] || (cmd="cp ambit_descriptors.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Ambit keys file") [ -f $HOME/.opentox/config/jl_keys.yaml ] || (cmd="cp jl_keys.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Joelib keys file") [ -f $OT_TOOLS_CONF ] || (cmd="cp ot-tools-user.sh $OT_TOOLS_CONF" && run_cmd "$cmd" "Created ot-tools (stored in ~/.opentox)") -if ! cat "$OT_TOOLS_CONF" | grep "OT_PREFIX=">/dev/null 2>&1; then echo "OT_PREFIX=$OT_PREFIX" >> $OT_DEFAULT_CONF; fi +if ! cat "$OT_TOOLS_CONF" | grep "OT_PREFIX=">/dev/null 2>&1; then echo "OT_PREFIX=$OT_PREFIX" >> $OT_TOOLS_CONF; fi notify -- cgit v1.2.3 From b1f8235760b56b383689813783133f4db1aa023b Mon Sep 17 00:00:00 2001 From: davor Date: Fri, 17 Aug 2012 16:00:52 +0200 Subject: Added external compound uri. --- install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install b/install index 850b30e..537be01 100755 --- a/install +++ b/install @@ -39,6 +39,8 @@ echo [ -f $OT_PREFIX/install/utils.sh ] || (cmd="mkdir -p $OT_PREFIX/install && cp utils.sh $OT_PREFIX/install" && run_cmd "$cmd" "Install utils.sh to OT_PREFIX") [ -f $HOME/.opentox/config/install/config.sh ] || (cmd="mkdir -p $HOME/.opentox/config/install && cp config.sh $HOME/.opentox/config/install" && run_cmd "$cmd" "Install config.sh to CONFIG (~/.opentox/config)") [ -f $OT_DEFAULT_CONF ] || (cmd="echo '\$aa = { :uri => nil }' > $OT_DEFAULT_CONF" && run_cmd "$cmd" "Install default.rb to CONFIG (~/.opentox/conf)") +# Added external compound service uri (only till it is available for the new architecture). +if ! cat "$OT_DEFAULT_CONF" | grep "compound" | grep ":uri=">/dev/null 2>&1; then echo '$compound = { :uri => "http://webservices.in-silico.ch/compound" }' >> $OT_DEFAULT_CONF; fi . ./base-install # Debian specific; disable this for others. -- cgit v1.2.3 From d2115827ab39adf94c65aea26fac44aac9b93177 Mon Sep 17 00:00:00 2001 From: davor Date: Mon, 20 Aug 2012 11:14:34 +0200 Subject: Updated package list. --- debian.list | 2 ++ ubuntu.list | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian.list b/debian.list index 041a3b2..73be6d9 100644 --- a/debian.list +++ b/debian.list @@ -12,9 +12,11 @@ libopenbabel4 install libopenbabel-dev install libopenssl-ruby install libpcre3-dev install +libraptor1-dev install libreadline-dev install libssl-dev install libtool install +libxml2-dev install libyaml-dev install ncurses-dev install openjdk-6-jdk install diff --git a/ubuntu.list b/ubuntu.list index f8386d2..73be6d9 100644 --- a/ubuntu.list +++ b/ubuntu.list @@ -1,8 +1,11 @@ aptitude install automake install +avahi-daemon install build-essential install cmake install curl install +libavahi-glib-dev install +libavahi-client-dev install libglib2.0-dev install libgsl0-dev install libopenbabel4 install @@ -10,7 +13,6 @@ libopenbabel-dev install libopenssl-ruby install libpcre3-dev install libraptor1-dev install -librasqal3-dev install libreadline-dev install libssl-dev install libtool install -- cgit v1.2.3 From a6a8a2e325da962bf02f5406f4dd7f0365b3ccdc Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 21 Aug 2012 09:10:26 +0200 Subject: Enabled compound service. --- ot-tools-user.sh | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/ot-tools-user.sh b/ot-tools-user.sh index 39f7b52..52567f3 100644 --- a/ot-tools-user.sh +++ b/ot-tools-user.sh @@ -47,9 +47,8 @@ otstart() { case "$1" in "algorithm") start_4s $1 9081; start_unicorn $1 8081;; - "compound") #start_4s $1 9082; - #start_unicorn $1 8082;; - echo "$1 not available yet.";; + "compound") start_4s $1 9082; + start_unicorn $1 8082;; "dataset") start_4s $1 9083; start_unicorn $1 8083;; "feature") start_4s $1 9084; @@ -67,7 +66,7 @@ otstart() { #if ! pgrep -u $USER 4s-httpd>/dev/null 2>&1; then echo "Failed to start 4s-httpd."; fi;; "all") otstart 4store; otstart algorithm; - #otstart compound; + otstart compound; otstart dataset; otstart feature; #otstart model; @@ -111,8 +110,7 @@ otreload() { otconfig case "$1" in "algorithm") reload_unicorn 8081;; - "compound") #reload_unicorn 8082;; - echo "$1 not available yet.";; + "compound") reload_unicorn 8082;; "dataset") reload_unicorn 8083;; "feature") reload_unicorn 8084;; "model") #reload_unicorn 8085;; @@ -124,7 +122,7 @@ otreload() { #killall 4s-backend >/dev/null 2>&1;; echo "$1 reload not available yet.";; "all") otreload algorithm; - #otreload compound; + otreload compound; otreload dataset; otreload feature; #otreload model; @@ -157,8 +155,7 @@ otkill() { otconfig case "$1" in "algorithm") kill_unicorn 8081;; - "compound") #kill_unicorn 8082;; - echo "$1 not available yet.";; + "compound") kill_unicorn 8082;; "dataset") kill_unicorn 8083;; "feature") kill_unicorn 8084;; "model") #kill_unicorn 8085;; @@ -169,7 +166,7 @@ otkill() { "4store") killall 4s-httpd >/dev/null 2>&1; killall 4s-backend >/dev/null 2>&1;; "all") otkill algorithm; - #otkill compound; + otkill compound; otkill dataset; otkill feature; #otkill model; @@ -251,8 +248,7 @@ otcheck() { otconfig case "$1" in "algorithm") check_service "algorithm";; - "compound") #check_service "compound";; - echo "$1 not available yet.";; + "compound") check_service "compound";; "dataset") check_service "dataset";; "feature") check_service "feature";; "model") #check_service "model";; @@ -263,7 +259,7 @@ otcheck() { "4store") check_service "four_store";; #killall 4s-backend >/dev/null 2>&1;; "all") otcheck "algorithm"; - #otcheck "compound"; + otcheck "compound"; otcheck "dataset"; otcheck "feature"; #otcheck "model"; @@ -275,3 +271,4 @@ otcheck() { return 1;; esac } +OT_PREFIX=/home/ist/opentox-ruby -- cgit v1.2.3 From 4d30358b050d987a2766d3b64ef3b24774b6f16d Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 21 Aug 2012 12:32:12 +0200 Subject: Added compound to ot-tools. OT_PREFIX fix. --- install | 4 ---- ot-tools-user.sh | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/install b/install index 537be01..a143418 100755 --- a/install +++ b/install @@ -39,9 +39,6 @@ echo [ -f $OT_PREFIX/install/utils.sh ] || (cmd="mkdir -p $OT_PREFIX/install && cp utils.sh $OT_PREFIX/install" && run_cmd "$cmd" "Install utils.sh to OT_PREFIX") [ -f $HOME/.opentox/config/install/config.sh ] || (cmd="mkdir -p $HOME/.opentox/config/install && cp config.sh $HOME/.opentox/config/install" && run_cmd "$cmd" "Install config.sh to CONFIG (~/.opentox/config)") [ -f $OT_DEFAULT_CONF ] || (cmd="echo '\$aa = { :uri => nil }' > $OT_DEFAULT_CONF" && run_cmd "$cmd" "Install default.rb to CONFIG (~/.opentox/conf)") -# Added external compound service uri (only till it is available for the new architecture). -if ! cat "$OT_DEFAULT_CONF" | grep "compound" | grep ":uri=">/dev/null 2>&1; then echo '$compound = { :uri => "http://webservices.in-silico.ch/compound" }' >> $OT_DEFAULT_CONF; fi - . ./base-install # Debian specific; disable this for others. ./raptor2-install # Download, compile and build raptor2. Install to OT_PREFIX. @@ -61,6 +58,5 @@ fi [ -f $HOME/.opentox/config/ambit_descriptors.yaml ] || (cmd="cp ambit_descriptors.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Ambit keys file") [ -f $HOME/.opentox/config/jl_keys.yaml ] || (cmd="cp jl_keys.yaml $HOME/.opentox/config/" && run_cmd "$cmd" "Joelib keys file") [ -f $OT_TOOLS_CONF ] || (cmd="cp ot-tools-user.sh $OT_TOOLS_CONF" && run_cmd "$cmd" "Created ot-tools (stored in ~/.opentox)") -if ! cat "$OT_TOOLS_CONF" | grep "OT_PREFIX=">/dev/null 2>&1; then echo "OT_PREFIX=$OT_PREFIX" >> $OT_TOOLS_CONF; fi notify diff --git a/ot-tools-user.sh b/ot-tools-user.sh index 52567f3..d60a26e 100644 --- a/ot-tools-user.sh +++ b/ot-tools-user.sh @@ -3,6 +3,7 @@ # Load server config otconfig() { source $HOME/.opentox/opentox-ui.sh + source $HOME/.opentox/config/install/config.sh } # Display log @@ -257,7 +258,6 @@ otcheck() { "validation") #check_service "validation";; echo "$1 not available yet.";; "4store") check_service "four_store";; - #killall 4s-backend >/dev/null 2>&1;; "all") otcheck "algorithm"; otcheck "compound"; otcheck "dataset"; @@ -271,4 +271,3 @@ otcheck() { return 1;; esac } -OT_PREFIX=/home/ist/opentox-ruby -- cgit v1.2.3 From 19687a8ad8d01a6e525d03e52ef75ebd9f932303 Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 21 Aug 2012 12:52:45 +0200 Subject: Fixed paths in comments. --- install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install b/install index a143418..75ade71 100755 --- a/install +++ b/install @@ -37,8 +37,8 @@ sudo echo -n "" echo [ -f $OT_PREFIX/install/utils.sh ] || (cmd="mkdir -p $OT_PREFIX/install && cp utils.sh $OT_PREFIX/install" && run_cmd "$cmd" "Install utils.sh to OT_PREFIX") -[ -f $HOME/.opentox/config/install/config.sh ] || (cmd="mkdir -p $HOME/.opentox/config/install && cp config.sh $HOME/.opentox/config/install" && run_cmd "$cmd" "Install config.sh to CONFIG (~/.opentox/config)") -[ -f $OT_DEFAULT_CONF ] || (cmd="echo '\$aa = { :uri => nil }' > $OT_DEFAULT_CONF" && run_cmd "$cmd" "Install default.rb to CONFIG (~/.opentox/conf)") +[ -f $HOME/.opentox/config/install/config.sh ] || (cmd="mkdir -p $HOME/.opentox/config/install && cp config.sh $HOME/.opentox/config/install" && run_cmd "$cmd" "Install config.sh to CONFIG (~/.opentox/config/install)") +[ -f $OT_DEFAULT_CONF ] || (cmd="echo '\$aa = { :uri => nil }' > $OT_DEFAULT_CONF" && run_cmd "$cmd" "Created default.rb service settings (stored in ~/.opentox/config)") . ./base-install # Debian specific; disable this for others. ./raptor2-install # Download, compile and build raptor2. Install to OT_PREFIX. -- cgit v1.2.3