Difference between revisions of "GBrowse2 VMs"

From GMOD
Jump to: navigation, search
(Getting Started with the VirtualBox VM)
(Getting Started with the VirtualBox VM)
Line 18: Line 18:
 
Next, download GBrowse2, VirtualBox Edition. The image is ~1.4 Gb in size:
 
Next, download GBrowse2, VirtualBox Edition. The image is ~1.4 Gb in size:
  
* Direct download from SourceForge: [[http://sourceforge.net/projects/gmod/files/Generic%20Genome%20Browser/GBrowse-2.50/Growse%202.50,%20VirtualBox%20Edition.ova/download Growse 2.50, VirtualBox Edition.ova]]
+
* Direct download from Amazon S3: [[https://s3.amazonaws.com/GMOD/GBrowse+2.50%2C+VirtualBox+Edition.ova Growse 2.50, VirtualBox Edition.ova]]
 
* As a torrent file: [[Media:GBrowse_2.50_VirtualBox_Edition.torrent|GBrowse_2.50_VirtualBox_Edition.torrent]].
 
* As a torrent file: [[Media:GBrowse_2.50_VirtualBox_Edition.torrent|GBrowse_2.50_VirtualBox_Edition.torrent]].
  
Line 29: Line 29:
 
When the VM was installed, VirtualBox should have automatically sets up port forwarding from the host (physical) machine's port 8081 to the guest (virtual) machine's port 80. Check this now by opening up a web browser on the '''host''' machine, and requesting http://localhost:8081. This should bring you to the GBrowse2 welcome page. If this does '''not''' work, then see [[#Editing Network Settings]] for help.
 
When the VM was installed, VirtualBox should have automatically sets up port forwarding from the host (physical) machine's port 8081 to the guest (virtual) machine's port 80. Check this now by opening up a web browser on the '''host''' machine, and requesting http://localhost:8081. This should bring you to the GBrowse2 welcome page. If this does '''not''' work, then see [[#Editing Network Settings]] for help.
  
The GBrowse2 VM has two user accounts preinstalled. One is the "GBrowse" account, a restricted autologin shell that runs the welcome screen, and the other is the "Administrator" account, which has full administrative access to the server....
+
===User Accounts===
 +
 
 +
The GBrowse2 VM has two user accounts preinstalled. One is the "GBrowse" account, a restricted autologin shell that runs the welcome screen, and the other is the "Administrator" account. The GBrowse account has restricted access to the system resources and is there as a poor man's "kiosk mode" for browsing databases installed on the VM. The Administrator account is allowed to run the ''sudo'' command to elevate privileges, and was created for the purpose of adding and configuring new GBrowse databases and tracks.
 +
 
 +
When you first start up the VirtualBox VM, you will be logged into the GBrowse account automatically. To log in as Administrator, go to the menu at the upper left of the desktop and choose ''Log Out...''. When prompted, select either the ''Log Out'' or ''Switch Users'' button. You will then be taken to a login screen. Select the ''Administrator'' user, and type the password '''gbrowse''', to be taken to the administrator user's desktop. From here you can administer GBrowse from the command line.
 +
 
 +
If this is a publicly-accessible machine, you will probably want to change the administrator's password. You can do this by

Revision as of 16:55, 4 September 2012

__NOTITLE__

GBrowse2 Virtual Machines

GBrowse running under VirtualBox] Click to view at full resolution

GBrowse versions 2.50 and higher are available as preconfigured virtual machines. Each VM provides you with a stable, self-contained environment on which to build a GBrowse-based web site. Two versions are available:

  1. A VirtualBox VM that can be run on any Windows, Mac OS, Solaris or Linux desktop system or server using the Open Source VirtualBox application.
  2. A Amazon Web Services VM that runs under the Amazon Elastic Compute Cloud (EC2), and can be used to host GBrowse with no investment in computer hardware whatsoever.

Because of the many Perl and other third-party software packages that are needed to run GBrowse, it is much easier to run GBrowse from these VMs than by installing from source or binary. Performance of either type of VM is excellent, and they provide added benefits in flexibility and future expansion.

Getting Started with the VirtualBox VM

To start using the GBrowse2 VirtualBox VM, first install the VirtualBox package onto the desktop or server system that will be hosting the VM. You may [download VirtualBox directly] from its web site, or, if you are using a debian or RedHat-based Linux distribution, use the software package manager to install "VirtualBox". The VirtualBox Extension Pack, which adds support for USB 2.0 devices, is not required to run GBrowse2.

Next, download GBrowse2, VirtualBox Edition. The image is ~1.4 Gb in size:

The download will give you a compressed virtual machine image file named "GBrowse 2.XX VirtualBox Edition.ova".

Now launch the VirtualBox GUI, choose File=>Import Appliance... and select the downloaded .ova file. This will install and initialize the GBrowse2 VM. If you prefer the command-line version of VirtualBox, run VBoxManage import 'GBrowse 2.XX VirtualBox Edition.ova' .

Once GBrowse is installed, you may run it by selecting it in the GUI and pressing the Start button (command-line equivalent VBoxManage startvm 'GBrowse 2.XX VirtualBox Edition' ). The virtual machine will boot, and in about 30s will bring up the Chromium browser displaying the welcome apge shown at the top of this documentation. There are several example genome data sources preinstalled. Please go ahead and browse them by clicking on the links under Example Databases.

When the VM was installed, VirtualBox should have automatically sets up port forwarding from the host (physical) machine's port 8081 to the guest (virtual) machine's port 80. Check this now by opening up a web browser on the host machine, and requesting http://localhost:8081. This should bring you to the GBrowse2 welcome page. If this does not work, then see #Editing Network Settings for help.

User Accounts

The GBrowse2 VM has two user accounts preinstalled. One is the "GBrowse" account, a restricted autologin shell that runs the welcome screen, and the other is the "Administrator" account. The GBrowse account has restricted access to the system resources and is there as a poor man's "kiosk mode" for browsing databases installed on the VM. The Administrator account is allowed to run the sudo command to elevate privileges, and was created for the purpose of adding and configuring new GBrowse databases and tracks.

When you first start up the VirtualBox VM, you will be logged into the GBrowse account automatically. To log in as Administrator, go to the menu at the upper left of the desktop and choose Log Out.... When prompted, select either the Log Out or Switch Users button. You will then be taken to a login screen. Select the Administrator user, and type the password gbrowse, to be taken to the administrator user's desktop. From here you can administer GBrowse from the command line.

If this is a publicly-accessible machine, you will probably want to change the administrator's password. You can do this by