Getting MOLGENIS running on Ubuntu

This page describes how to get started with MOLGENIS on Ubuntu Linux. For the sake of completeness we first describe a clean install on  VirtualBox which is a great way to test your MOLGENIS on a Linux environment. Of course, you often will use a non-virtual server to server your MOLGENIS.

This tutorial was tested with:

Installing Ubuntu inside Windows using VirtualBox

Installation of Ubuntu inside VirtualBox is an excellent way to create a MOLGENIS + Linux testing environment. Note that it is much easier to install MOLGENIS on a Windows box directly. See MolgenisOnWindows.

  1. Download and install VirtualBox? (71 MB) with default options from  http://www.virtualbox.org/. Note that you will have to give permission to use network connections etc when asked.
  1. Download the Ubunto DVD image (690 MB) from  http://www.ubuntu.com/getubuntu/download
  1. Configure a new VirtualBox? instance for Ubuntu:
    • Click 'New'
    • Next: Name your virtual machine 'molgenis' and select 'Linux' and 'Ubuntu' in the OS Type section
    • Next: Set Base Memory Size to at least 512MB but 1024MB if available. Note that you should have at least twice the RAM available.
    • Next: Create new hard disk using the default settings
    • Next, Next: Set dynamically expanding storage
    • Next: Set maximum Virtual Disk Location Size (minimum 2Gb, will only use actual space) and choose location for your VM file.
  1. Boot your new Virtual Server from Ubunto DVD image and install Ubuntu
    • Start VirtualBox?. Click 'cancel' if you don't want to register.
    • Choose File → Virtual Media Manager → CD/DVD Images → Add and point to Ubunto iso.
    • Start your virtual machine by pushing 'Start'. Select to mount the Ubunto iso as cd.
    • Alternative step: 'Start' and when running choose 'Devices' → 'CD ROM' → Ubunto ISO. Then Machine → Reset server.
    • Finally install Ubuntu following the Ubuntu install wizard using default options. Use 'molgenis' as user and password. Reboot.
  1. (Optional) Increase graphics resolution
    • Click 'right-ctrl' if you are still inside Ubuntu
    • Choose from menu Devices → Install Guest additions. This will mount a CD inside Ubuntu.
    • Then inside Ubuntu open a Terminal: Applications → Accessories → Terminal
    • Change to CD-ROM via command: cd /media/cdrom0
    • Execute driver installation via command: sudo sh ./VBoxLinuxAdditions-x86.run
    • Reboot via command: sudo shutdown -r now
    • Within Ubuntu you now can change resolution via System → Preferences → Display.

Install MySQL, Tomcat, Java, Eclipse on Ubuntu

  1. Inside Ubuntu open a Terminal:
    Applications -> Accessories -> Terminal
    
  2. Install MySQL using command
    sudo apt-get install mysql-server (remember password)
    
  3. Install Java using command:
    sudo apt-get install sun-java6-jdk
    
  4. Check Java version (1.6) using command:
    java - version
    
  5. Install Tomcat (ONLY for development, otherwise skip):
    Because the apt-get version cannot be used for development:
    Download latest Tomcat 6.x tar.gz from http://tomcat.apache.org/
    Move from downloads to your home directory
    Untar using command: sudo tar zxvf apache-tomcat-6.0.10.tar.gz
    
  6. Install Tomcat (ONLY for production server, otherwise skip)
    sudo apt-get install tomcat6
    Stop it when developing using: /etc/initd/tomcat6 stop
    
  7. Install Eclipse (not via apt-get unfortunately):
    Download latest 'Eclipse for Java EE developers' for Linux 32-bit from http://www.eclipse.org/downloads/
    Move from downloads to your home directory
    Untar using command: tar -xvf eclipse-jee-galileo-SR1-linux-gtk.tar.gz
    You can refer to this location later from Eclipse.
    
  8. (Optional) Create Eclipse shortcut on the desktop
    Right-click on the desktop and select 'Create Launcher'.
    Select command 'eclipse' in /home/molgenis/eclipse
    

Now you have successfully installed all you need to run MOLGENIS.

Subsequently you can either:

Last modified by mswertz, 08/28/10 17:31:42 (10 days ago)