Project

General

Profile

« Previous | Next » 

Revision 3585

Added by barseghian over 16 years ago

converted txt instructions to html.

View differences:

docs/user/metacatinstall.html
61 61
These documents are meant to outline the metacat installation process on specific platforms. They are <strong><em>not</em></strong> a substitute for the below instructions and only meant as a supplemental guideline. 
62 62
  </p>
63 63
  <ul>
64
    <li> <a href="os_specific/install_metacat_windows.txt">Installing from CVS source on Windows XP</a> </li>
65
    <li> <a href="os_specific/install_metacat_ubuntu.txt">Installing from CVS source on Ubuntu 6.06 (ie Dapper Drake)</a> </li>
64
    <li> <a href="os_specific/install_metacat_windows.html">Installing from CVS source on Windows XP</a> </li>
65
    <li> <a href="os_specific/install_metacat_ubuntu.html">Installing from CVS source on Ubuntu 6.06 (ie Dapper Drake)</a> </li>
66 66
    <li> <a href="os_specific/install_metacat_mac.html">Installing from CVS source on Mac OS X</a> </li>
67 67

  
68 68
  </ul>
docs/user/os_specific/install_metacat_windows.html
1
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0//EN">
2
<html>
3

  
4
<head>
5
  <title>Metacat Install - Windows XP</title>
6
  <link rel="stylesheet" type="text/css" href="@docrooturl@default.css">
7
</head>
8

  
9
<body>
10

  
11
<table class="tabledefault" width="100%">
12
<tr><td rowspan="2"><img src="@docrooturl@images/KNBLogo.gif"></td>
13
<td colspan="7">
14
<div class="title">Metacat Install - Windows XP</div>
15
</td>
16
</tr>
17
<tr>
18
  <td><a href="@server@/" class="toollink"> KNB Home </a></td>
19
  <td><a href="@server@/data.html" class="toollink"> Data </a></td>
20
  <td><a href="@server@/people.html" class="toollink"> People </a></td>
21
  <td><a href="@server@/informatics" class="toollink"> Informatics </a></td>
22
  <td><a href="@server@/biodiversity" class="toollink"> Biocomplexity </a></td>
23
  <td><a href="@server@/education" class="toollink"> Education </a></td>
24
  <td><a href="@server@/software" class="toollink"> Software </a></td>
25
</tr>
26
</table>
27
<hr>
28

  
29
<table class="tabledefault" width="100%">
30
<td class="tablehead" colspan="2"><p class="emphasis">Building Metacat from cvs on Windows XP</p></td>
31
<tr>
32
<td>
33
<p>
34
Matthew Perry<br />
35
10/24/2006
36
</p>
37
  <p class="emphasis">
38
Note: This is not intended to be a complete, step-by-step tutorial but rather a general overview of the process along with some specific "gotchas" that I encountered along the way.
39
  </p>
40
</td>
41
</tr>
42
</table>
43

  
44
<h2>Download and Install via the standard windows installers</h2>
45
<p>
46
  Postgresql 8.1
47
  Java 1.5 JDK
48
  TortiseCVS 
49
</p>
50

  
51
<h2>Tomcat</h2>
52
<p>
53
Download Tomacat5.5 windows installer and install to C:\tomcat5 (or another directory w/out spaces)
54
</p>
55

  
56
<h2>Ant</h2>
57
<p>
58
Download ant 1.6.5-bin and extract to C:\ant
59
</p>
60

  
61
<h2>Environment variables</h2>
62
<pre>
63
Set environment variables (ctl panel > System > Advanced > Environment Variables). 
64
 ANT_HOME => C:\ant
65
 JAVA_HOME => C:\Program_Files\jdk1.5.0_09
66
 PATH => { THE EXISTING PATH };C:\Program_Files\jdk1.5.0_09\bin;C:\ant\bin;C:\Program Files\TortoiseCVS
67
 CVS_RSH => C:\Program Files\TortoiseCVS\TortoisePlink
68
</pre>
69

  
70
<h2>Database</h2>
71
<pre>
72
Use pgadmin to 
73
* Create a new user named 'metacat'
74
* Create a new database named 'metacat', owned by user 'metacat',  with UTF8 Encoding
75
</pre>
76

  
77
<h2>Checkout metacat</h2>
78
<pre>
79
Download the cvs version of metacat
80
    cd c:\worskpace
81
    cvs -d:ext:{ USER }@cvs.ecoinformatics.org:/cvs co metacat
82
    cvs -d:ext:{ USER }@cvs.ecoinformatics.org:/cvs co utilities
83
    cd metacat
84
</pre>
85

  
86
<h2>Edit build.properties</h2>
87
<pre>
88
Adjust build.properties
89
  # Tomcat Properties
90
  tomcat=C:/tomcat5
91
  deploy.dir=C:/tomcat5/webapps
92

  
93
  # Server Properties
94
  config.hostname=localhost
95
  config.port=8080
96

  
97
  # Metacat database user and password and location of file stores
98
  user=metacat
99
  password=metacatpass
100
  datafilepath=C:/workspace/metacat-data
101
  inlinedatafilepath=C:/workspace/metacat-inline-data
102

  
103
  # give username for CVS access to retrieve latest EML
104
  cvsroot=:ext:perry@cvs.ecoinformatics.org:/cvs
105
</pre>
106

  
107
<h2>Run</h2>
108
<pre> 
109
  ant clean install 
110
</pre>
111

  
112
<h2>Create tables</h2>
113
<pre>
114
  "C:\Program Files\PostgreSQL\8.1\bin\psql.exe" -U metacat -W -h localhost -f build/src/xmltables-postgres.sql metacat
115
</pre>
116

  
117
<h2>Register schemas with metacat db</h2>
118
<pre>
119
  ant register-schemas
120
</pre>
121

  
122
<p>
123
If all went well, you should be able to point your browser to http://localhost:8080/knb and see the default metacat skin
124
</p>
125

  
126

  
127

  
128
</body>
129
</html>
0 130

  
docs/user/os_specific/install_metacat_mac.html
1
<h2>Installing Metacat on Mac OSX (10.4.10)</h2>
2
Author: Matthew Perry, Derik Barseghian<br />
3
Date: 11/05/2007<br />
1
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0//EN">
2
<html>
4 3

  
4
<head>
5
  <title>Metacat Install - Mac OS X</title>
6
  <link rel="stylesheet" type="text/css" href="@docrooturl@default.css">
7
</head>
8

  
9
<body>
10

  
11
<table class="tabledefault" width="100%">
12
<tr><td rowspan="2"><img src="@docrooturl@images/KNBLogo.gif"></td>
13
<td colspan="7">
14
<div class="title">Metacat Install - Mac OS X</div>
15
</td>
16
</tr>
17
<tr>
18
  <td><a href="@server@/" class="toollink"> KNB Home </a></td>
19
  <td><a href="@server@/data.html" class="toollink"> Data </a></td>
20
  <td><a href="@server@/people.html" class="toollink"> People </a></td>
21
  <td><a href="@server@/informatics" class="toollink"> Informatics </a></td>
22
  <td><a href="@server@/biodiversity" class="toollink"> Biocomplexity </a></td>
23
  <td><a href="@server@/education" class="toollink"> Education </a></td>
24
  <td><a href="@server@/software" class="toollink"> Software </a></td>
25
</tr>
26
</table>
27
<hr>
28

  
29
<table class="tabledefault" width="100%">
30
<td class="tablehead" colspan="2"><p class="emphasis">Installing Metacat on Mac OSX (10.4.10)</p></td>
31
<tr>
32
<td>
5 33
<p>
6
This is a terse cheatsheet for metacat with postgres on os X. Please see metacat_install_instructs.html for the full details.
34
Author: Matthew Perry<br />
35
Date: 11/9/2006<br />
36
Updated: 11/04/07 Derik Barseghian<br />
7 37
</p>
8 38

  
9
<h2>* pre-requirements</h2>
10
<h3>install ant, postgres, tomcat using macports</h3>
39
  <p class="emphasis">
40
	This is a terse cheatsheet for installing metacat with postgres on os X. Please see the <a href="../metacatinstall.html">general instructions</a> for the full details.
41
  </p>
