Skip to content

Instantly share code, notes, and snippets.

@LinuxIntellect
Last active April 20, 2020 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LinuxIntellect/8849b39674dd61db7cc6b6dee74b98df to your computer and use it in GitHub Desktop.
Save LinuxIntellect/8849b39674dd61db7cc6b6dee74b98df to your computer and use it in GitHub Desktop.
Youtube: https://www.youtube.com/watch?v=Q3PY7OSIYvI&t=7s
sudo apt-get -y update && upgrade
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
sudo apt-get -y update && sudo apt-get install -y curl && curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt-get install -y build-essential mongodb-org nodejs graphicsmagick
sudo npm install -g inherits n && sudo n 12.14.0
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
cd /tmp/bundle/programs/server && npm install
sudo mv /tmp/bundle /opt/Rocket.Chat
sudo useradd -M rocketchat && sudo usermod -L rocketchat
sudo sed -i "s/^# engine:/ engine: mmapv1/" /etc/mongod.conf
sudo systemctl enable mongod && sudo systemctl start mongod
mongo --eval "printjson(rs.initiate())"
sudo systemctl enable rocketchat && sudo systemctl start rocketchat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment