forked from tdhock/SegAnnDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.sh
executable file
·47 lines (40 loc) · 1.65 KB
/
INSTALL.sh
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
45
46
47
# The best web browser for viewing SegAnnDB is an
# old version of google chrome, ca Mar 2013 - Jan 2014.
http://google-chrome.en.uptodown.com/ubuntu/download/65857
# Download python-dev and required packages.
sudo apt-get install python-dev python-setuptools python-numpy python-bsddb3 subversion build-essential python-imaging db-util git
# These are not strictly essential, but are useful:
sudo apt-get install emacs htop
# Download/install pyramid + persona
sudo easy_install "pyramid==1.4.5"
sudo easy_install "pyramid-persona==1.5"
# Download and install SegAnnot and PrunedDP extension modules.
cd
svn checkout svn://r-forge.r-project.org/svnroot/segannot/python segannot
cd segannot
python setup.py build
sudo python setup.py install
# Download/install SegAnnDB.
cd
git clone https://github.com/tdhock/SegAnnDB.git
cd SegAnnDB
sed -i 's#^FILE_PREFIX.*$#FILE_PREFIX = "/var/www"#' plotter/db.py
sudo python setup.py install
# for an apache web server
sudo apt-get install apache2 libapache2-mod-wsgi
cd /var/www
sudo chown www-data .
sudo -u www-data mkdir db secret chromlength
sudo cp ~/SegAnnDB/apache.config /etc/apache2/sites-available/pyramid.conf
sudo a2enmod wsgi
sudo a2dissite 000-default
sudo a2ensite pyramid
cd ~/SegAnnDB
bash server-recover-restart.sh
# edit production.ini: set public server name for persona! (NO TRAILING slash)
# edit /etc/apache2/sites-available/pyramid.conf: add ServerName xxx.xxx.xxx.xxx
sudo wget -O /var/www/chromlength/hg19.txt.gz http://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/chromInfo.txt.gz
# start the local server and 2 daemons (profile processing and
# learning).
mkdir db secret chromlength
bash recover-restart.sh