How to install Ejabberd in Ubuntu Server?
Way 1 : Use debian packages but I found myself start-up problems. If you still want to try, follow the steps..
sudo apt-get update sudo apt-get upgrade sudo apt-get install ejabberd
Way 2 : Compile source code yourself. It won’t really difficult if you follow this post.
How to uninstall Ejabberd?
sudo apt-get remove --purge ejabberd
How to log-in as root or how to switch to root user in Terminal?
sudo bash
Don’t forget that you must be a sudo user to do that command.