99## Software Prerequisites
1010
1111- Operating system: Ubuntu Server x64 16.04 LTS or upper
12+ - MongoDB 3.4 (will be installed below)
1213
1314## Install dependencies
1415
1516### Install MongoDB
1617
1718Please refer to this comprehensive documentation page about how to install MongoDB on Ubuntu
18- https://docs.mongodb.com/v3.0/tutorial/install-mongodb-on-ubuntu/
19+ https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
20+
21+ quick list of commands that worked for us:
22+
23+ ```
24+ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
25+ echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
26+ sudo apt update
27+ sudo apt install mongodb-org
28+ sudo systemctl enable mongod
29+ sudo systemctl start mongod
30+ ```
1931
2032
2133## Install OpenJDK 8.0
@@ -26,7 +38,24 @@ https://docs.mongodb.com/v3.0/tutorial/install-mongodb-on-ubuntu/
2638
2739` $ sudo useradd -m oce `
2840
29- ## Option 1 - download and compile source code
41+ ## Create the Derby db with users
42+
43+ ### Create install dir
44+
45+ ```
46+ $ sudo mkdir /derby
47+ $ sudo chown -R oce:oce /derby
48+ ```
49+
50+ ### Unzip provided derby database backup
51+
52+ ```
53+ $ sudo apt install p7zip
54+ $ wget http://url-to-derby-download-provided-by-dg-team
55+ $ 7zr x -o/derby oce-derby-*.7z
56+ ```
57+
58+ ## Download and compile the open source code from github.com
3059
3160### Install Maven
3261
@@ -44,7 +73,8 @@ $ git clone https://github.com/devgateway/oc-explorer.git
4473
4574```
4675$ cd oc-explorer
47- $ mvn install
76+ $ git checkout master
77+ $ mvn -Dmaven.javadoc.skip=true -Dmaven.test.skip=true install
4878```
4979
5080### Copy artifact and config to startup locatinon
@@ -55,9 +85,9 @@ $ cp forms/target/forms-*-SNAPSHOT.jar oce.jar
5585$ cp forms/forms.conf oce.conf
5686```
5787
58- ### Edit configuration file
88+ ### Edit configuration file oce.conf
5989
60- Replace website.url with your website's URL
90+ - Replace { website.url} with your website's URL
6191
6292### Make symlink to enable startup as service
6393
@@ -66,3 +96,7 @@ $ sudo ln -s /home/oce/oce.jar /etc/init.d/oce
6696$ sudo update-rc.d oce defaults
6797```
6898
99+
100+ ## Start the server
101+
102+ ` $ sudo service oce start `
0 commit comments