Changeset 102 for drbl-biocluster


Ignore:
Timestamp:
Sep 9, 2009, 12:18:32 PM (15 years ago)
Author:
jazz
Message:
  • tiny bugfix
  • add ganglia installtion
  • add configurations section
File:
1 edited

Legend:

Unmodified
Added
Removed
  • drbl-biocluster/BioCluster_Setup.sh

    r93 r102  
    11#!/bin/bash
    22
    3 if [ ! -e /etc/debian_version ]; then
    4   echo "本批次安裝檔目前僅適用 Debian 或 Ubuntu 系列,敬請見諒!!"
    5   exit 1
    6 fi
    7 
    8 case "$1" in
    9   clean)
    10     sudo rm -rf add_path ape_2.3-1.tar.gz biocLite.R BioConductor.R blast gee_4.13-13.tar.gz GPG-KEY-DRBL lattice_0.17-25.tar.gz mito.nt.gz mpiblast-1.5.0-pio mpiBLAST-1.5.0-pio.tgz mpich2-1.0.8p1 mpich2-1.0.8p1.tar.gz nlme_3.1-92.tar.gz Rmpi_0.5-7.tar.gz torque-2.3.6 torque-2.3.6.tar.gz wwwblast-2.2.20-ia32-linux.tar.gz
    11     exit 0;
    12     ;;
    13   install)
    14     biocluster_setup
    15     ;;
    16   *)
    17     echo "Usage: $0 [ install | clean ]"
    18     ;;
    19 esac
    20 
    21 biocluster_setup()
     3biocluster_install()
    224{
    235#####################################################################
     
    6749  sudo R CMD INSTALL lattice_0.17-25.tar.gz
    6850fi
    69 if [ ! -e ape_2.3-1.tar.gz ]; then
    70   wget http://cran.r-project.org/src/contrib/ape_2.3-1.tar.gz
    71   sudo R CMD INSTALL ape_2.3-1.tar.gz
     51if [ ! -e ape_2.3-2.tar.gz ]; then
     52  wget http://cran.r-project.org/src/contrib/ape_2.3-2.tar.gz
     53  sudo R CMD INSTALL ape_2.3-2.tar.gz
    7254fi
    7355#####################################################################
     
    134116  sudo apt-get -y install linux-image-2.6.22.19-lustre-686 lustre-modules-2.6.22.19-lustre-686 lustre-utils
    135117fi
     118########
     119# 安裝 Ganglia 叢集監控系統
     120########
     121if [ ! -f /usr/sbin/gmond ] || [ ! -f /usr/sbin/gmetad ]; then
     122  echo "Installing Ganglia ...."
     123  sudo apt-get install gmetad ganglia-monitor
     124  sudo apt-get install rrdtool librrds-perl librrd-dev apache2 libapache2-mod-php5 php5-gd apache2-mpm-prefork apache2-utils apache2.2-common libapr1 libaprutil1 libmysqlclient15off libpq5 mysql-common openssl-blacklist ssl-cert
     125  echo "deb http://free.nchc.org.tw/debian testing main" > testing.list
     126  sudo mv testing.list /etc/apt/sources.list.d/
     127  sudo apt-get update
     128  sudo apt-get install ganglia-webfrontend
     129  sudo rm /etc/apt/sources.list.d/testing.list
     130  sudo apt-get update
     131fi
    136132#####################################################################
    137133# 以下為叢集版本的生資相關軟體
     
    196192fi
    197193}
     194
     195function biocluster_config()
     196{
     197########
     198# 設定 Torque
     199########
     200if [ -d /var/spool/torque/ ]; then
     201  for i in `sudo ls /tftpboot/nodes/`
     202  do
     203    sudo cp -r /var/spool/torque /tftpboot/nodes/$i/var/spool/
     204  done
     205fi
     206}
     207
     208if [ ! -e /etc/debian_version ]; then
     209  echo "本批次安裝檔目前僅適用 Debian 或 Ubuntu 系列,敬請見諒!!"
     210  exit 1
     211fi
     212
     213case "$1" in
     214  clean)
     215    sudo rm -rf add_path ape_2.3-1.tar.gz biocLite.R BioConductor.R blast gee_4.13-13.tar.gz GPG-KEY-DRBL lattice_0.17-25.tar.gz mito.nt.gz mpiblast-1.5.0-pio mpiBLAST-1.5.0-pio.tgz mpich2-1.0.8p1 mpich2-1.0.8p1.tar.gz nlme_3.1-92.tar.gz Rmpi_0.5-7.tar.gz torque-2.3.6 torque-2.3.6.tar.gz wwwblast-2.2.20-ia32-linux.tar.gz
     216    exit 0;
     217    ;;
     218  install)
     219    biocluster_install
     220    ;;
     221  config)
     222    biocluster_config
     223    ;;
     224  *)
     225    echo "Usage: $0 [ install | config | clean ]"
     226    ;;
     227esac
Note: See TracChangeset for help on using the changeset viewer.