This document is an older, unmaintained guide. There may be a new guide available for this software.
Openfire is an open source real-time collaboration (instant messaging) server, built on the XMPP protocol and available for multiple platforms. This guide will help you get started with Openfire on your Ubuntu 10.04 LTS (Lucid) Linux VPS.
If you haven't done so already, please follow the steps outlined in our getting started guide before following these instructions, and make sure your system is fully updated. Initial configuration steps will be performed through the terminal; please make sure you're logged into your Linode as root via SSH.
Openfire requires a Java runtime engine (JRE). This tutorial uses the version provided by Sun Microsystems. Please note that although alternate Java runtime engines are available, Openfire may not work well with them. Add the partner package repository to your /etc/apt/sources.list file, as shown below:
# Partner repository deb http://archive.canonical.com/ lucid partner
If you had to add the partner repository to your sources, issue the following command to update your package database:
apt-get update apt-get upgrade
Issue the following command to install prerequisite packages on your server:
apt-get install sun-java6-jre
The Sun Java6 JRE will be installed, along with a series of dependencies it requires. You will be prompted to accept the licensing agreement for Sun Java before proceeding.
If you employ a firewall to specify what ports can be accessed on your VPS, please make sure you have the following ports open:
Additional ports may need to be opened later to support more advanced XMPP services, but these are the ports that Openfire will use by default.
Visit the download page for the Openfire RTC server and click the link for the "deb" package. You will be taken to another page, which will start the download to your workstation. You may cancel this download, as a manual download link will be presented that you may copy to your clipboard. Use wget on your Linode to retrieve the package (substitute the link for the current version in the command below).
wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3.6.4_all.deb mv downloadServlet\?filename\=openfire%2Fopenfire_3.6.4_all.deb openfire_3.6.4_all.deb
Install the software using dpkg as follows:
dpkg -i openfire_3.6.4_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.
Restart Openfire with the following command:
This completes the initial installation steps for Openfire. Next, we'll continue with configuration through a web browser.
Direct your browser to your Linode's IP address or FQDN (fully qualified domain name, if an entry in DNS points to your Linode's IP) on port 9090. As an example, if your Linode's IP address were "188.8.131.52", you would visit http://184.108.40.206:9090 in your web browser. You will be presented with a language selection screen similar to this:
Next, you'll be asked to configure your domain and ports for administration. Use the fully qualified domain name you have assigned to your Linode in DNS (more infomation: configuring DNS with the Linode Manager).
You may choose to use Openfire's internal database for account management, or you may connect to an external database. Most users will want to choose the built-in option.
User profiles may be stored in the server database, or they may be pulled from LDAP or Clearspace. Most users will want to choose the default option.
Enter the email address of the default administrative user and select a strong password.
After the initial web-based configuration is complete, restart the Openfire server before attempting to log in with the default "admin" user account.
If you're experiencing difficulty using the credentials you just created to log in, please use "admin/admin" as the username/password. You'll need to update your credentials immediately afterward for security purposes. Congratulations! You've successfully installed the Openfire RTC server on Ubuntu 10.04 LTS.
You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.
This guide is licensed under a Creative Commons Attribution-NoDerivs 3.0 United States License.
Last edited by Sharon Campbell on Tuesday, September 24th, 2013 (r3684).