-
Notifications
You must be signed in to change notification settings - Fork 8
/
ubuntuinstall
88 lines (53 loc) · 2.81 KB
/
ubuntuinstall
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Elegance Install Instructions for Ubuntu 11.10 64-bit(Oneiric Ocelot)
LAMP Installation Instructions
Install LAMP
We employ a LAMP(Linux, Apache HTTP Server, MySQL, PHP) system to host our MySQL server containing databases created by Elegance. Although these instructions were written for Ubuntu 11.04 they are applicable to 11.10 as well. Please follow the guide written by Falko Timme ([email protected]) to complete this step.
http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-11.10-lamp
After installation of your LAMP system, be sure to upload the structure.sql database. You may then change the name of this dataset to reflect your specific project.
Install Java 7 JDK (Oracle)
Oneiric Ocelot will automatically install Open JDK 6 for you. However, we strongly suggest using the Java 7 JDK.
Download the file jdk-7-linux-x64.tar.gz from Orace
(http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html)
Extract the contents of the downloaded file to your home folder I renamed the folder java-7-oracle. Next move the extracted folder to /usr/lib/jvm/
cd
sudo mkdir -p /usr/lib/jvm/ #just in case
sudo mv java-7-oracle/ /usr/lib/jvm/
Next, install the update java package by Bruce Ingalls
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install update-java
Select the new version of Java you moved to your /usr/lib/jvm/ folder (/usr/lib/jvm/java-7-oracle)
sudo update-java
Check that you are now running Java 7
java -version
javac -version
Install Elegance
Move the Folder named “Elegance” to your Desktop. This folder will contain all of the files necessary to run Elegance not including a MySQL server and Image Files.
The start file will reads as:
#!/bin/bash
java -classpath -Xms1000M -Xmx14000M -cp lib/Elegance.jar/:lib/mysql-connector-java-5.1.18-bin.jar:lib/jai_codec.jar:
lib/jai_core.jar:lib/vecmath.jar:lib/j3dcore.jar:lib/j3dutils.jar:lib/j3dcore-ogl.so Elegance
Edit The 2nd line of the start file to reflect the directory containing the Elegance folder. Adjust -Xmx to reflect
your computer's capabilities.
The configuration.txt file is displayed below. Make the necessary edits to match your MySQL server setup.
# Elegance User
***ENTER YOUR ELEGANCE USERNAMES HERE***
#
# Database Name
***ENTER MYSQL DATABASE NAMES HERE****
#
# Database Server
***ENTER SERVER ADDRESS HERE***
#
# Database Username
***ENTER MYSQL USERNAME HERE***
#
# Database Password
***ENTER MYSQL PASSWORD HERE***
#
#
Create an Image Directory
We suggest creating a directory separate from the Elegance folder to contain your image files. We create a z drive for this purpose.
Open a terminal and type in the following commands:
sudo mkdir /z
sudo chmod -R 777 /z