Setting up DHIS 2 on Ubuntu 8.10

I have been setting up the DHIS 2 application and development environment on Ubuntu 8.10 in order to test things properly in a linux environment as well. Just wanted to share the experience which has been really convenient and nice: Almost everything you need can be found in the Synaptic Package manager, just go there, search for and install:

  • maven2
  • bzr
  • eclipse
  • postgresql
  • mysql-server

Firefox is already installed. The only hickup was Tomcat, which version in the package repo is just broken. Just install the one from the official site instead:

  • Download manually from http://tomcat.apache.org/download-60.cgi and put anywhere, eg /usr/local/tomcat6.
  • Put the attached tomcat file in /etc/init.d/, chmod 755 it, then start with /etc/init.d/tomcat start

Lars

tomcat (327 Bytes)

I have DHIS 2 running on Ubuntu 8.10 and Fedora 10.

Lars recommends to download tomcat from the official tomcat site.

OK. But beaware that for a really heavy production environment you must compile the jsvc as it is documented on $CATALINA_HOME/bin/jsvc.tar.gz file. If you dont you will loose on performance.

For people that prefer to use 8.10 tomcat version... It works too. It sounds little strange to be broken.

One more note: Pay attenyion to apparmor in case you decide to change the database folder of mysql. You must stop it or learn to configure it.

Caveman

Lars Helge �verland wrote:

···

I have been setting up the DHIS 2 application and development environment on Ubuntu 8.10 in order to test things properly in a linux environment as well. Just wanted to share the experience which has been really convenient and nice: Almost everything you need can be found in the Synaptic Package manager, just go there, search for and install:

- maven2
- bzr
- eclipse
- postgresql
- mysql-server

Firefox is already installed. The only hickup was Tomcat, which version in the package repo is just broken. Just install the one from the official site instead:

- Download manually from Apache Download Mirrors and put anywhere, eg /usr/local/tomcat6.
- Put the attached tomcat file in /etc/init.d/, chmod 755 it, then start with /etc/init.d/tomcat start

Lars

I have DHIS 2 running on Ubuntu 8.10 and Fedora 10.

Lars recommends to download tomcat from the official tomcat site.

OK. But beaware that for a really heavy production environment you must
compile the jsvc as it is documented on $CATALINA_HOME/bin/jsvc.tar.gz file.
If you dont you will loose on performance.

For people that prefer to use 8.10 tomcat version... It works too. It sounds
little strange to be broken.

One more note: Pay attenyion to apparmor in case you decide to change the
database folder of mysql. You must stop it or learn to configure it.

Yes we hit an SELinux snag putting mysql data on its own partition on
CentOS server in HISP India office ... "stop it" was easier than
"learn to configure it". One day they will have a proper sysadmin who
will do it nicely.

Caveman

Lars Helge Řverland wrote:

I have been setting up the DHIS 2 application and development environment
on Ubuntu 8.10 in order to test things properly in a linux environment as
well. Just wanted to share the experience which has been really convenient
and nice: Almost everything you need can be found in the Synaptic Package
manager, just go there, search for and install:

- maven2
- bzr
- eclipse
- postgresql
- mysql-server

Firefox is already installed. The only hickup was Tomcat, which version in
the package repo is just broken. Just install the one from the official site
instead:
- Download manually from Apache Download Mirrors and put
anywhere, eg /usr/local/tomcat6.
- Put the attached tomcat file in /etc/init.d/, chmod 755 it, then start
with /etc/init.d/tomcat start

This is my environment as well. Mind you I probably wouldn't go for
8.10 in a production environment anyway. Better to stick with the
8.04 LTS or the upcoming 9.04. But for development it is great.

Bob

···

2009/3/20 Orvalho Joaquim Augusto <orvaquim@gmail.com>:

Lars

Except I'm using a mix of emacs and netbeans :slight_smile:

···

2009/3/20 Bob Jolliffe <bobjolliffe@gmail.com>:

2009/3/20 Orvalho Joaquim Augusto <orvaquim@gmail.com>:

I have DHIS 2 running on Ubuntu 8.10 and Fedora 10.

Lars recommends to download tomcat from the official tomcat site.

OK. But beaware that for a really heavy production environment you must
compile the jsvc as it is documented on $CATALINA_HOME/bin/jsvc.tar.gz file.
If you dont you will loose on performance.

For people that prefer to use 8.10 tomcat version... It works too. It sounds
little strange to be broken.

One more note: Pay attenyion to apparmor in case you decide to change the
database folder of mysql. You must stop it or learn to configure it.

Yes we hit an SELinux snag putting mysql data on its own partition on
CentOS server in HISP India office ... "stop it" was easier than
"learn to configure it". One day they will have a proper sysadmin who
will do it nicely.

Caveman

Lars Helge Řverland wrote:

I have been setting up the DHIS 2 application and development environment
on Ubuntu 8.10 in order to test things properly in a linux environment as
well. Just wanted to share the experience which has been really convenient
and nice: Almost everything you need can be found in the Synaptic Package
manager, just go there, search for and install:

- maven2
- bzr
- eclipse
- postgresql
- mysql-server

Firefox is already installed. The only hickup was Tomcat, which version in
the package repo is just broken. Just install the one from the official site
instead:
- Download manually from Apache Download Mirrors and put
anywhere, eg /usr/local/tomcat6.
- Put the attached tomcat file in /etc/init.d/, chmod 755 it, then start
with /etc/init.d/tomcat start

This is my environment as well. Mind you I probably wouldn't go for
8.10 in a production environment anyway. Better to stick with the
8.04 LTS or the upcoming 9.04. But for development it is great.

Bob

Lars

I think it is great to see this discussion BUT I have two comments:

  1. Most importantly, we need to caputure all the great knowledge and experimentation in the network on the WIKI, in addition to lively discussion here. So please transfer your HOWTO’s to pages like this one:

http://208.76.222.114/confluence/display/DOC/Online+server+installation

(and correct the info that’s already there)

  1. I think it is quite fine to discuss these things on the NEW list: dhis2-devs@lists.launchpad.net. But I don’t think it’s a good idea for using the old dhis-dev@hisp.info. Also, we have set up dhis-implementers@googlegroups.com which could be used for this kind of discussion.

Knut

···

2009/3/20 Bob Jolliffe bobjolliffe@gmail.com

Except I’m using a mix of emacs and netbeans :slight_smile:

2009/3/20 Bob Jolliffe bobjolliffe@gmail.com:

2009/3/20 Orvalho Joaquim Augusto orvaquim@gmail.com:

I have DHIS 2 running on Ubuntu 8.10 and Fedora 10.

Lars recommends to download tomcat from the official tomcat site.

OK. But beaware that for a really heavy production environment you must

compile the jsvc as it is documented on $CATALINA_HOME/bin/jsvc.tar.gz file.

If you dont you will loose on performance.

For people that prefer to use 8.10 tomcat version… It works too. It sounds

little strange to be broken.

One more note: Pay attenyion to apparmor in case you decide to change the

database folder of mysql. You must stop it or learn to configure it.

Yes we hit an SELinux snag putting mysql data on its own partition on

CentOS server in HISP India office … “stop it” was easier than

“learn to configure it”. One day they will have a proper sysadmin who

will do it nicely.

Caveman

Lars Helge Řverland wrote:

I have been setting up the DHIS 2 application and development environment

on Ubuntu 8.10 in order to test things properly in a linux environment as

well. Just wanted to share the experience which has been really convenient

and nice: Almost everything you need can be found in the Synaptic Package

manager, just go there, search for and install:

  • maven2
  • bzr
  • eclipse
  • postgresql
  • mysql-server

Firefox is already installed. The only hickup was Tomcat, which version in

the package repo is just broken. Just install the one from the official site

instead:

anywhere, eg /usr/local/tomcat6.

  • Put the attached tomcat file in /etc/init.d/, chmod 755 it, then start

with /etc/init.d/tomcat start

This is my environment as well. Mind you I probably wouldn’t go for

8.10 in a production environment anyway. Better to stick with the

8.04 LTS or the upcoming 9.04. But for development it is great.

Bob

Lars


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Cheers,
Knut Staring

Ok!

Sorry I will help the how to.

Caveman

Knut Staring wrote:

···

I think it is great to see this discussion BUT I have two comments:

1) Most importantly, we need to caputure all the great knowledge and experimentation in the network on the WIKI, in addition to lively discussion here. So please transfer your HOWTO's to pages like this one:
http://208.76.222.114/confluence/display/DOC/Online+server+installation

(and correct the info that's already there)

2) I think it is quite fine to discuss these things on the NEW list: dhis2-devs@lists.launchpad.net <mailto:dhis2-devs@lists.launchpad.net>. But I don't think it's a good idea for using the old dhis-dev@hisp.info <mailto:dhis-dev@hisp.info>. Also, we have set up dhis-implementers@googlegroups.com <mailto:dhis-implementers@googlegroups.com> which could be used for this kind of discussion.

Knut

