Monday, December 9, 2013

How to install and configure IM (Instant Messaging) via Spark & OpenFire:

1.Openfire requires a Java runtime engine (JRE). This tutorial uses the version provided by Oracle.
  Please update the source list:

# vim /etc/apt/sources.list
===================================================================
deb http://mirrors.kernel.org/debian/ squeeze main contrib non-free
deb-src http://mirrors.kernel.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
===================================================================

2. # apt-get update
   # apt-get update

3. # apt-get install sun-java6-jre

4. wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3.6.4_all.deb

5. Install the software using dpkg as follows:

   # dpkg -i *openfire*.deb

6. Next, edit the configuration file
   # vim /etc/openfire/openfire.xml

[at the end of the configuration file give the Ip address of the Openfire host...]

====================================
<interface>122.144.12.49</interface>
====================================

7. Restart the openfire service.
   # /etc/init.d/openfire restart

8. Configuring Openfire through web interface. Go to your browser and enter the following link:
   #  http://YourServerIpAddress:9090
   suppose:  http://122.144.12.49:9090

9.If you have configured firewall please allow the follwing port appropriately:


    3478 - STUN Service (NAT connectivity)
    3479 - STUN Service (NAT connectivity)
    5222 - Client to Server (standard and encrypted)
    5223 - Client to Server (legacy SSL support)
    5229 - Flash Cross Domain (Flash client support)
    7070 - HTTP Binding (unsecured HTTP connecitons)
    7443 - HTTP Binding (secured HTTP connections)
    7777 - File Transfer Proxy (XMPP file transfers)
    9090 - Admin Console (unsecured)
    9091 - Admin Console (secured)


10: Install Spark latest version on Win XP/ 7

        >> after successful installation it will ask to provide Username, Password & Server Name....
        >> Provide the right username, password and the ip of openfire server.
        >> Ha Ha Ha done. Now chat with your nearest collegue.



Special Note:


        ** No need to install any other third party module like Java module Kit, My sql, Xamp etc.
          But if you have sql server 2005/2008, My Sql already installed than you can use them instead of Embaded database as
          we have chosen during configuration of Database.
       
        ** When we install Spark in Windows 7 or Server 2008; we should allow it through firewall both Public & Private Category.

No comments:

Post a Comment