Rocket.Chat

  1. Setup Tool

Link install: https://docs.rocket.chat/quick-start/installing-and-updating/micro-services-setup-beta

Link github: https://github.com/RocketChat

Installation Instructions:

Install Rocket.Chat on Ubuntu – Rocket.Chat is a free Web Chat Server, developed in JavaScript, using the Meteor framework. It is a great solution for communities and companies that want to build their own chat server or for developers who want to build and develop their own chat platform.

In this article, QNT-DATA will guide you through configuring and installing Rocket.Chat on Ubuntu 18.

Table of Contents [hide]

Instructions to install Rocket.Chat on Ubuntu 18

  1. Configuration requirements

1.1. Minimum configuration1

1.2. Recommended configuration

  1. Install Rocket.Chat on Ubuntu

2.1. Step 1: Create Swap

2.2. Step 2: Install the necessary packages

2.3. Step 3: Install Rocket.Chat on ubuntu

2.4. Step 4: Configure Rocket.Chat service

2.5. Step 5: Open the port if using UFW

2.6. Step 6: Create an Admin account

  1. Reference link
  2. Conclusion

Instructions to install Rocket.Chat on Ubuntu 18

  1. Configuration requirements

1.1. Minimum configuration

VPS 1 core (2 GHz)

1 GB RAM

30 GB disk

With this configuration you can deploy a chat server with up to 200 users, of which up to 50 people can be active at the same time.

1.2. Recommended configuration

VPS 2 core (2 GHz)

2 GB RAM

40 GB disk

With this configuration you can deploy a chat server with up to 500 users, of which up to 100 can be active at the same time.

To follow this tutorial, you need a VPS using Ubuntu 18.04 OS. If you do not have a VPS, please immediately refer to the Cloud VPS packages of HOSTVN.

REGISTER NOW

 

  1. Install Rocket.Chat on Ubuntu

2.1. Step 1: Create Swap

If your VPS only has 2GB of RAM, you should set up an additional 2GB (2048M) Swap to improve system performance. To create Swap, run the following commands in turn:

sudo dd if=/dev/zero of=/swapfile count=2048 bs=1M

sudo chmod 600 /swapfile

sudo mkswap /swapfile

sudo swapon /swapfile

echo ‘/swapfile none swap sw 0 0’ | sudo tee -a /etc/fstab

To check Swap you can use the following command

free -m

2.2. Step 2: Install the necessary packages

Update the system and configure apt to be able to install MongoDB with the following commands:

sudo apt-get -y update

sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 9DA31620334BD75D9DCB49F368818C72E52529D4

echo “deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list

Add the Node.js installation package with the following command:

sudo apt-get -y update && sudo apt-get install -y curl && curl -sL https://deb.nodesource.com/setup_12.x | sudo bash –

Install build tools, MongoDB, nodejs and graphicsmagick:

sudo apt-get install -y build-essential mongodb-org nodejs graphicsmagick

Install inherits and n needed to run Rocket.Chat

sudo npm install -g inherits n && sudo n 12.14.0

2.3. Step 3: Install Rocket.Chat on ubuntu

Download the latest version of Rocket.Chat:

sudo curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz

sudo tar -xzf /tmp/rocket.chat.tgz -C /tmp

Install Rocket.Chat (This article uses the /opt directory, but you can choose another directory if you want):

cd /tmp/bundle/programs/server && npm install

sudo mv /tmp/bundle /opt/Rocket.Chat

2.4. Step 4: Configure Rocket.Chat service

Add rocketchat user and set owner for Rocket.Chat folder:

sudo useradd -M rocketchat && sudo usermod -L rocketchat

sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat

Create file Rocket.Chat service with the following command

cat << EOF |sudo tee -a /lib/systemd/system/rocketchat.service

[Unit]

Description=The Rocket.Chat server

After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target

[Service]

ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js

StandardOutput=syslog

StandardError=syslog

SyslogIdentifier=rocketchat

User=rocketchat

Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 ​​MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ​​ROOT_URL=http://rocketchat.hostvn.net:3000/ PORT=3000