42
</td>
43
</tr>
44
</table>
45

  
46
<table class="tabledefault" width="100%">
47
<td class="tablehead" colspan="2"><p class="emphasis">Pre-Requirements</p></td>
48
<tr>
49
<td>
50
</td>
51
</tr>
52
</table>
53

  
54
<h2>Install ant, postgres, tomcat using macports</h2>
11 55
<p>Alternatively, download and install ant, postgres and tomcat from source or using fink.</p>
12 56
<p>
13 57
install <a href="http://www.macports.org/">macports</a>. 
......
27 71
sudo port install tomcat5
28 72
</pre>
29 73

  
30
<h2>* metacat install</h2>
74
<table class="tabledefault" width="100%">
75
<td class="tablehead" colspan="2"><p class="emphasis">Metacat Install</p></td>
76
<tr>
77
<td>
78
</td>
79
</tr>
80
</table>
31 81

  
32
<h3>setup database</h3>
82
<h2>Setup Postgres Database</h2>
33 83
<pre>
34 84
cd /opt/local/lib/postgresql82/
35 85
sudo mkdir data
......
76 126
</pre>
77 127

  
78 128

  
79
<h3>checkout metacat</h3>
129
<h2>Checkout Metacat</h2>
80 130
<pre>
81 131
mkdir ~/cvs_src/
82 132
cd ~/cvs_src
......
85 135
cvs -d:ext:your_cvs_name@cvs.ecoinformatics.org:/cvs co utilities
86 136
</pre>
87 137

  
88
<h3>edit build.properties as needed</h3>
138
<h2>Edit build.properties as needed</h2>
89 139

  
90 140
<pre>
91 141
tomcat=/opt/local/share/java/tomcat5
......
108 158
metacat.dir=/Users/yourname/nceas/metacat
109 159
</pre>
110 160

  
111
<h3>install metacat</h3>
161
<h2>Install Metacat</h2>
112 162
<pre>
113 163
cd metacat
114 164
sudo ant install
......
135 185

  
136 186
<p>
137 187
After restarting, you'll need to fire off the following commands in order to start up postgres/tomcat again:
138

  
139
# Startup
140 188
</p>
189
<p>
190
Startup
191
</p>
141 192
<pre>
142 193
/Users/nceas/Apps/postgres/bin/pg_ctl -D /Users/nceas/Apps/postgres/data/ -l /Users/nceas/Apps/postgres/logfile -m fast start
143 194
/Users/nceas/Apps/apache-tomcat-5.5.20/bin/startup.sh
144 195
</pre>
145 196

  
146 197
<p>
147
# Shutdown
198
Shutdown
148 199
</p>
149 200
<pre>
150 201
/Users/nceas/Apps/apache-tomcat-5.5.20/bin/shutdown.sh
......
154 205
<p>
155 206
You can create two shell scripts with the preceeding commands; start_metacat.sh and stop_metacat.sh
156 207
</p>
208

  
209

  
210
</body>
211
</html>
docs/user/os_specific/install_metacat_ubuntu.html
1
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0//EN">
2
<html>
3

  
4
<head>
5
  <title>Metacat Install - Ubuntu</title>
6
  <link rel="stylesheet" type="text/css" href="@docrooturl@default.css">
7
</head>
8

  
9
<body>
10

  
11
<table class="tabledefault" width="100%">
12
<tr><td rowspan="2"><img src="@docrooturl@images/KNBLogo.gif"></td>
13
<td colspan="7">
14
<div class="title">Metacat Install - Ubuntu</div>
15
</td>
16
</tr>
17
<tr>
18
  <td><a href="@server@/" class="toollink"> KNB Home </a></td>
19
  <td><a href="@server@/data.html" class="toollink"> Data </a></td>
20
  <td><a href="@server@/people.html" class="toollink"> People </a></td>
21
  <td><a href="@server@/informatics" class="toollink"> Informatics </a></td>
22
  <td><a href="@server@/biodiversity" class="toollink"> Biocomplexity </a></td>
23
  <td><a href="@server@/education" class="toollink"> Education </a></td>
24
  <td><a href="@server@/software" class="toollink"> Software </a></td>
