Install Rocket Chat Server on Ubuntu 22.04 using Snap

Learn a simple command to install Rocket Chat Server on Ubuntu 22.04 LTS Jammy JellyFish using command terminal.

Rocket.Chat is an open source platform for team collaboration and communication with live chat, video and audio conferencing, file sharing, message translation, and more. With Rocket.Chat, users can use native iOS apps and Android apps from any device with internet access, including Windows, Mac, mobile devices or tablets. People widely compare it to Slack and consider it one of the best alternatives.

Through the communication platform, company employees can chat, exchange files and meet in group chats. This saves mass emails to many recipients because everyone can read in the group chat and follow the communication. Additionally, there is security through end-to-end encryption to keep communication private.

In addition to pure text messages, video calls are also possible. Facebook, WhatsApp, SMS and CRM can also be integrated with Rocket.Chat. Starting with the Advanced package, the Rocket chat app even includes video conferencing and help desk chat. Users can do business with the helpdesk chat for customer inquiries on their homepage using omnichannel.

This allows potential customers to directly enter a live chat with you when they are currently on your website and have questions about your products and services.

Being an open source software, its community edition can be operated on your server for free. Users can communicate through the browser or install client software available for Microsoft Windows, Apple macOS, Linux, Android and iOS.

Alternatively, the manufacturer offers paid editions of Rocket.Chat as well as using Rocket.Chat as software as a service in the cloud.

For the security of your chats, you can choose between end-to-end encryption, an LDAP interface or two-factor authentication (2FA). In addition, there is an extensive role management for all users and especially for moderators and administrators extensive rights can be determined.

Steps to Install Rocket Chat Server on Ubuntu 22.04 using SNAP

Users who don’t want to use Snap can either opt for Docker or manually install every component required by the Rocket Char server, such as the database. However, we are only discussing the SNAP method here.

1. Hardware Requirements

If you just want to try it out, you can start with a standard amount of hardware resources, while for SMBs that want a small deployment of up to 500 users, up to 100 concurrently active, and moderate levels of mixed downloads, sharing and bot activities can go to a minimum of:

  • Dual core (2 GHz)
  • 2 GB RAM
  • 40 GB SSD

2. Update Ubuntu 22.04 LTS

Although here we are using the SNAP universal package manager which installs applications in an isolated environment, use the APT package manager to update the system before proceeding further.

sudo apt update && sudo apt upgrade

3. Use Snap to Install Rocket Chat Server

We do not need to install Snap on Ubuntu 22.04 because it is enabled by default by the developers of this Linux operating system. The instant method to install Rocket Chat server is very simple, especially for beginners or small and medium businesses. Those who don’t want to worry about multiple commands and still want to configure their Chat server can opt for this method.

First find the Rocket Server package available through SNAP:

sudo snap search rocketchat-server

To install the same, here is the command:

sudo snap install rocketchat-server

Rocket Chat Server SNAP Command

4. Access the web interface

Once the installation is complete, we can easily access the Rocket Chat server backend web interface using our local browser. However, make sure you have port 3000 open in your cloud or system firewall.

Those using UFW can use the command –sudo ufw allow 3000

Access the Rocket Server web interface

5. Create an administrator account

Now, first of all, create an administrator profile to manage the Rocket Chat server. You only need to add information such as your full name, the username you want to use, your email address and your password to secure your account.

Create a Rocket Chat Admin User

After adding the administrator account details, also provide your organization information.

Organization Information

6. Register your server or opt for a standalone server

Those who want access to the Marketplace, integrations with external vendors, and security updates can use their email addresses to register their server with the developers. Otherwise, just go for the standalone server option.

Register your Rocket Server

7. Rocket Chat Web Client

As soon as you are done with the installation, the Rocket Chat web client interface will open.

8. Rocket chat server admin backend

To get the admin backend to manage the Rocket Chat server, in your browser, type the domain or IP address with 3000 port number and /admin folder name.

For instance:


Replace your-ip-address with the real address of your Rocker Chat server.

Administration Server Information

Rocket Chat Server Admin Interface

Apps to install on Marketplace

Application Marketplace

9. Use Nginx as a proxy server

For those who want to access the Rocker Chat server at port 80 or 443, let’s configure the Nginx Proxy server for that if you’re not already using Apache. First, install it using the given command.

sudo apt install nginx

Create a site configuration file to proxy the Rocket Chat server address:

sudo nano /etc/nginx/conf.d/rocketchat.conf

Add the following lines:

 server {
        listen 80;
        server_name your-domain or ip-address;

        error_log /var/log/nginx/rocketchat_error.log;

        location / {
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto http;
            proxy_set_header X-Nginx-Proxy true;
            proxy_redirect off;

To note: Replace your domain or IP address with a domain name if you want to access the Rocket Chat server using a fully qualified domain name. While users who want to access it using the public or private IP address of the server use it.

to safeguard the file using CTRL+Opress the Walk in key, then exit the file using Ctrl+X.

After this check, if the Nginx configuration is correct.

sudo nginx -t

The output should be:

nginx: /etc/nginx/nginx.conf configuration file syntax is correct
nginx: /etc/nginx/nginx.conf configuration file test passed

Now restart the Nginx server and enable it:

sudo systemctl restart nginx
sudo systemctl enable nginx

10. Configure Let’s Encrypt SSL for Rocket Chat

If you use a fully qualified domain name to access the Rocket server running on Ubuntu 22.04, then setting up an SSL certificate is pretty easy and free using Let’s Encrypt. Follow the given command:

sudo apt install certbot python3-certbot-nginx

Run the command to issue an SSL certificate

sudo certbot --nginx

Once the certificate is issued, restart the Nginx again:

sudo systemctl restart nginx

Other Items:

Configure Nginx as Reverse Proxy for Apache on Ubuntu 22.04
Install LAMP on Ubuntu 20.04 | 22.04 with one command
How To Install Wireshark On Ubuntu 22.04
How to Install Jenkins on Ubuntu 22.04

Source link

Steven L. Nielsen