Deprecated. This material represents early efforts and may be of interest to historians. It doe not describe current VIVO efforts.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Note

This appears to have been last updated for VIVO 1.3.


This is a step by step command line run-thru of installing VIVO 1.3 on ubuntu natty 11.04.

 
#This is written in the form of executable lines that should be syntactically correct. 
#Comments are placed in comment blocks
#It's assumed the syntax and commands speak somewhat for themselves
#also, everything is assumed to be occurring from your home folder ~/

#uncomment multiverse and universe and partner
sudo nano /etc/apt/sources.list

#update and install needed packages
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install sun-java6-jdk sun-java6-jre mysql-server tomcat6 ant unzip

#get prompted for mysql password and enter 'vitro123'
#accept sun license

#get VIVO and prep for install
wget http://sourceforge.net/projects/vivo/files/VIVO%20Application%20Source/rel-1.3.zip/download
mv download rel-1.3.zip
unzip rel-1.3*.zip

#do mysql setup
#we're creating a blank db and user for use by the vivo web app
mysql -u root -p
	CREATE USER 'vitro'@'localhost' IDENTIFIED BY 'vitro123';
	CREATE DATABASE vitrodb CHARACTER SET utf8; 
        GRANT ALL ON vitrodb.* TO 'vitro'@'localhost' IDENTIFIED BY 'vitro123'; 
exit

#Set the deploy properties file
cd vivo-rel-1.3
cp example.deploy.properties deploy.properties
nano deploy.properties
     tomcat.home = /var/lib/tomcat6
     VitroConnection.DataSource.url = jdbc:mysql://localhost/<yourdb>
     VitroConnection.DataSource.username = <yourusername>
     VitroConnection.DataSource.password = <yourpassword>
     rootUser.emailAddress = vitro@localhost

#Setup directories
sudo mkdir /usr/local/vivo
sudo mkdir /usr/local/vivo/data
sudo mkdir /usr/local/vivo/data/solr

#Build VIVO
cd ~/vivo-rel-1.3/
sudo ant all

#Setup permissions
sudo chown -R tomcat6:tomcat6 /usr/local/vivo
sudo chmod -R 777 /usr/local/vivo
sudo chmod -R 777 /usr/share/tomcat6/
sudo chown -R tomcat6:tomcat6 /usr/share/tomcat6
sudo chmod -R 777 /var/lib/tomcat6/
sudo chown -R tomcat6:tomcat6 /var/lib/tomcat6

#start vivo
sudo service tomcat6 start

#VIVO logs
tail -f /var/log/tomcat6/catalina.out
tail -f /usr/share/tomcat6/logs/vivo.all.log

#login to webapp as vitro@localhost with password 'rootPassword' and update password
  • No labels