[OPEN-ILS-DEV] Re: Ejabberd and Ubuntu (Dan Wells)

Dan Wells dbw2 at calvin.edu
Mon Oct 15 12:04:14 EDT 2007


Hello Pierre,

I am glad you got ejabberd to work.  As for your current question, the best
answer I can give would be to read the "Notice (esp. if using Ubuntu Server):"
near the top of the documentation page you linked.  The most pertinent sentence
is the first, which state "Each place in these instructions where we use the
name ‘eg-server,’ we are actually using the computer’s fully-qualified
domain name (or at least what the machine believes it to be)."  The official
Evergreen approved method of determining the FQDN is with:
perl -MNet::Domain=hostfqdn -e "print hostfqdn();"
but it is up to you to make sure the result actually resolves.  In many cases
the above command will return the same result as "hostname -f", but due to some
ambiguity involving local name resolution, sometimes it does not.

Good luck,
DW

>>> "Pierre Nault" <pierrenault at gmail.com> 10/15/2007 11:15 AM >>>
Hello Dan,

     Thanks for the infos, ejabberd is now working and listening on the 5222
port. I have registered the two accounts and it worked. But something is not
clear : you said that I have to change the ejabberd.cfg file to something
like this :
{hosts, ["localhost","your.domain.name.goes.here"]}.
 The strong characters surprised me : correct me if I'm wrong but they
equals the result of the command "hostname -d". In the documentation (
http://open-ils.org/dokuwiki/doku.php?id=installing_evergreen_on_ubuntu_7.04)
it said to change the line to something like this:

{hosts, ["localhost","eg-server"]}. eg-server would equals hostname -s
in that case.

Is there an error ? I'm a little bit confused with the use of hostname
in the documentation.
Just to be sure, this is what I get when I do these commands:

cobaye at cobaye-TI:~$ hostname -f
cobaye-TI.bib.uqam.ca

cobaye at cobaye-TI:~$ hostname -s
cobaye-TI

cobaye at cobaye-TI:~$ hostname -d
bib.uqam.ca


Thanks a lot,

Pierre Nault


More information about the Open-ils-dev mailing list