21.7.09

Openfire in FreeNAS (Freebsd Based)

This blog have moved to Wordpress

I read in ignite realtime forum, there's many people out there can't get their openfire (jabber) server running in bsd. Most of the problem is that java virtual machine can't be found. it is actually pretty simple, diablo jdk isn't installing itself in the standard folder. That's all

Here i will write the guidelines so everyone can run openfire in bsd.. which is such painful experience for some people (ppl will need basic bsd/nix knowledge through).

The platform i will be using here is freeNAS, it is a bsd (6.4 stable) based NAS (network attached storage) server. Note that I didn't use latest FreeNAS, so it maight be somewhat different than later version of bsd (7+).

here's the step :

  1. download / install java development kit with all the dependencies
    url : http://www.freebsdfoundation.org/downloads/java.shtml
    if the java failed to install with missing dependencies, just install the dependencies using pkg_add command.

  2. download openfire package from http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire_3_6_4.tar.gz , then extract the package.

  3. cd to /bin/ and edit the file openfire (using vi or nano, in freeNAS, only nano is available for text editing).

  4. look for the 4th line, uncomment the INSTALL4J_JAVA_HOME_OVERRIDE =
    and insert our java vm location, which could be the problem to most people, since the default installation folder is diablo-jdk1.6.0 unlike older version jdk1.5.X anymore.

    here's the example :

    INSTALL4J_JAVA_HOME_OVERRIDE=/usr/local/diablo-jdk1.6.0

  5. run the binary ./openfire

  6. if it is configured properly, it should appear Usage: ./openfire {start|stop|status} without error message.

  7. voila it's done :D

1 Fingers:

  1. thanks for sharing this site. you can download lots of ebook from here

    http://feboook.blogspot.com

    ReplyDelete