[Install]

WantedBy=multi-user.target

EOF

Note: Replace http://rocketchat.hostvn.net with your domain name

Set up the storage and replication engine for MongoDB, and start MongoDB and Rocket.Chat by running the following commands in turn:

sudo sed -i “s/^# engine:/ engine: mmapv1/” /etc/mongod.conf

sudo sed -i “s/^#replication:/replication:n replSetName: rs01/” /etc/mongod.conf

sudo systemctl enable mongod && sudo systemctl start mongod

mongo –eval “printjson(rs.initiate())”

sudo systemctl enable rocketchat && sudo systemctl start rocketchat

2.5. Step 5: Open the port if using UFW

If you use UFW Firewall you will need to open port 3000 to be able to access Rocket.Chat. To open the Port, run the following command

sudo ufw allow 3000/tcp

2.6. Step 6: Create an Admin account

After completing the entire installation process, you visit http://your-domain:3000 to proceed with setting up Rocket.Chat. At the first step you will be asked to create an Admin account. Fill in the required information and click

 Continue

The next step is to fill in the information about your Company/Organization and click Continue

In step 3, you name the website, select the display language, the server type (Private, Public) and the option of 2-factor authentication via email.

In step 4, choose the appropriate type you want (Use the services Rocket.Chat provides or choose to install the configuration yourself) and click Continue

So you have completed the process of setting up Rocket.chat, click Go to your workspace to access Rocket.Chat

So you have completed the process of setting up Rocket.chat, click Go to your workspace to access Rocket.Chat

3. Reference link

Link: https://galaxyz.net/cach-cai-dat-cau-hinh-va-trien-khai-rocketchat-tren-ubuntu-1404.1578.anews#prerequisites

Content

– Request

– Step 1 – Install dependencies

– Step 2 – Install Rocket.Chat

– Step 3 – Install Reverse Proxy with Nginx

– Step 4 – Configure Rocket.Chat as a Service

– Step 5 – Configure and use Rocket.Chat

– Conclude

 How to Install, Configure and Deploy Rocket.Chat on Ubuntu

Rocket.Chat is an open-souce messaging client built with Meteor. It supports video conferencing, file sharing, voice messaging, has a full-featured API, and more. Rocket.Chat is a great choice for those who want full control over their communications.

 

In this tutorial, we will install and configure Rocket.Chat on a new Ubuntu server as well as install Reverse Proxy via Nginx to enhance security and make accessing Rocket.Chat much easier. Once we’re done, you’ll have a functional version of Rocket.Chat accessible virtually anywhere.

Request

To follow this guide, you need:

An Ubuntu 14.04 server with a minimum recommended RAM of 1 GB

Non-root user with sudo privileges (Initial server installation with Ubuntu 14.04 explains how to install this.)

A fully registered domain. You can buy one on Namecheap or get one for free on Freenom.

Make sure your domain is configured to point to your server. Check out this guide if you need help.

SSL Certificate. Generate a self-signed certificate, get a free certificate from Let’s Encrypt, or purchase a certificate from another provider.

Step 1 – Install Dependencies

In this section, we will install some Rocket.Chat dependencies like MongoDB and NodeJS.

Let’s start with installing and running MongoDB. First, we need to add a keyserver to be able to access the packages.

 

  • sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10

After that, we need to install the repo to use it.

echo “deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

Now let’s update the package list.

sudo apt-get update

Now that that’s done, we can go ahead and install npm , mongodb-org , curl and graphicsmagick , all Rocket.Chat dependencies:

sudo apt-get install npm mongodb-org curl graphicsmagick

We need to install a package that uses NPM to allow us to change the node version:

sudo npm install -g n

Use that package to change node version to 0.10.40 .

sudo n 0.10.40

Next, we’ll install Rocket.Chat and do a bit of configuration.

Step 2 – Install Rocket.Chat

To get started, download the latest stable version of Rocket.Chat using curl .

curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tgz

Expand the repository we just downloaded with the tar command.

tar zxvf rocket.chat.tgz

