How to Setup Chat Server Using Openfire 3.7.1 in Ubuntu Server 12.10

This guide shown you how to build chat server using Openfire 3.7.1 in ubuntu server 12.10. Openfire is a free and open source real-time collaboration (RTC) instant messaging server. It uses the only widely adopted open protocol for instant messaging, XMPP (also called Jabber). Openfire is incredibly easy to install and configure, but offers rock-solid security and performance. Openfire licensed under the Open Source Apache License.

In additonal, openfire also available for major platform ( windows, Mac OS and Linux). Follow the step-by-step to install and configure chat/IM server using Openfire 3.7.1 on ubuntu server edition

Step-by-Step to Installing and Configure Chat/IM Server using Openfire

Step 1. Login using SSH or Login Directly into ubuntu server 12.10. Before installing Openfire server, make sure your system is up to date. Enter the following commands, one by one, and install any available updates:

Ignore all installation errors regarding user and folder permissions.it cause depending on your version of JRE/JDK, Now you need to editing file /etc/init/d/openfire in line 27. Replacejava-6-sunwithjava-6-oracleorjava-7-oracle.

sudo apt-get install rpl

sudo rpl '6-sun' '7-oracle' /etc/init.d/openfire

sudo service openfire start

Step 6. Allow ports for Openfire

You need to setup firewall and allow some ports for openfire on ubuntu server, use ufw command to set firewall openfire

You need to download install IM/VOIP client software on all PC/Laptop to connect with the Openfire server. You can install any IM client that uses the XMPP/Jabber protocol for example the excellent Pidgin, it available for Linux Ubuntu, Windows, and Mac OSX. for Ubuntu users pidgin can be installed from the Ubuntu Software Center.

sudo apt-get install pidgin

If you have done install pidgin,Make sure that you select XMPP

The native cross plaform client for Openfire is Spark, it also available for Linux, Windows and Mac OSX. Download spark from Igniterealtime Download Page, and install it on ubuntu desktop edition (Ubuntu 11.04, Ubuntu 11.10, ubuntu 12.04 and Ubuntu 12.10)

wget http://download.igniterealtime.org/spark/spark_2_6_3.tar.gz

tar -zxvf spark_2_6_3.tar.gz

sudo mkdir /opt/spark

sudo mv Spark/* /opt/spark/

Create a desktop launcher file, Open terminal and run following command