Changeset 102 for drbl-biocluster
- Timestamp:
- Sep 9, 2009, 12:18:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-biocluster/BioCluster_Setup.sh
r93 r102 1 1 #!/bin/bash 2 2 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() 3 biocluster_install() 22 4 { 23 5 ##################################################################### … … 67 49 sudo R CMD INSTALL lattice_0.17-25.tar.gz 68 50 fi 69 if [ ! -e ape_2.3- 1.tar.gz ]; then70 wget http://cran.r-project.org/src/contrib/ape_2.3- 1.tar.gz71 sudo R CMD INSTALL ape_2.3- 1.tar.gz51 if [ ! -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 72 54 fi 73 55 ##################################################################### … … 134 116 sudo apt-get -y install linux-image-2.6.22.19-lustre-686 lustre-modules-2.6.22.19-lustre-686 lustre-utils 135 117 fi 118 ######## 119 # 安裝 Ganglia 叢集監控系統 120 ######## 121 if [ ! -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 131 fi 136 132 ##################################################################### 137 133 # 以下為叢集版本的生資相關軟體 … … 196 192 fi 197 193 } 194 195 function biocluster_config() 196 { 197 ######## 198 # 設定 Torque 199 ######## 200 if [ -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 205 fi 206 } 207 208 if [ ! -e /etc/debian_version ]; then 209 echo "本批次安裝檔目前僅適用 Debian 或 Ubuntu 系列,敬請見諒!!" 210 exit 1 211 fi 212 213 case "$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 ;; 227 esac
Note: See TracChangeset
for help on using the changeset viewer.