Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Howto: Openfire - XMPP (also called Jabber) Server

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    U.S.A & Brazil
    Beans
    180
    Distro
    Ubuntu 12.04 Precise Pangolin

    Howto: Openfire - XMPP (also called Jabber) Server

    Installing openfire
    http://www.igniterealtime.org/projec...fire/index.jsp

    Install Ubuntu 6.06 LTS LAMP
    Recommended sites to setup your LAMP server:
    http://www.howtoforge.com/ubuntu_lamp_for_newbies
    https://help.ubuntu.com/community/Ap...&redirect=LAMP

    Check which version of Java you are running. Note the following: the .tar.gz build does not contain a bundled Java runtime (JRE). Therefore, you must have JDK or JRE 1.5.0 (Java 5) or later installed on your system. You can check your java version by typing "java -version" at the command line and (if necessary) upgrade your Java installation by visiting http://java.sun.com.)

    Java 6 is available for 6.06 LTS via the "backports" repository. If this is a fresh install of Ubuntu, you will need to edit your SOURCES.LIST to enable this repository.
    Code:
    $ sudo vi /etc/apt/sources.list
    Uncomment the following line(s):
    Default source.list.
    Code:
    # deb http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
    Uncommented.
    Code:
    deb http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
    Update system.
    Code:
    $ sudo apt-get update
    Install java6.
    Code:
    $ sudo apt-get install sun-java6-bin
    Check java versions on your system.
    Code:
    $ java -version
    Install java6 If you don't have java already installed.
    Code:
    $ sudo apt-get install sun-java6-bin
    Configure Java.
    Code:
    $ sudo update-alternatives --config java
    Select java6 for your default.
    select /usr/lib/jvm/java-6-sun/jre/bin/java
    To create a database for openfire MySQL, Oracle, Microsoft SQLServer, PostgreSQL, IBM DB2, or HSQLDB can be used. I chose MySQL since it was installed with my LAMP setup.

    Now use phpmyadmin or the terminal to create the database. The following is through the terminal.

    Login as root
    Code:
    $ su
    Login to MySQL
    Code:
    # mysql
    or the following if you setup a user and a password.
    Code:
    # mysql -u USERNAME -p
    Create the database in MySQL
    Code:
    # mysql> CREATE DATABASE openfire;
    Code:
    # mysql> exit
    Download Openfire to a directory. I chose the /opt/ directory.
    Code:
    # cd /opt
    Download File or go here to get the most recent: http://www.igniterealtime.org/downlo...x.jsp#openfire
    Code:
    # wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_3_2.tar.gz
    Code:
    # mv downloadServlet\?filename\=openfire%2Fopenfire_3_3_2.tar.gz openfire_3_3_2.tar.gz
    Extract the files.
    Code:
    # tar -zxvf openfire_3_3_2.tar.gz
    Create a symlink
    Code:
    # ln -s /opt/openfire/bin/openfire /etc/init.d/
    Make the symlink executible
    Code:
    # chmod +x /etc/init.d/openfire
    Add openfire to our startup.
    Code:
    # update-rc.d openfire defaults
    Fix the nohup output.
    Code:
    # vim /opt/openfire/bin/openfire
    Modify openfire script with the following: >../logs/SDTOUT.log 2>../logs/SDTERR.log into /opt/openfire/bin/openfire

    ORIGINAL:
    Code:
    nohup "$app_java_home/bin/java" -server -Dinstall4j.jvmDir="$app_java_home" 
    -Dexe4j.moduleName="$prg_dir/$progname" $INSTALL4J_ADD_VM_PARAMS 
    -classpath "$local_classpath" com.install4j.runtime.Launcher start 
    org.jivesoftware.openfire.starter.ServerStarter false false "$prg_dir/../logs/stderror.log" 
    "$prg_dir/../logs/stdoutt.log" true true false "" true true 0 0 "" 20 20 "Arial" "0,0,0" 8 500 
    "version 3.3.2" 20 40 "Arial" "0,0,0" 8 500 -1 -DopenfireHome=$app_home 
    -Dopenfire.lib.dir=$app_home/lib &
    Goto line 262 of /opt/openfire/bin/openfire and insert the following at the end of nohup .... with >../logs/STDOUT.log 2>../logs/STDERR.log

    MODIFIED:
    Code:
    nohup "$app_java_home/bin/java" -server -Dinstall4j.jvmDir="$app_java_home" 
    -Dexe4j.moduleName="$prg_dir/$progname" $INSTALL4J_ADD_VM_PARAMS 
    -classpath "$local_classpath" com.install4j.runtime.Launcher start 
    org.jivesoftware.openfire.starter.ServerStarter false false "$prg_dir/../logs/stderror.log" 
    "$prg_dir/../logs/stdoutt.log" true true false "" true true 0 0 "" 20 20 "Arial" "0,0,0" 8 500 
    "version 3.3.2" 20 40 "Arial" "0,0,0" 8 500 -1 -DopenfireHome=$app_home 
    -Dopenfire.lib.dir=$app_home/lib >../logs/STDOUT.log 2>../logs/STDERR.log &
    Now lets start Openfire (xmpp-server). Restart or run the following command to start Openfire:
    Code:
    # /opt/openfire/bin/openfire start
    Now setup the rest of Openfire through your browser.
    http://localhost:9090
    Last edited by handband2; September 18th, 2007 at 09:51 PM.

  2. #2
    Join Date
    Aug 2007
    Beans
    2

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Great tutorial.

    I have a question, though. I manage the IT department of a small company (in fact I am the department ). Until some months ago we were an 100% Microsoft based company, exception made for the creative department that uses Macintosh.

    My boss asked me to put together a small intranet Wiki and I saw the perfect opportunity to give Linux a try (I hate IIS). I installed Ubuntu, Apache, MySQL and PHP on an old machine, gave it a static IP and it has been functioning since then as an internal Web Server.

    Thus I'm loving the experience and the server has had absolutely no problem since then, there are still many co-workers of mine reluctant to accept GNU\Linux as a possible alternative to the Microsoft monopoly (which represents to us an massive investment, just in software licensing).

    Today it was given me the chance to, once more, prove the value of this kind of operating system: it was asked me to start an internal instant messaging server. I chose to create the IM server in that same Ubuntu machine and I went for an open-source solution: OpenFire (once again there are many people relutant to accept this solution as a good solution: there's a mentality that if it's free, it can't be that good).

    Because I'm new to this world, I'm having serious difficulties. I've found no relevant documentation in the Ignite Realtime foruns, and I started looking in the Ubuntu Foruns.

    I followed this tutorial (in fact it's very similar to the instructions given by the software creators) and successfully completed all steps, except the last one.

    I can't open the OpenFire setup page: I assume that it's because I'm running Apache. When I type the give URL, it just says that Firefox couldn't connect to the server...

    Help would me much appreciated. I've tried to search both Google and the Forum in several different ways, but I found nothing relevant. Once again I'm a complete n00b, so simple language and an explanation to what I'm in fact doing would also be much appreciated.

  3. #3
    Join Date
    Feb 2006
    Location
    U.S.A & Brazil
    Beans
    180
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    poractiv3,

    First lets see if OpenFire (xmpp-server) is running.

    Code:
    $ sudo netstat -tap
    You should find the following in the outputted list:
    Code:
    tcp6       0      0 *:xmpp-server           *:*                     LISTEN     3729/java
    More than likely your PID (the 3729 number) will be different.

    If nothing shows up then that means Openfire is not running. If that is the case restart the server or just start up Openfire with the following command:
    Code:
    $ sudo /opt/openfire/bin/openfire start
    I hope that helps....
    Last edited by handband2; August 21st, 2007 at 07:53 PM.

  4. #4
    Join Date
    Aug 2007
    Beans
    2

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Oops!

    In fact it wasn't running... Thanks for your time and help. Problem solved.

    I'm starting out, sorry for the newbie question.

    Regards

  5. #5
    Join Date
    Feb 2006
    Location
    U.S.A & Brazil
    Beans
    180
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Quote Originally Posted by proactiv3 View Post
    Oops!

    In fact it wasn't running... Thanks for your time and help. Problem solved.

    I'm starting out, sorry for the newbie question.

    Regards
    I'm glad you got it working. It wasn't a newbie question. I forgot to add how to start up the xmpp server. I'll update the howto.

  6. #6
    Join Date
    Aug 2007
    Location
    Colorado
    Beans
    34
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Anyone know how to get to the admin page other than using http://localhost:9090 I have this on my Ubuntu server that isn't connected to a monitor so I use Putty to get to it and I did try links to get to it but that did get me to the pages but it was kind of hard to read and so i am trying to find a way to get to the page other than using http://localhost:9090
    I did try IP of that box (192.168.1.5:9090) but it didn't work.

  7. #7
    Join Date
    Feb 2006
    Beans
    74

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Quote Originally Posted by D_2 View Post
    Anyone know how to get to the admin page other than using http://localhost:9090 I have this on my Ubuntu server that isn't connected to a monitor so I use Putty to get to it and I did try links to get to it but that did get me to the pages but it was kind of hard to read and so i am trying to find a way to get to the page other than using http://localhost:9090
    I did try IP of that box (192.168.1.5:9090) but it didn't work.
    A late reply, yes, but I had the same problem last night and others might as well. To solve this I installed lynx, a text based browser, on the server and was then able to connect to http://127.0.0.1:9090 using the same ssh window I had been using to do the install.

    I'm at work right now and don't have access to the machine, but I believe that
    Code:
    sudo apt-get install lynx
    will do the trick. It took me a couple minutes to get used to the navigation, but it's really not bad.

  8. #8
    Join Date
    Jun 2009
    Beans
    3

    Thumbs down Re: Howto: Openfire - XMPP (also called Jabber) Server

    Hello,
    My openfire 3.64, everything works but I can't tranfer file with yahoo or MSN, pls HELP!!

    Thanks alot

  9. #9
    Join Date
    Jul 2009
    Location
    Jakarta, Indonesia
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    Thanks for the step-by-step tutorial.
    Openfire made me go nuts with the "nohup.out" problem.
    I followed the instruction, and it worked like a charm.
    I'm using Openfire 3.6.4, Ubuntu 9.04 Server, Java JDK 6, and MySQL 5.1.

    Thank you very much..

  10. #10
    Join Date
    Jun 2007
    Beans
    217
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Howto: Openfire - XMPP (also called Jabber) Server

    I'm also trying to get this working, but having no luck. I *think* it's running...

    netstat -tap shows:
    Code:
    tcp6       0      0 [::]:9092               [::]:*                  LISTEN      1871/java
    and when I visit
    Code:
    http://openfire.mydomain.com:9092/
    The favicon loads...


    But the page is completely blank! The docs say I should see a set-up wizard, but nothing's there. There's nothing exciting in the log files either.

    I'm also using Openfire 3.6.4, Ubuntu 9.04 Server, Java JDK 6, and MySQL 5.1.

    Any ideas?

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •