jueves, 28 de marzo de 2013

Instant Messaging Services with Openfire on Ubuntu 12.04 LTS (Precise Pangolin)


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 12.04 LTS (Precise Pangolin) 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.

Prerequisites

Before installing Openfire, make sure your system is up to date. Enter the following commands, one by one, and install any available updates:
sudo apt-get update
sudo apt-get upgrade
Openfire requires a Java runtime engine (JRE). This tutorial uses the OpenJDK provided by the Ubuntu repository. Please note that although alternate Java runtime engines are available, Openfire may not work with them. Enter the following command to install the OpenJDK:
sudo apt-get install openjdk-7-jre
OpenJDK will be installed, along with a series of dependencies it requires.

Adjusting Firewall Settings

If you employ a firewall to specify what ports can be accessed on your VPS, verify that you have the following ports open:
  • 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)
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.

Installing Openfire

Installing Openfire is relatively easy and can be completed in just a couple of steps. Here's how to install Openfire:
  1. Visit the download page for the Openfire RTC server and click the link for the .tar.gz file. 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 and paste in to the wget command in the next step.
  2. 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_7_1.tar.gz
    
  3. Change the name of the download by entering the following command:
    mv downloadServlet\?filename\=openfire%2Fopenfire_3_7_1.tar.gz openfire_3_7_1.tar.gz
    
  4. Untar the software by entering the following command:
    tar -xvzf openfire_3_7_1.tar.gz
    
  5. Move the openfire folder to /opt by entering the following command:
    mv openfire /opt/
    
  6. Edit the configuration file /opt/openfire/conf/openfire.xml, inserting your Linode's public IP address in the <interface> section, and removing the "<!---->" comment markers that surround the <network> section. While not required, this action is helpful if your Linode has multiple IP addresses, and you wish to limit access to a single address.
    File excerpt:/opt/openfire/conf/openfire.xml
    <interface>12.34.56.78</interface>
    
  7. Add a symbolic link for the daemon script to /etc/init.d so that you can start the daemon with a call to service:
    ln -s /opt/openfire/bin/openfire /etc/init.d/
    
  8. Start Openfire with the following command:
    service openfire start
    
This completes the initial installation steps for Openfire. Next, we'll continue with configuration through a web browser.

Configuring Openfire

Configuring Openfire is relatively easy and can be completed in just a couple of steps. Here's how to configure Openfire:
  1. 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 12.34.56.78, you would visit http://12.34.56.78:9090 in your web browser. The webpage shown below appears:
    Language selection in Openfire setup on Ubuntu 12.04 (Precise).
  2. Configure your domain and ports for administration. Use the fully qualified domain name you have assigned to your Linode in DNS. For more infomation: configuring DNS with the Linode Manager).
    Domain and admin ports selection in Openfire setup on Ubuntu 12.04 (Precise).
  3. 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.
    Database type selection in Openfire setup on Ubuntu 12.04 (Precise).
  4. 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.
    Profile storage selection in Openfire setup on Ubuntu 12.04 (Precise).
  5. Enter the email address of the default administrative user and select a strong password.
    Administrator account settings in Openfire setup on Ubuntu 12.04 (Precise).
  6. After the initial web-based configuration is complete, restart the Openfire server before attempting to log in with the default "admin" user account. Enter the following commands, one by one:
    service openfire stop
    service openfire start
    
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 12.04 LTS.

More Information

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.

1 comentario:

  1. Lucky 15 Casino Review 2021 - JTHub
    Lucky 15 광주광역 출장마사지 Casino Review 2021 Lucky 15 안성 출장마사지 is the first to 광주광역 출장마사지 accept players from US and Canada. This casino 삼척 출장마사지 is licensed and regulated by 진주 출장마사지 the Kahnawake Gaming

    ResponderEliminar