pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: small chat server?



"Jeremy C. Reed" <reed%reedmedia.net@localhost> writes:

> Does anyone have any docs or steps for enabling and using ejabberd?
>
> I installed the package jabberd-2.3.2nb3 using pkgin.

Note that ejabberd != jabberd2.  (People have recommended ejabberd here,
but I have not used it.)

> I edited /usr/pkg/etc/jabberd/sm.xml and /usr/pkg/etc/jabberd/c2s.xml so 
> the <id> is the IP address of the system I want to run the server on.
> I set in my rc.conf:
> jabbered=yes
> router=yes
> c2s=yes
> s2s=yes
> sm=yes
> and ran sudo /usr/pkg/share/examples/rc.d/jabberd onestart.

Usually, one sets the id to a name, not an IP address, and in particular
what will be the name part of the JIDs that will be server. It has to
have a SRV record or an A record (perhaps via CNAME is ok) to an IP
address of the server.

> sockstat shows what is running:
>
> jabberd  c2s        4600   3 dgram  -                     /var/run/log
> jabberd  c2s        4600   5 tcp    localhost.64169       localhost.5347
> jabberd  c2s        4600   6 tcp    *.xmpp-client         *.*
> jabberd  router     17106  3 dgram  -                     /var/run/log
> jabberd  router     17106  4 tcp    *.5347                *.*
> jabberd  router     17106  5 tcp    localhost.5347        
> localhost.64169
> jabberd  router     17106  6 tcp    localhost.5347        
> localhost.64168
> jabberd  router     17106  7 tcp    localhost.5347        
> localhost.64167
> jabberd  s2s        17224  3 dgram  -                     /var/run/log
> jabberd  s2s        17224  4 udp    *.*                   *.*
> jabberd  s2s        17224  5 tcp    localhost.64168       localhost.5347
> jabberd  s2s        17224  6 tcp    *.xmpp-server         *.*
> jabberd  sm         26622  3 dgram  -                     /var/run/log
> jabberd  sm         26622  5 tcp    localhost.64167       localhost.5347
>
> I have use pidgin for years to use different one-on-one and chat groups 
> using my work's XMPP server.

Probably you also need to create the database (sqlite3 by default) and
initialize it, and perhaps chown it.  Run pkg_info -L jabberd and figure
out what every file is for :-)  But seriously, look at
/usr/pkg/share/examples/jabberd/db-setup.sqlite

> But I have no idea how to connect to this new server running on my local 
> network. My pigdin client keeps telling me disconnected and Host Unknown 
> (I am using the IP address as the "domain".)
>
> I guess I need to enable the debug logging as /var/log/jabberd/ 
> directory is empty.

Yes, or you can set logging to syslog.

Attachment: pgpLG6OjiiYZI.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index