This expands the entire repository into a folder named bundle . Let’s turn the contents of the bundle folder into something easier to remember.

mv bundle Rocket.Chat

Change to the folder where we will install Rocket.Chat using NPM.

cd Rocket.Chat/programs/server

Install Rocket.Chat.

npm install

Move back to the parent Rocket.Chat folder.

cd ../..

We need to set up some environment variables to help Rocket.Chat keep track of things like URLs, ports, etc.

First, set the ROOT_URL variable to your domain. This should be in the form of a URL.

export ROOT_URL=https://example.com/

Put the URL of MongoDB under the MONGO_URL variable.

export MONGO_URL=mongodb://localhost:27017/rocketchat

Set the PORT variable to 3000 .

export PORT=3000

At this point you can run Rocket.Chat with the following command:

node main.js

Without any errors, it works! For now, however, stop Rocket.Chat using CTRL+C Now that Rocket.Chat is installed, we need to install Nginx to proxy all of its traffic using Reverse Proxy , which helps. easier access to Rocket.Chat and encrypt all communications with your SSL certificate.

 

Step 3 – Install Reverse Proxy with Nginx

To get started, install Nginx.

sudo apt-get install -y nginx

Move your certificate’s private key to /etc/nginx/certificate.key .

sudo cp /path/to/your/key /etc/nginx/certificate.key

For example, if you generated a Let’s Encrypt certificate, you would use sudo cp /etc/letsencrypt/live/ your_domain_name /privkey.pem /etc/nginx/certificate.key .

Modify the key’s permissions so that unauthorized thieves can’t access it.

sudo chmod 400 /etc/nginx/certificate.key

Copy the certificate itself to /etc/nginx/certificate.crt .

sudo cp /path/to/your/cert /etc/nginx/certificate.crt

If you have generated a Let’s Encrypt certificate, the command will be similar to sudo cp /etc/letsencrypt/live/ your_domain_name /cert.pem /etc/nginx/certificate.crt .

We’re going to create a whole new configuration for Rocket.Chat, so you can clear the defaults to make things a little easier.

sudo rm /etc/nginx/sites-enabled/default

If you ever need to get that file back for any reason in the future, it’s still available at /etc/nginx/sites-available/default

Create /etc/nginx/sites-enabled/default with nano or your favorite editor.

sudo nano /etc/nginx/sites-enabled/default

First, we’ll add an upstream block:

/etc/nginx/sites-enabled/default

# Upstreams upstream backend { server 127.0.0.1:3000; }

Below that, create a server block. The first part tells Nginx which port to listen for connections, in this case :443 . It also allows it to know what our server name is. Don’t forget to replace example.com with your domain name.

/etc/nginx/sites-enabled/default

server { listen 443; server_name example.com;

Accordingly, we tell Nginx where to store the Rocket.Chat access logs, and point it to the SSL certificate and key in /etc/nginx/certificate.key and /etc/nginx/certificate.crt respectively. response.

/etc/nginx/sites-enabled/default

   error_log /var/log/nginx/rocketchat.access.log; ssl on; ssl_certificate /etc/nginx/certificate.crt; ssl_certificate_key /etc/nginx/certificate.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’t use SSLv3 ref: POODLE

And now we end the configuration with a location block:

   location / { proxy_pass http://example.com: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-Forward-For $proxy_add_x_forwarded_for; proxy_set_header X-Forward-Proto http; proxy_set_header X-Nginx-Proxy true; proxy_redirect off; } }

Here is the entire file for reference:

/etc/nginx/sites-enabled/default

server { listen 443; server_name example.com; error_log /var/log/nginx/rocketchat.access.log; ssl on; ssl_certificate /etc/nginx/certificate.crt; ssl_certificate_key /etc/nginx/certificate.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’t use SSLv3 ref: POODLE location / { proxy_pass http://example.com: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-Forward-For $proxy_add_x_forwarded_for; proxy_set_header X-Forward-Proto http; proxy_set_header X-Nginx-Proxy true; proxy_redirect off; } }

Save and exit the file . Finally, restart Nginx to get the job done.

sudo service nginx restart

Check if Nginx is running.

sudo service nginx status

If you see the following message, Nginx is up and running:

* nginx is running

If you see an error message, check the log at /var/log/nginx/rocketchat.access.log and /var/log/nginx/access.log or the error log at /var/log/nginx/error.log . You can also run nginx -t to verify your Nginx configuration file, which is where most errors show up.

Make sure you’re still in the Rocket.Chat folder.

cd ~/Rocket.Chat

Then run the following command to restart Rocket.Chat.

node main.js

Rocket.Chat will now go live at https:// example.com . You can verify this by visiting the address in your favorite browser.

In the next section, we will configure Rocket.Chat to run automatically at startup using a node module called forever-service .

 

Step 4 – Configure Rocket.Chat as a Service

forever-service automatically generates init scripts for node apps like Rocket.Chat. To get started, we need to install forever itself, which forever-service depends on.

sudo npm install -g forever

Then install forever-service .

sudo npm install -g forever-service

Create a service using forever-service :

sudo forever-service install -s main.js -e “ROOT_URL=https://example.com/ MONGO_URL=mongodb://localhost:27017/rocketchat PORT=3000” rocketchat

The -s flag followed by main.js indicates that our script forever-service is named main.js , not app.js , by default.

The -e flag followed by “ROOT_URL=https:// example.com / MONGO_URL=mongodb://localhost:27017/rocketchat PORT=3000” moves our environment variables to the service permanently.

Finally, rocketchat tells forever-service what to name the service.

For more detailed information about forever-service’s syntax, run forever-service –help .

Now we can start Rocket.Chat. This will initialize the rocketchat service created by forever-service .

sudo start rocketchat

Rocket.Chat should now appear at the URL you set in Step 2. Make sure you’re using HTTPS here.

Rocket.Chat is ready to go. In the next section, we’ll add your first admin-user to Rocket.Chat and tour the interface.

Step 5 – Configure and Use Rocket.Chat

Go to the URL where we placed the previously installed Rocket.Chat. You will see information like this:

 

Click Register a new account, then enter the user information for your first administrator.

Click Submit , then choose a username for your new user:

After clicking Use this username, you will be taken to the home page:

That is all! You will see on the right, # public channel has been created for you. If you click on it, you will be taken to the chat room. Feel free to play around a bit.

Now let’s tour the interface. First, go ahead and create a new channel by clicking the little plus button next to Channels:

Name it what you want:

Now click Save and you will be taken to your new channel.

To access the Administration interface, click the small arrow next to your user name. It will pull down a menu:

Click Administration. It will show the second menu:

 

Link: https://pdfcoffee.com/10-huong-dan-su-dung-rocketchat-pdf-free.html

Using this menu, you can configure and manage every aspect of your Rocket.Chat installation. In the User section, you can manage individual user permissions and even invite new people. You can also add more features to your installation using the Integration view.

Conclude

Congratulations! Thus, you have your very own chat solution for you and your group: Rocket.Chat, running on Ubuntu 14.04 server. It is set to run automatically at startup using forever-service and fully SSL equipped using Reverse Proxy Nginx. Now you may need to add more members, create more channels or can view the Integrations section of the Administration menu. Have fun!

 

 

 

 

INSTRUCTIONS TO INSTALL, CREATE USER AND INTERNAL CHAT.

  1. Installation. – User copy to his computer the source of the chat software installation path P:\IT\1-TV_SOFTWARE\Chat-Lan\

After the installation is complete, on the desktop appears an application named Rocket.Chat+, open the application and type the address http://chat.trivietsteel.local:3000 as shown below.

 

  1. Use.
  2. Register.

– Click on the link to register a new account

– Fill in your first and last name, email, and password.

  • Enter your username to login.

  1. 2. Change name, avatar.

III. Chat and group chat.

1.Create group chat.

2.Find other users to chat privately.

3.Upload file 

Buy us some coffee Thank You for your support as we work to give you the best of guides and articles.

top