Rocket.Chat is an open-source team communication platform that facilitates messaging, file sharing, voice and video conferencing, and many other features. Installing Rocket.Chat on Debian is a straightforward process with few dependencies.
Before starting the installation process, make sure that you have:
Begin by updating your Debian system's package lists.
sudo apt-get update
Rocket.Chat requires MongoDB to store all its data. To install MongoDB on Debian, run the following commands:
sudo apt-get install gnupg
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Now, we can move on to installing Rocket.Chat. Use the following commands:
wget https://rocket.chat/releases/latest/download -O rocket.chat.tgz
tar zxvf rocket.chat.tgz
cd rocket.chat/
sudo npm install
After the installation process is complete, you need to configure Rocket.Chat with the installation script. Run the following command in the terminal:
sudo node main.js
This will configure Rocket.Chat with default settings. You can also configure custom settings by following the configuration guide provided by the Rocket.Chat documentation.
Once Rocket.Chat is installed and configured, navigate to your server's IP address on port 3000 to access the Rocket.Chat web interface.
http://your_server_IP:3000
You should see the Rocket.Chat login screen.
Congratulations! You have successfully installed Rocket.Chat on 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!