- Made sure apt-get update was included the OMERO dependencies step
Java
Add the following two lines to your /etc/apt/sources.list:
- Code: Select all
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
- Code: Select all
# apt-get update
# apt-get install sun-java6-jdk
Accept the licensing terms.
ZeroC Ice
- Code: Select all
# apt-get install zeroc-ice33
PostgreSQL
Install PostgreSQL and create an "omero" database super-user with the default password "omero".
- Code: Select all
# apt-get install postgresql-8.4
# sudo -u postgres createuser -P -s omero
could not change directory to "/root"
Enter password for new role:
Enter it again:
OMERO dependencies
Ensure that you have "universe" and "multiverse" enabled in your /etc/apt/sources.list:
- Code: Select all
deb http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid main universe multiverse
deb-src http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid main universe multiverse
deb http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates main universe multiverse
deb-src http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates main universe multiverse
deb http://security.ubuntu.com/ubuntu lucid-security main universe multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security main universe multiverse
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
- Code: Select all
# apt-get update
# apt-get install python-imaging mencoder python-numpy python-tables python-matplotlib unzip apache2 libapache2-mod-fastcgi
Create an "omero" user and an OMERO data directory owned by that user:
- Code: Select all
# adduser omero
...
# mkdir /OMERO
# chown omero:omero /OMERO
Switch to the "omero" user:
- Code: Select all
# sudo -u omero -i
Download and extract the latest OMERO.server bundle:
- Code: Select all
$ wget http://hudson.openmicroscopy.org.uk/view/Beta4.2/job/OMERO-Beta4.2/lastSuccessfulBuild/artifact/trunk/target/OMERO.server-Beta-4.2.3-DEV-56b0ba3f.zip
$ unzip OMERO.server*
Perform initial OMERO.server setup:
- Code: Select all
$ cd OMERO.server*
$ bin/omero db script
Please enter omero.db.version [OMERO4.2]:
Please enter omero.db.patch [0]:
Please enter password for OMERO root user:
Please re-enter password for OMERO root user:
Saving to /home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/OMERO4.2__0.sql
$ createdb -O omero omero
$ createlang plpgsql omero
$ psql -h localhost -U omero omero < OMERO4.2__0.sql
Password for user omero:
$ bin/omero admin start
Creating /home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/var/master
Creating /home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/var/registry
No descriptor given. Using etc/grid/default.xml
Waiting on startup. Use CTRL-C to exit
OMERO.server will now be available on TCP/4063 and TCP/4064.
Perform OMERO.web setup:
Generate an OMERO.web Apache stanza as the "omero" user:
- Code: Select all
# sudo -u omero -i
$ cd OMERO.server*
$ bin/omero web config apache
###
### Stanza for OMERO.web created 2011-04-25 12:02:26.635085
###
FastCGIExternalServer "/home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/var/omero.fcgi" -host 0.0.0.0:4080
<Directory "/home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/var">
Options -Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
<Directory "/home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/lib/python/omeroweb/media">
Options -Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Alias /appmedia /home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/lib/python/omeroweb/media
Alias / "/home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/var/omero.fcgi/"
Insert the OMERO.web Apache stanza in to /etc/apache2/sites-enabled/000-default as the "root" user:
Example complete /etc/apache2/sites-enabled/000-default file:
- Code: Select all
# cat /etc/apache2/sites-enabled/000-default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
###
### Stanza for OMERO.web created 2011-04-25 12:02:26.635085
###
FastCGIExternalServer "/home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/var/omero.fcgi" -host 0.0.0.0:4080
<Directory "/home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/var">
Options -Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
<Directory "/home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/lib/python/omeroweb/media">
Options -Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Alias /appmedia /home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/lib/python/omeroweb/media
Alias / "/home/omero/OMERO.server-Beta-4.2.3-DEV-56b0ba3f/var/omero.fcgi/"
</VirtualHost>
Restart Apache:
- Code: Select all
# /etc/init.d/apache2 restart
Perform final OMERO.web configuration as the "omero" user:
- Code: Select all
# sudo -u omero -i
$ cd OMERO.server*
$ bin/omero web syncmedia
$ bin/omero web start
Starting OMERO.web... [OK]
OMERO.web will now be accessible on TCP/80.