Changes between Initial Version and Version 1 of Installation


Ignore:
Timestamp:
2010-10-07T14:50:13+02:00 (14 years ago)
Author:
jvelde
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Installation

    v1 v1  
     1== Installation manual ==
     2For Ubuntu 10.04, AMD64 Desktop edition. Installation for other operating systems is quite similar and often easier.
     3
     4=== Install Eclipse ===
     5 * '''sudo apt-get install eclipse''', this also installs Java 6 JDK (openjdk)
     6
     7=== Install MySQL ===
     8 * '''sudo apt-get install mysql-server''', set root user password when prompted
     9 * Start MySQL using: '''mysql -u root -p''', enter your password
     10 * Create database with '''create database xgap_1_4_distro;'''
     11 * Grant privileges to user molgenis:''' grant all privileges on xgap_1_4_distro.* to molgenis@localhost identified by 'molgenis'; flush privileges;'''
     12
     13=== Install Tomcat 6 ===
     14 * '''wget !http://apache.xl-mirror.nl//tomcat/tomcat-6/v6.0.29/bin/apache-tomcat-6.0.29.tar.gz'''[[BR]]'''tar xvzf apache-tomcat-6.0.29.tar.gz'''
     15 * '''mv apache-tomcat-6.0.29 /usr/local/tomcat'''
     16 * '''nano ~/.bashrc'''
     17 * In the Nano editor, add “'''export JAVA_HOME=/usr/lib/jvm/java-6-openjdk'''”, save and quit
     18 * Grant rights to Tomcat: '''sudo chmod 777 /usr/local/tomcat * -R'''
     19
     20=== Install Subclipse ===
     21 * Start Eclipse (either Applications -> Programming -> Eclipse or “eclipse” from terminal), select a workspace location, dismiss welcome screen.
     22 * Select “Help -> Install New Software”
     23 * Click “Add”, use Name ‘svn’ and location http://subclipse.tigris.org/update_1.6.x
     24 * Tick ‘Subclipse’, hit Next, Next, Accept, Finish, wait, ignore warning, restart Eclipse
     25 * Select “Window -> Open Perspective -> Other”, “SVN Repository Exploring”, click OK twice (ignore a warning about JavaHL and GNOME keyring)
     26
     27=== Install Java2EE developer tools ===
     28 * “Help -> Install New Software”, in the “Work with” list, drop down and select “Galileo Update Site”
     29 * Tick “Web, XML, and Java EE Development” to select all components. Hit Next, Next, Accept, Finish, restart Eclipse after download
     30
     31=== Install XGAP and Molgenis ===
     32 * Right-click in Repositories window, do “New -> Repository Location”, enter http://www.molgenis.org/svn
     33 * Add another repository: http://www.xgap.org/svn
     34 * From molgenis.org, perform a default “Checkout -> Finish” on the folder “3.3” inside the folder “molgenis”
     35 * From xgap.org, perform a default “Checkout -> Finish” on the folder “xgap_1_4_distro”
     36 * Go to Java perpective: “Window -> Open Perspective -> Other”, “Java”
     37 * Optional, but recommended: View packages as hierarchy, use the triangluar “View menu” button, “Package Presentation -> Hierarchical”
     38 * Expand “handwritten/java”, “(default package)”, rightclick “!XgapGenerate.java”, “Run As -> Java Application”, ignore the warning.
     39 * Rightclick “xgap_1_4_distro” project, hit “Refresh”
     40
     41=== Running on Tomcat ===
     42 * Rightclick “xgap_1_4_distro” project, “Run As -> Run On Server”, select “Apache -> Tomcat v6.0”, hit Next. Browse for the install directory, /usr/local/tomcat and click Finish.
     43
     44=== Configuring storage ===
     45 * The webapplication should be running at http://localhost:8080/xgap_1_4_distro.
     46 * Go there and select "System", subtab "Settings".
     47 * Fill in your storage directory (for UNIX systems, eg 'data/xgap', for Windows systems eg. C:\data\xgap'), and click "Set path".
     48 * This should yield a green "System table exists" message and a path display. If not, your database is not set up correctly. Make sure MySQL is installed and has PATH access, the xgap_1_4_distro database exists and has privileges for user 'molgenis'.
     49 * Now you can test the validity of this path. Use the two "Test dir" buttons to perform make/exists and read/write tests.
     50 * If both tests succeed, your directory is validated and usable in XGAP. This will display a green "VERIFIED" message at the bottom.
     51 * Under UNIX, these tests will probably fail. You will have to create this directory manually with '''mkdir'''. If the application is running as a deployed WAR file, the smartest move is to grant the user 'tomcat' ownership by typing eg. '''chown tomcat6 /data/xgap'''. If you're running from Eclipse, try '''chmod 777 /data/xgap''' or so.
     52
     53=== Loading example dataset and cluster metadata ===
     54 * Run "!QuickStart.java", this should fill up your database and storage locations with all needed data if everything has been set up correctly. The same can be done online with the servlet '''loadexampledata''', there's a hyperlink in the 'About' section.