Ejabberd is a powerful XMPP server that can be used to create scalable, secure and highly available messaging applications. In this tutorial we'll be installing Ejabberd on the latest version of Debian.
Before starting the installation of Ejabberd, it's a good idea to ensure that all packages are up-to-date. You can do this by running the following command:
sudo apt-get update
sudo apt-get upgrade
Ejabberd can be installed from the Debian repository using the following command:
sudo apt-get install ejabberd
Ejabberd's main configuration file is located at /etc/ejabberd/ejabberd.yml. Open this file using your preferred text editor and make changes as necessary.
One key item to configure is the administrator account. By default Ejabberd is installed with a default admin account (admin@example.com) with the password set to admin. For security reasons it is important to create a new admin account. You can do this by adding the following lines to the ejabberd.yml file:
acl:
admin:
user:
- "admin@yourdomain.com"
access:
admin:
user:
- "admin@yourdomain.com": allow
Replace "yourdomain.com" with your own domain name. Once you have created the new admin account, you can remove the default admin account by deleting the following lines from the configuration file:
acl:
admin:
user:
- "admin@example.com"
Once you have finished configuring Ejabberd, start the service and enable it to start on boot by running the following commands:
sudo systemctl start ejabberd
sudo systemctl enable ejabberd
To test that Ejabberd is working properly, log in to your new admin account using a Jabber client such as Pidgin or Adium. Once you have successfully logged in you can begin setting up users and configuring additional options for your messaging server.
Congratulations! You have successfully installed and configured Ejabberd on the latest version of Debian.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!