Difference between revisions of "Openfire"

From Amahi Wiki
Jump to: navigation, search
Line 1: Line 1:
This is for intermediate to advanced users of Linux an Amahi.
+
[[Category:Apps]]
 +
 
 +
This is for intermediate to advanced users of Linux and Amahi.
  
 
= What is Openfire? =
 
= What is Openfire? =

Revision as of 03:11, 11 June 2011


This is for intermediate to advanced users of Linux and Amahi.

What is Openfire?

Openfire is an XMPP protocol chat server. You can use it for secure communication with family and friends. The protocol can run over SSL and does by default.

You can also use it as an IM gateway via the kraken plugin. That means you register your different users (AIM, Yahoo, GTalk, MSN, etc.) and all of your buddies show up in the same list just by you logging into your chat server. Why would you want to do that? Because when you connect to a wifi hotspot and log into instant messaging such as AIM, your password gets sent as clear text and anyone sniffing on the network will be able to see it. Using your Openfire connection will be encrypted with SSL so even though you're logging in on a wifi hotspot your password won't be easily obtained. The connect is unencrypted, however, from Openfire to the AIM servers because that is the nature of the protocol. That is the case with most of the chat protocols.

How to install Openfire

Download the RedHat version of Openfire under Linux and save it as openfire-3.6.4-1.i386.rpm.

Install the package with the following command since it is an unsigned package.

bash code
​rpm -ivh openfire-3.6.4-1.i386.rpm​


Once it is installed start Openfire.

bash code
​service openfire start​


To initiate the setup for openfire, go to:

Link
​http://hda:9090​


It is recommended for more basic users to use the embedded database rather than create a connection to MySQL. If you're a more advanced user then follow these instructions for creating the database for openfire. Otherwise skip it.

bash code
​hda-create-db-and-user openfire​


Now that you've created your database you need to set up the connection.

Driver: com.mysql.jdbc.Driver
Server: jdbc:mysql://localhost:3306/openfire
username: openfire
password: openfire

Set up your administrator password and you're done.

Note: You will not be able to log into the Openfire through the web logon until after you restart the Openfire service. There is a bug in the Openfire setup.

Restart the Openfire service a couple of times until you're able to log in with the admin password you set up.:

Link
​http://hda:9090​

To restart the server run the following command.

bash code
​service openfire restart​


Restart the setup of openfire

If you find you have a broken install or you messed up some settings you can force Openfire to run the setup again. Just edit openfire.xml.

bash code
​gedit /opt/openfire/conf/openfire.xml​


Change <setup>true</setup> to <setup>false</setup>. Then restart the Openfire service.

bash code
​service openfire restart​


And go to:

Link
​http://hda:9090​