Step by step for install and configure Open fire on Ubuntu server12.04



sudo apt-get purge openjdk*
After that, go and download Java JRE package from here. When prompted, save the download. Please select the 32 or 64 bit .tar.gz version file from the list.
tar -xvf ~/Downloads/jre-7u3-linux-i586.tar.gz
sudo mkdir -p /usr/lib/jvm/jre1.7.0
sudo mv jre1.7.0_03/* /usr/lib/jvm/jre1.7.0/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 0

# mysql -u root -p;
#mysql > CREATE DATABASE openfire;
#mysql > quit;
3.Download the openfire 3.7.1 .deb package from http://www.igniterealtime.org/downloads/index.jsp
I get the openfire_3.7.1_all.deb, put it on /opt
when I try to install using this command:
4.
# dpkg -i openfire_3.7.1_all.deb

Next, edit the configuration file /etc/openfire/openfire.xml, inserting your Linode's public IP address in the <interface> section, and removing the "<!-- -->" comment markers that surround this section.

File excerpt:/etc/openfire/openfire.xml

<interface>12.34.56.78</interface>

Restart Openfire with the following command:

/etc/init.d/openfire restart



Or

1) Download and make a fresh installed Ubuntu 12.04 Desktop Edition for 32 bits.
2) Download and install jre-6u33-linux-i586.bin (jdk is not need just jre):
Get it here (or google for it):
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Then set it up:
chmod +x jre-6u33-linux-i586.bin Or Download tar.gz file
./jre-6u33-linux-i586.bin Extract tar file
mv jre1.6.0_33 /opt


3)# mysql -u root -p;
#mysql > CREATE DATABASE openfire;
#mysql > quit;
4) Download and install openfire openfire_3_7_1.tar.gz
tar xvfz openfire_3_7_1.tar.gz
mv openfire /opt

Go to the openfire folder and continue with the rest:

6)cd /opt/openfire/bin
Uncomment and modify the following line at the beginning of "/opt/openfire/bin/openfire" script to override "JAVA_HOME":

INSTALL4J_JAVA_HOME_OVERRIDE=/opt/jre1.6.0_33

WARNING: This is not need if "echo $JAVA_HOME" point to a valid ORACLE Java 1.5 (or later) or OPENJDK installation path. Openfire does not works with "gcj" which can be installed on Ubuntu, check installed version executing "java -version".

Then just start it!

7)./openfire start

8)Next, edit the configuration file /etc/openfire/openfire.xml, inserting your Linode's public IP address in the <interface> section, and removing the "<!-- -->" comment markers that surround this section.

File excerpt:/etc/openfire/openfire.xml

<interface>12.34.56.78</interface>

Restart Openfire with the following command:

9)/etc/init.d/openfire restart










3 comments:

  1. You instruction for Ubuntu 12.04 server 64bit does not work. I tried it on barebone installation of Ubuntu 12.04 server 64bit with SSH and LAMP installation. I was hoping your posted would since it was so recent.

    ReplyDelete
    Replies
    1. now i am using ubuntu 12.04 only
      last 5 day's back only i installed ubuntu server12.04 with 64 bit versions
      Step 1.download sun jre software
      through ftp upload it and extract it
      after that give that path ..
      it will work
      any else Contact me

      Delete
  2. pls say how to edit my xml


    ReplyDelete