2009/3/20 Bob Jolliffe <bobjolliffe@gmail.com <mailto:bobjolliffe@gmail.com>>

    Except I'm using a mix of emacs and netbeans :slight_smile:

    2009/3/20 Bob Jolliffe <bobjolliffe@gmail.com
    <mailto:bobjolliffe@gmail.com>>:
     > 2009/3/20 Orvalho Joaquim Augusto <orvaquim@gmail.com
    <mailto:orvaquim@gmail.com>>:
     >> I have DHIS 2 running on Ubuntu 8.10 and Fedora 10.
     >>
     >> Lars recommends to download tomcat from the official tomcat site.
     >>
     >> OK. But beaware that for a really heavy production environment
    you must
     >> compile the jsvc as it is documented on
    $CATALINA_HOME/bin/jsvc.tar.gz file.
     >> If you dont you will loose on performance.
     >>
     >> For people that prefer to use 8.10 tomcat version... It works
    too. It sounds
     >> little strange to be broken.
     >>
     >> One more note: Pay attenyion to apparmor in case you decide to
    change the
     >> database folder of mysql. You must stop it or learn to configure it.
     >
     > Yes we hit an SELinux snag putting mysql data on its own partition on
     > CentOS server in HISP India office ... "stop it" was easier than
     > "learn to configure it". One day they will have a proper
    sysadmin who
     > will do it nicely.
     >
     >> Caveman
     >>
     >> Lars Helge Řverland wrote:
     >>>
     >>> I have been setting up the DHIS 2 application and development
    environment
     >>> on Ubuntu 8.10 in order to test things properly in a linux
    environment as
     >>> well. Just wanted to share the experience which has been really
    convenient
     >>> and nice: Almost everything you need can be found in the
    Synaptic Package
     >>> manager, just go there, search for and install:
     >>>
     >>> - maven2
     >>> - bzr
     >>> - eclipse
     >>> - postgresql
     >>> - mysql-server
     >>>
     >>> Firefox is already installed. The only hickup was Tomcat, which
    version in
     >>> the package repo is just broken. Just install the one from the
    official site
     >>> instead:
     >>> - Download manually from
    Apache Download Mirrors and put
     >>> anywhere, eg /usr/local/tomcat6.
     >>> - Put the attached tomcat file in /etc/init.d/, chmod 755 it,
    then start
     >>> with /etc/init.d/tomcat start
     >
     > This is my environment as well. Mind you I probably wouldn't go for
     > 8.10 in a production environment anyway. Better to stick with the
     > 8.04 LTS or the upcoming 9.04. But for development it is great.
     >
     > Bob
     >
     >>>
     >>> Lars
     >>>
     >>
     >

    _______________________________________________
    Mailing list: https://launchpad.net/~dhis2-devs
    <https://launchpad.net/~dhis2-devs&gt;
    Post to : dhis2-devs@lists.launchpad.net
    <mailto:dhis2-devs@lists.launchpad.net>
    Unsubscribe : https://launchpad.net/~dhis2-devs
    <https://launchpad.net/~dhis2-devs&gt;
    More help : https://help.launchpad.net/ListHelp

--
Cheers,
Knut Staring

------------------------------------------------------------------------

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

Forwarded to the new list.

···

---------- Forwarded message ----------
From: Juma Lungo jumal@ifi.uio.no

Date: Tue, Mar 24, 2009 at 7:46 AM
Subject: Re: [Dhis-dev] Setting up DHIS 2 on Ubuntu 8.10
To: dhis-dev@hisp.info

Hi Bob

any particular reason for not using Ubuntu 8.10.

is it because of short period of support?

we are currently deploying DHIS2 in 8.10 as production servers

and every thing is currently fine.

Lungo

On Fri, March 20, 2009 18:58, Bob Jolliffe wrote:

2009/3/20 Orvalho Joaquim Augusto orvaquim@gmail.com:

I have DHIS 2 running on Ubuntu 8.10 and Fedora 10.

Lars recommends to download tomcat from the official tomcat

site.

OK. But beaware that for a really heavy production

environment you must

compile the jsvc as it is documented on

$CATALINA_HOME/bin/jsvc.tar.gz file.

If you dont you will loose on performance.

For people that prefer to use 8.10 tomcat version… It works

too. It sounds

little strange to be broken.

One more note: Pay attenyion to apparmor in case you decide

to change the

database folder of mysql. You must stop it or learn to

configure it.

Yes we hit an SELinux snag putting mysql data on its own

partition on

CentOS server in HISP India office … “stop it” was easier

than

“learn to configure it”. One day they will have a proper

sysadmin who

will do it nicely.

Caveman

Lars Helge ?verland wrote:

I have been setting up the DHIS 2 application and

development environment

on Ubuntu 8.10 in order to test things properly in a linux

environment as

well. Just wanted to share the experience which has been

really convenient

and nice: Almost everything you need can be found in the

Synaptic Package

manager, just go there, search for and install:

  • maven2
  • bzr
  • eclipse
  • postgresql
  • mysql-server

Firefox is already installed. The only hickup was Tomcat,

which version in

the package repo is just broken. Just install the one from

the official site

instead:

  • Download manually from

http://tomcat.apache.org/download-60.cgi and put

anywhere, eg /usr/local/tomcat6.

  • Put the attached tomcat file in /etc/init.d/, chmod 755

it, then start

with /etc/init.d/tomcat start

This is my environment as well. Mind you I probably wouldn’t

go for

8.10 in a production environment anyway. Better to stick with

the

8.04 LTS or the upcoming 9.04. But for development it is

great.

Bob

Lars


Cheers,
Knut Staring