Install Rocket Chat Server on Ubuntu 22.04 with 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 team collaboration and communication platform featuring live chat, video and audio conferencing, file sharing, message translation and more. Rocket.Chat allows users to use the native iOS apps and Android apps from any device with internet access including Windows, Mac, mobile or tablet devices. People widely compare it to Slack and consider it one of the best alternatives of it.

With the communication platform, employees in the company can chat, exchange files and meet in group chats. This saves mass e-mails to many addressees, since everyone can read along in the group chat and understand the communication. Added to this is the security provided by end-to-end encryption to keep communications confidential.

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

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

As open source software, the Community Edition can be run 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 and the use of 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 extensive role management for all users and, in particular, moderators and administrators can be given extended rights.

Steps to install Rocket Chat Server on Ubuntu 22.04 using SNAP

Users not interested in using Snap can either use Docker or manually install any required component via Rocket Char server such as database. However, here we only discuss the SNAP method.

1. Hardware Requirements

If you just want to try it out, you can start with a standard amount of hardware resources, while SMBs looking for a small deployment of up to 500 users, up to 100 concurrently active, and moderate amounts of mixed uploads, shares, and bot activity can cost at least the following :

  • Dual core (2 GHz)
  • 2GB of memory
  • 40GB SSD

2. Update Ubuntu 22.04 LTS

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

sudo apt update && sudo apt upgrade

3. Use Snap to install the Rocket Chat server

We don’t need to install Snap on Ubuntu 22.04 because there it is enabled by default by the developers of this Linux operating system. Snap method to install Rocket chat server is very easy, especially for beginners or small medium businesses who don’t want to mess with multiple commands and still want to set up their chat server can opt for this method.

First look for 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, create an administrator profile to manage the Rocket Chat server. You just need to add the details like your full name, the username you want to use, email address and password to secure your account.

Create a Rocket Chat admin user

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

organizational information

6. Register your server or opt for a standalone server

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

Register your Rocket server

7. Rocket Chat web client

Once you’re done installing, Rocket Chat’s web client interface will open.

Install Rocket Chat server Ubuntu 22.04 LTS SNAP

8. Rocket Chat Server Admin Backend

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

For example:

http://your-ip-address:3000/admin

Substitute your-ip-address with the actual address of your rocker chat server.

Information about the Administration Server

Rocket Chat server admin interface

Apps to be installed on Marketplace

Apps Marketplace

9. Use Nginx as a proxy server

For those who want to access the rocker chat server on port 80 or 443, we’ll 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_pass http://127.0.0.1:3000/;
            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;
        }
    }

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

Save on computer the file with Ctrl+Opress the Enter button, and then exit the file with Ctrl +X.

After that, check if the Nginx configuration is ok.

sudo nginx -t

Output must be:

nginx: The syntax of the configuration file /etc/nginx/nginx.conf is fine
nginx: The test of the configuration file /etc/nginx/nginx.conf is successful

Now restart the Nginx server and enable it:

sudo systemctl restart nginx
sudo systemctl enable nginx

10. Set up Let’s Encrypt SSL for Rocket Chat

If you use one fully qualified domain If you use the name to access Rocket Server on Ubuntu 22.04, then setting up an SSL certificate with Let’s Encrypt is easy and free. 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 Nginx again:

sudo systemctl restart nginx

More articles:

Set up Nginx as a reverse proxy for Apache on Ubuntu 22.04
Install LAMP on Ubuntu 20.04 | 22.04 with a single command
How to Install Wireshark on Ubuntu 22.04
How to Install Jenkins on Ubuntu 22.04

About Willie Ash

Check Also

CloudNativeDay: WASM aims to drive the next IT era

WebAssembly (WASM) is poised to power the next era of cloud-native application development that can …