Talk:Ubuntu Install Howto

From ADempiere
Revision as of 10:56, 20 November 2006 by Joseph.brower (Talk)

Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

Instead of instructions on how to export the java_home and compiere_home, maybe we had better install a start-up script, like:

  • #! /bin/sh -e
  • # /etc/init.d startup script for ADempiere
  • # path to JAVA_HOME, usually /usr/lib/jvm/java-1.5.0-sun
  • JAVA_HOME = /path/to/java_home
  • # path to ADempiere_home, usually ....
  • ADEMPIERE_HOME = /path/to/adempiere
  • # add to path
  • PATH=$JAVA_HOME/bin:ADEMPIERE_HOME/utils:$PATH
  • EXPORT JAVA_HOME, ADEMPIERE_HOME
  • # run ADempiere
  • /ADEMPIERE_HOME/utils/RUN_Server2.sh

And save it as adempiere.sh in /etc/init.d . Then, we update the start-up with the script

  •  % update-rc.d adempiere defaults

and give it executable status

  • $chmod +x adempiere

Looks good.

I agree with the whole script idea. In the howto, I think that we should specify where they should install the jdk and such, that way its easier for newbies to follow, and the script is that much easier to write.

Well, it is a very basic script

Yes, the installation script should have as default the most usual parameters, and a comment on what to edit. So, i should have written:

# path to SUN Java SDK, edit according to your configuration and Java version

JAVA_HOME = /usr/lib/jvm/java-1.5.0-sun

And the same for ADEMPIERE_HOME. Anyway, I haven't tested it - I am using Ubuntu but I am still testing ADempiere on Windows.

But we can not specify where to install the JDK - when installing using .deb packages, all dirs are preconfigured.

Can we have a script that downloads/installs the jdk at part of the adempiere installer? It would be like how the jre2 installer is. Also, now that java is open source, could we include it with the installer?