25
</tr>
26
</table>
27
<hr>
28

  
29
<table class="tabledefault" width="100%">
30
<td class="tablehead" colspan="2"><p class="emphasis">Installing Metacat on Ubuntu</p></td>
31
<tr>
32
<td>
33
  <p class="emphasis">
34
Assumes you have the base ubuntu distribution set up already.
35
  </p>
36
</td>
37
</tr>
38
</table>
39

  
40
<h2>Repositories</h2>
41
<pre>
42
* Add the extra repositories to your apt sources list. 
43
    sudo gedit /etc/apt/sources.list
44
    # add universe and multiverse to the following lines
45
       deb http://us.archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse
46
       deb-src http://us.archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse
47
    sudo apt-get update
48
</pre>
49

  
50
<h2>Ubuntu Package Dependencies</h2>
51
<pre>
52
* Install the ubuntu package dependencies
53
    sudo apt-get install tomcat5-webapps postgresql-server-dev-8.1 postgresql-8.1 sun-java5-jdk \
54
                         apache2 cvs 
55
</pre>
56

  
57
<h2>java jdk</h2>
58
<pre>
59
* Tell the ubuntu system to use the java jdk 
60
    sudo update-java-alternatives -s java-1.5.0-sun
61

  
62
    sudo vi /etc/default/tomcat5
63
      JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
64
      .......
65
      CATALINA_OPTS="-Djava.awt.headless=true -Djava.util.prefs.syncInterval=2000000 -Xmx512M -server"
66
      ....
67
      TOMCAT_SECURITY=no
68

  
69
    sudo /etc/init.d/tomcat5 restart
70
</pre>
71

  
72
<h2>Checkout Metacat</h2>
73
<pre>
74
* Download metacat from CVS and set up utilites     
75
    
76
    mkdir ~/workspace; cd ~/workspace
77
    cvs -d:ext:perry@cvs.ecoinformatics.org:/cvs co metacat
78
    cvs -d:ext:perry@cvs.ecoinformatics.org:/cvs co utilities
79
    cd utilities
80
    ant clean jar
81
    cd ../metacat
82
</pre>
83

  
84
<h2>prep postgres</h2>
85

  
86
<pre>
87
    # Setting up the postgres metacat db
88
    sudo vi /etc/postgresql/8.1/main/pg_hba.conf
89
    # add 
90
      host metacat metacat 127.0.0.1 255.255.255.255 password
91
    sudo su postgres
92
    createdb metacat
93
    psql -d metacat
94
      create user metacat with unencrypted password 'metacatpass';
95
      \q
96
    exit
97
</pre>
98

  
99
<h2>restart postgres</h2>
100
<pre>
101
    sudo /etc/init.d/postgresql-8.1 restart
102
 
103
    # TEST
104
    psql -U metacat -W -h localhost metacat
105
</pre>
106

  
107
<h2>Build</h2>
108
<pre>
109
   sudo touch /var/lib/tomcat5/webapps/knb.war
110
   sudo chown perry /var/lib/tomcat5/webapps/knb.war
111
   cd ~/workspace/metacat
112
   cp build.properties default.build.properties
113
   # Edit build.properties 
114
   vi lib/metacat.properties
115

  
116
   #change
117
     onlySecureLDAPConnection=false
118
   # TODO set up the certificate *********
119

  
120
   ant clean install
121
   # may need to give cvs password a few times on the first build
122
</pre>
123

  
124
<h2>Postgres configuration</h2>
125
<pre>
126
   psql -U metacat -W -h localhost -f build/src/xmltables-postgres.sql metacat
127
   ant register-schemas
128
</pre>
129

  
130
<h2>apache / tomcat integration</h2>
131
<pre>
132
    #the instructions at <a href="http://www.ubuntuforums.org/showthread.php?t=219985">http://www.ubuntuforums.org/showthread.php?t=219985</a> cover this pretty well
133
    #remember to add the 'knb' servlet context
134
 
135
* Make sure metacat_data and metacat_inline_data folders are readable/writable by tomcat user
136
</pre>
137

  
138

  
139
</body>
140
</html>
0 141

  

Also available in: Unified diff