-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfabfile.py
More file actions
44 lines (40 loc) · 1.86 KB
/
Copy pathfabfile.py
File metadata and controls
44 lines (40 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# A script that sets up the iRODS environment on the server
# For more information, check https://pods.iplantcollaborative.org/wiki/display/start/Using+icommands
from fabric.api import *
#env.user = 'jorgeorodriguez'
env.user = 'jorgeorod'
env.host = ['lima.futuregrid.org']
#env.host = ['login.hpc.arizona.edu']
def setup_icommands():
run("wget -c http://www.iplantcollaborative.org/sites/default/files/irods/icommands.x86_64.tar.bz2")
run("bunzip2 icommands.x86_64.tar.bz2")
run("tar -xvf icommands.x86_64.tar")
#export PATH=~/icommands:${PATH}
run("echo export PATH=~/icommands:'${PATH}' >> ~/.bashrc")
# Setting up Bash autocomplete for icommands
run("wget -c https://pods.iplantcollaborative.org/wiki/download/attachments/6720192/i-commands-auto.bash")
run("mv i-commands-auto.bash .i-commands-auto.bash")
run("echo source .i-commands-auto.bash >> ~/.bashrc")
#run("")
#run("")
def setup_sift():
run("wget -c http://www.vlfeat.org/download/vlfeat-0.9.17-bin.tar.gz")
run("tar -xvf vlfeat-0.9.17-bin.tar.gz")
run("rm -f vlfeat-0.9.17-bin.tar.gz")
run("cp ~/.bashrc ~/.bashrc_before_sift")
run("echo export PATH=~/vlfeat-0.9.17/:'${PATH}' >> ~/.bashrc")
# The last command throws "out: make: *** No targets specified and no makefile found. Stop." error
# followed by "Fatal error: run() received nonzero return code 2 while executing!
# Requested: make
# Executed: /bin/bash -l -c "make" "
#run("cd vlfeat-0.9.17")
#run("make")
def setup_parallel():
run("wget -c http://ftp.gnu.org/gnu/parallel/parallel-20131122.tar.bz2")
#(or, the latest parallel-latest.tar.bz2 )
run("bunzip2 parallel-20131122.tar.bz2")
run("tar xf parallel-20131122.tar")
run("rm- f parallel-20131122.tar")
run("cd parallel-20131122")
run("./configure --prefix=$HOME")
run("make && make install")