![]() ![]() There are a few reasons to set up your own XMPP server. You might use Google Talk or as it now is named Hangouts. Google's service recently changed and it is going to drop XMPP compatibility. These notes are old and deprecated - ejabberd is installed and configured as part of the School Server installation. If you have non-gmail chat contacts you can keep chatting to them. (See this discussion thread for some guidance from. ) The OLPC Jabber server was trialling ejabberd 2.0 from SVN trunk to see if it aids stability (see 5313). And still use an open protocol which is widely supported, not being locked in to google specific software and hardware. Or you might want to have more control over the logging of your data. Turn of ejabberd logging and use Off The Record which gives you full privacy (and perfect forward secrecy). ejabberd XMPP server offers many customization hooks to adapt it easily to various use cases. Once the package is downloaded, install it with the help of APT package manager. You might want to use awesome multi-account chatting applications like Pidgin, Psi+, Empathy, Adium, iChat/Messages or Miranda IM. This makes it the server of choice no matter which area you are working in: mobile messaging, gaming, internet of things (IoT), it can do it all. With built-in MQTT server and SIP server ejabberd is a true realtime platform. Type the following command in your terminal. Various actions will be performed by the installer. A user named ejabberd will be created and the directory for this system user -/opt/ejabberd. Did you know that big players like Facebook, WhatsApp and Google (used) to use XMPP as their pimary chat protocol? #Ejabberd server setup android#Īnd on Android you can use Xabber, Beem or OneTeam. Or you might be a sysadmin in need of an internal chat solution. XMPP is an awesome and extendible protocol, on which you can find more here: Information I've got a ejabberd cluster running for a client consisting of 4 Debian 7 VM's (2GB RAM each) spread over 3 sites and 1 datacenter, serving 12000 total users and most of the time 6000 concurrently. This setup is tested on Debian 7, Ubuntu 12.04 and 10.04 and OS X 10.8 Server, all running ejabberd installed via the package manager, either apt or ports. ![]() It also works on Windows Server 2012 with the ejabberd compiled from the erlang source but that is not covered in this tutorial. This tutorial uses the domain as the chat domain, and the server as the xmpp server domain. Single node / master node ejabberd installation For the clustering part the servers and are used. If you want to set up a single node installation of ejabberd, e.g. no clustering, then follow only this part and the DNS part of the tutorial. This is simple, use your package manager to install ejabberd: apt-get install ejabberd If you want to set up a cluster, then also follow this part and continue with the next part. ![]() You will also install a few dependencies for the erlang runtime. We are going to configure the ejabberd service. Now use your favorite text editor to edit the config files. The ejabberd config is erlang config, so comments are not # but %%. Also, every config option ends with a dot (.). vim /etc/ejabberd/ejabberd.cfgįirst we are going to add our chat domain name. If you are pleased with the config file, save it and restart ejabberd: /etc/init.d/ejabberd restart I like to have a shared roster with roster groups, and some clients of mine use a shared roster with everybody so that nobody has to add contacts but they see all online users, enable the mod_shared_roster: %% Do this in the modules block If you are using MySQL or LDAP authentication then you wouldn't enable this. If you've enabled in-band registration you can use your XMPP client, and if you did not enable in-band registration you can use the ejabberdctl command: ejabberdctl register remy 'passw0rd' We now need to register a user to test our setup. Now test it using an XMPP client like Pidgin, Psi+ or Empathy. If you can connect, then you can continue with the tutorial. How did you install ejabberd (source, package, distribution)? The next part of this tutorial can be found over at my website: - It covers the clustering of ejabberd, troubleshooting and the DNS setup to make federation work.What operating system (version) are you using? If you cannot connect, check your ejabberd logs, firewall setting and such to troubleshoot it. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |