How To Install Rocket Chat Server Using Script on Ubuntu 20.04
In this tutorial how to install Rocket Chat server using script on Ubuntu 20.04 server. This is very easy step for installation process.
★ Download Rocket Chat Backup Script
★ Download Restore Rocket Chat Database Script
My server info:
#############################################
IP Address : 10.66.100.40 //Rocket Chat server
OS : Ubuntu 20.04
RAM : 2GB
vCPU : 2
Disk : 50 GB
Service : Rocket Chat
RC Version : 4.0.x
#############################################
Step #01: Check my server ip and version using below command.
lsb_release -a && ip r
Output as like below.
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal default via 10.66.100.10 dev enp0s3 proto static 10.66.0.0/16 dev enp0s3 proto kernel scope link src 10.66.100.40
Download script from my script portal.
wget https://script.technologyrss.com/linux/rocket.chat/install-rocket-chat.sh
Setup executable permission.
chmod 755 install-rocket-chat.sh
Then run script file using below command.
./install-rocket-chat.sh
or
You can run without execute permission.
bash install-rocket-chat.sh
Then wait up to 10 – 20 min for complete installation process!
Reboot vps then run below command.
reboot
Then run below command
mongo --eval 'printjson(rs.initiate())' sudo systemctl stop rocketchat sudo systemctl start rocketchat sudo systemctl status rocketchat
When see status as like same then access web url.
Jun 17 13:53:46 chat rocketchat[876]: ➔ | MongoDB Version: 4.0.27 Jun 17 13:53:46 chat rocketchat[876]: ➔ | MongoDB Engine: mmapv1 Jun 17 13:53:46 chat rocketchat[876]: ➔ | Platform: linux Jun 17 13:53:46 chat rocketchat[876]: ➔ | Process Port: 3000 Jun 17 13:53:46 chat rocketchat[876]: ➔ | Site URL: http://localhost:3000/ Jun 17 13:53:46 chat rocketchat[876]: ➔ | ReplicaSet OpLog: Enabled Jun 17 13:53:46 chat rocketchat[876]: ➔ | Commit Hash: 55457025d6 Jun 17 13:53:46 chat rocketchat[876]: ➔ | Commit Branch: HEAD Jun 17 13:53:46 chat rocketchat[876]: ➔ | | Jun 17 13:53:46 chat rocketchat[876]: ➔ +-----------------------------------------------+
Access your server ip address and create admin account
Access details:
Access URL : http://10.66.100.40:3000/
Step #02: Access URL then create admin account.
Name : admin.chat Username : admin.chat Organization Email : [email protected] Password : ************
Then click Continue and type your origination info.
Organization Type : Community Organization Name : Technologyrss.com Industry : Consulting Size : 4000 Country : Bangladesh Website : Technologyrss.com
Then click Continue and type your server info.
Site Name : Technologyrss.com Language : Default Server Type : Private Team Auto opt in new users for Two Factor via Email : No
Then click Continue and select standalone server.
Now see, Your workspace is ready to use 🙂
Click Go to your workspace and then see Administration info as like below.
If see any error so please see my YouTube video. Don’t forget subscribe my channel.
maybe you should upgrade the script to use MongoDB v5.0… 😉
ok, Let me check then I will update this script.
Thanks.
on ubuntu 22 not work
Yes, I will post update as soon.
Good afternoon.
Could you update the Script to a new version of Rocket.
Yes, I will try as soon as possible.