Install Yahoo-transport-2 - Step two and Three

This tutorial explains how you can install Yahoo-transport-2, using jabberd 1.4.3.1, a script, and a configuration file.


  1. Common Instructions for all Transports

    The instructions in this section are common for all transports. Hence, you do not have to repeat them for every transport installation. If you did not yet completed this step, go to Install Obsolete Transports Using jabberd - Step one.

  2. Install Yahoo! Transport

    1. Install libglib1.2-dev:
      apt-get install libglib1.2-dev
    2. Download the latest Yahoo! Transport:
      wget -p http://ftp.debian.org/debian/pool/main/j/jabber-yahoo/jabber-yahoo_2.3.2.orig.tar.gz \
      -O jabber-yahoo_2.3.2.orig.tar.gz
    3. Extract the source in the directory of the extracted jabberd 1.4 (see step one):
      tar zxvf jabber-yahoo_2.3.2.orig.tar.gz
    4. Enter the extracted directory:
      cd yahoo-transport-2.3.2
    5. Compile Yahoo-transport-2:
      make
    6. Copy the transport module of the transport to /usr/local/lib/jabber/:
      cp yahoo-transport.so /usr/local/lib/jabber/yahoo-transport-2.so
  3. Configure Yahoo! Transport

    1. Create a symbolic link:
      ln -s /usr/local/sbin/jabberd /usr/local/sbin/jabberd-yahoo-transport-2
    2. Drop this transport configuration file for Yahoo-transport-2 in /etc/jabber/:
      wget -p http://svn.process-one.net/ejabberd/trunk/examples/transport-configs/configs/yahoo-transport-2.xml \
      -O /etc/jabber/yahoo-transport-2.xml
    3. Edit the configuration file in your favourite text editor and change at least next values in capital letters:
      SERVER.COM
      SECRET
    4. Put this init script for Yahoo-transport-2 in the directory /etc/init.d/jabber/:
      wget -p http://svn.process-one.net/ejabberd/trunk/examples/transport-configs/init-scripts/yahoo-transport-2 \
      -O /etc/init.d/jabber/yahoo-transport-2
    5. Change permissions of this script:
      chmod 755 /etc/init.d/jabber/yahoo-transport-2
    6. Add an entry for the Yahoo! Transport in the "Listened ports" section of your ejabberd configuration file (also described in the ejabberd Installation and Operation Guide):
      {5236, ejabberd_service, [{host, "yahoo.SERVER.COM",
                                     [{password, "SECRET"}]}]},

      Do not forget to change the values in capitals; they need to match to what you specified in yahoo-transport-2.xml.

      Remark: No comma needed when it is the last entry. However, all entries before the last one need a comma!

    7. Restart ejabberd to reload the configuration:
      /etc/init.d/ejabberd restart
    8. Start the transport:
      /etc/init.d/jabber/yahoo-transport-2 start
    9. If all goes well, the transport should be visible now when discovering your server with a Jabber client. :-)
Syndicate content