Jabberd Quick Installation Guide - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Jabberd Quick Installation Guide

Description:

Open a console window and create the directory as /path/to/jabber/ as follows ... Your Jabber server is working. ... The jabber.xml file contains a great deal ... – PowerPoint PPT presentation

Number of Views:71
Avg rating:3.0/5.0
Slides: 14
Provided by: suranga6
Category:

less

Transcript and Presenter's Notes

Title: Jabberd Quick Installation Guide


1
Jabberd Quick Installation Guide
2
Jabberd Quick Installation Guide
  • The jabberd server is the original open-source
    server implementation of the Jabber protocol, and
    is the most popular software for deploying Jabber
    either inside a company or as a public IM
    service.
  • Save the file jabberd-1.4.2.tar.gz to /tmp/ (or
    to a directory of your choice).
  • Open a console window and create the directory as
    /path/to/jabber/ as follows
  • root_at_im rootmkdir /path/
  • root_at_im rootmkdir /path/to/
  • root_at_im rootmkdir /path/to/jabber/
  • Type mv /tmp/jabberd-1.4.2.tar.gz
    /path/to/jabber/
  • Type cd /path/to/jabber/
  • Type gzip -d jabberd-1.4.2.tar.gz

3
  • Type tar -xvf jabberd-1.4.2.tar (this creates a
    jabberd-1.4.2/ directory containing various files
    and subdirectories)
  • Type cd jabber-1.4.2/
  • Type ./configure
  • Type make
  • Open another console and type cd
    /path/to/jabber/jabber-1.4.2/
  • Type ls -l jabberd/jabberd to view the
    permissions on the Jabber daemon. The
    output on your console should look something like
    this -rwxr-xr-x 1 user group 675892 Feb
    25 2004 jabberd/jabberd

4
  • Type ./jabberd/jabberd to start the Jabber
    daemon. This will run the server using the
    default hostname of localhost. You should see one
    line of output in your console window
    20020923T025026 notice (-internal)
    initializing server.
  • Open a separate console window on the same
    machine and type telnet localhost 5222 to connect
    to your server (yes, you can connect using simple
    old telnet!). You should see the following
  • Trying 127.0.0.1... Connected to
    your-machine-name. Escape character is ''.

5
  • Now open an XML stream to your server by pasting
    the full text of the following XML snippet into
    your telnet window
  • ltstreamstream to'localhost'
    xmlns'jabberclient' xmlnsstream'http//ether
    x.jabber.org/streams'gt You should
    immediately receive a reply from your server
  • lt?xml version'1.0'?gt ltstreamstream
    xmlnsstream'http//etherx.jabber.org/streams'
    id'some-random-id' xmlns'jabberclient'
    from'localhost'gt
  • Congratulations! Your Jabber server is working.

6
  • Close the stream properly by pasting the
    following XML snippet into your telnet window
    lt/streamstreamgt
  • Stop the server by killing the process or simply
    typing C in the window where you started the
    server deamon.

7
Configuring the Hostname
  • You change the configuration of jabberd by
    editing a file named jabber.xml, which is located
    in your /path/to/jabber/jabber-1.4.2 directory.
    The jabber.xml file contains a great deal of
    comments that help you understand what each
    configuration option does. However, right now all
    that we need to change is the hostname. So open
    jabber.xml in your favorite text editor (vi,
    emacs, etc.) and edit the line that reads as
    follows
  • lthostgtltjabberdcmdline flag"h"gtlocalhostlt/jabberd
    cmdlinegtlt/hostgt
  • You now need to give Jabber server's ip address
    or hostname here.
  • Ex.
  • lthostgtltjabberdcmdline flag"h"gt192.168.200.8lt/ja
    bberdcmdlinegtlt/hostgt
  • or
  • lthostgtltjabberdcmdline flag"h"gtim.jic.comlt/jabber
    dcmdlinegtlt/hostgt

8
  • Note
  • Make sure to create a folder and name it as the
    name you put in the above line that is
    192.168.200.8 or im.jic.com in /path/to/jabber/jab
    ber-1.4.2/spool/ Ex
  • root_at_im rootmkdir /path/to/jabber/jabber-1.4.2/
    spool/192.168.200.8
  • or
  • root_at_im rootmkdir /path/to/jabber/jabber-1.4.2/
    spool/im.jic.com

9
  • Now you need to configure your server to bind to
    a specific IP address. First, in the ltpthcsock/gt
    section of your jabber.xml file, change ltip
    port"5222"/gt to ltip port"5222"gtyourIPaddresslt/ip
    gt. Second, in the dialback section of your
    jabber.xml file, change ltip port"5269"/gt to ltip
    port"5269"gtyourIPaddresslt/ipgt.
  • Ex
  • ltip port5222gt192.168.200.8lt/ipgt
  • ltip port5269gt192.168.200.8lt/ipgt
  • Now jabber.xml and type in console again
    ./jabberd/jabberd to start the Jabber daemon
    previously you have killed.

10
  • Install windows jabber client exodus
    version0.9.0.0 in your win PC in the same lan
    segment that the jabber server runs. You can
    specify the jabber server name by typing server
    name or ip address in the Server drop down menu.
    Type your user name and password (any username
    and password you like) and click ok

11
(No Transcript)
12
  • Then it ask to create a new user since it was not
    previously in the jabber server.
  • Click yes and proceed. You need to add another
    user like this and add contact between the other
    user and start messaging. Following screenshots
    show how to add a new contact.

13
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com