• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Steps to Install Rocket.Chat on Ubuntu 14.04 LTS

By Abhishek Ghosh May 10, 2016 11:06 pm Updated on May 10, 2016

Steps to Install Rocket.Chat on Ubuntu 14.04 LTS

Advertisement

We talked about Chat Server like IRC. Rocket.Chat is a Chat Server Application to Host Own Chat Service With Mobile Apps. Here are Steps to Install Rocket.Chat on Ubuntu 14.04. It is a Free Software and needs 1 GB of RAM, we have VPS Dime 6GB RAM server at $7/month cost, Host1Plus at very lower price per month. Host1Plus has support for installing Software at extra fees. KeyCDN is our CDN and they are one of the sponsor of the project.

 

Why You Will Like to Install Rocket.Chat on Ubuntu

 Steps to Install Rocket-Chat on Ubuntu 14-04 LTS

It can run on your server as another web application beside WordPress and Forum Software. Nginx is already installed, just create a subdomain and have TLS certificate installed on the subdomain. So, the server block will be easy.

You can chat with audio and video, website visitors can contact you in real-time, you can share files, integrate your chat to multiple services including GitHub, GitLab, client applications are available for GNU/Linux, Windows and OS X, there are mobile applications.

Advertisement

---

We need MongoDB and NodeJS apart from Nginx.

 

First Expert Way to Install Rocket.Chat on Ubuntu 14.04 LTS

 

Vim
1
2
3
4
5
6
7
apt-get install git && add-apt-repository ppa:chris-lea/node.js
apt update && sudo apt-get install nodejs
apt-get install mongodb
curl https://install.meteor.com/ | sh
git clone https://github.com/RocketChat/Rocket.Chat.git
cd Rocket.Chat
sudo meteor

Go to http://your_server_ip:3000. Done

 

Second Expert Way to Install Rocket.Chat on Ubuntu 14.04 LTS With Docket At Port 80

 

Vim
1
2
3
4
5
6
7
8
9
sudo apt-get install -y git
curl -sSL https://get.docker.com/ | sh
curl -L https://github.com/docker/compose/releases/download/VERSION_NUM/docker-compose-`uname -s`-`uname -m` > sudo /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
curl -L https://github.com/docker/compose/releases/download/1.4.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
git clone https://github.com/RocketChat/Rocket.Chat.git
cd Rocket.Chat
sudo docker-compose up

Go to http://server_ip:80. Done.

 

Third Step by Step Way to Install Rocket.Chat on Ubuntu 14.04 LTS With Nginx Reverse Proxy

 

This is recommended. Add key, set repo for MongoDB, update :

Vim
1
2
3
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
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
apt update && apt upgrade

Install the components :

Vim
1
apt-get install npm mongodb-org curl graphicsmagick nginx-extras

These are NPM related commands, if you are not used, may read their documents, just follow the screen instructions :

Vim
1
sudo npm install -g n && sudo n 0.10.40

Take that, domain name is jima.in, we thought the subdomain as chat.jima.in, we have basic setup of Nginx for that server block, added chat.jima.in via DNS service to point and /usr/share/nginx/html/Rocket.Chat as root location. Now we can download the rocket.chat from their server or from Github :

Vim
1
https://github.com/RocketChat/Rocket.Chat.Docs.git

https://rocket.chat/releases/latest/download

Do a ls and check the files, bundle and install :

Vim
1
2
3
mv bundle Rocket.Chat
cd Rocket.Chat/programs/server
npm install

We need to go 2 level up to go to Rocket.Chat dir :

Vim
1
2
3
mv bundle Rocket.Chat
cd .. && ls
cd .. && ls

We to set ROOT_URL, port and MongoDB URL :

Vim
1
2
3
export ROOT_URL=https://chat.jima.in/
export MONGO_URL=mongodb://localhost:27017/rocketchat
export PORT=3000

Run Rocket.Chat with the command :

Vim
1
node main.js

Now, we need to work with Nginx :

Vim
1
nano /etc/nginx/sites-enabled/default

This is reverse proxy :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
server {
    listen 443;
    server_name chat.jima.in;
    error_log /var/log/nginx/rocketchat.access.log;
 
# SSL stuffs here
    ssl on;
# Add SSL stuffs here
 
    location / {
        proxy_pass http://chat.jima.in: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;
    }
}

Run configtest with nginx -t and complete the full work :

Vim
1
2
3
4
5
6
7
cd ~/Rocket.Chat
node main.js
sudo npm install -g forever
sudo npm install -g forever-service
Now, let's make sure we're still in the Rocket.Chat directory:
sudo forever-service install -s main.js -e "ROOT_URL=https://chat.jima.in/ MONGO_URL=mongodb://localhost:27017/rocketchat PORT=3000" rocket chat
sudo start rocketchat

Now, got to the front-end like https://chat.jima.in/ and complete the browser based installation.

Tagged With Rocket Chat , chat ubuntu windows , how to install rocket chat with apache2 in ubuntu , Install Rocket Chat on Ubuntu with Docker , paperuri:(76480fb33947097db3e31f70bfc67ad2) , rocket chat server for window , rocket chat ubuntu 14 , rocketchat docket autostart ubuntu
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Steps to Install Rocket.Chat on Ubuntu 14.04 LTS

  • How Setup Private Docker Registry on Ubuntu 16.04 LTS Cloud Server

    You Can Have Your Own Docker Registry on Own Cloud Server Instance. Here is How Setup Private Docker Registry on Ubuntu 16.04 LTS Cloud Server.

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • Steps To Install Nginx Plus on Ubuntu Server (HP Cloud)

    Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy