2011年11月5日 星期六

Installing XMPP Server on Ubuntu Linux

Instant messaging is a popular application in our life ,  most of today's smartphone IM apps are build upon a protocol named XMPP like google talk , Whatsapp , skype ,etc., It it useful to learn how to setup your own XMPP server when we consider to make our app user can chat with some other users on the move (for example: mobile chat room or a mobile MMORPG ) or the real-time server push function (like the Google's C2DM with app engine).

To apply XMPP functionalities to our app , we need to have a server side for handling the account management and message forwarding first.


Here are the steps to install an XMPP server (on Ubuntu Linux):

    and extract :
         #tar -xzvf openfire_3_0_0.tar.gz
           #mv openfire /opt
2. Start Installation Process
    
    a.  #bin/Openfire start
    b.  Insert http://localhost:9090 in your browser to start the web-based wizard
    c.  You will need to have a database system (ex: mysql) on your server that can be accessed by Openfire. Create a table for Openfire when or before you are in the database setup step.   
    d. Now you can access your own XMPP backend server through http://your-domain:9090

We will have our XMPP client in Android platform in the next post !! Have fun !