How to Install Rocket.Chat on Debian
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.
Prerequisites
Before starting the installation process, make sure that you have:
- A Debian-based system with root or sudo access
- A user account with sudo privileges
Step 1: Update Package Lists
Begin by updating your Debian system's package lists.
sudo apt-get update
Step 2: Install MongoDB
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
Step 3: Install Rocket.Chat
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.
Step 4: Access the Rocket.Chat Web Interface
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.