Deploy on Kali
Preparation Steps
Install necessary dependencies
Update the package list and configure apt to install the official MongoDB packages with the following repository file:
When deploying MongoDB, it is crucial to secure MongoDB instances and close all MongoDB ports from public access. Unsecured instances can lead to significant security vulnerabilities. Your vigilance in these practices is essential for maintaining the integrity and safety of your systems.
Configure Node.js to be installed via the package manager.
Install the Node and MongoDB versions required for the Rocket.Chat release you intend to install.
Install build tools, MongoDB and dependencies (libcurl3 and MongoDB server), NodeJS, and graphicsmagick.
Using npm install inherits and n, and the node version required by Rocket.Chat.
Install Rocket.Chat on Kali
Download and extract the latest Rocket.Chat version with these commands:
Install NPM.
When executing npm install
, it is recommended to operate using a non-root account. Alternatively, you can utilize the npm install --unsafe-perm
command. This approach eliminates the necessity for building libc or upgrading the host system.
This guide uses /opt but feel free to choose a different directory.
Configure the Rocket.Chat service
Add the rocketchat user and set the right permissions on the Rocket.Chat folder.
Create the Rocket.Chat service file.
Open the service file (
/lib/systemd/system/rocketchat.service
) using sudo and update theROOT_URL
environmental variable to reflect the URL you are using to access the server. Optionally, you can changeMONGO_URL
,MONGO_OPLOG_URL
andPORT
.
Set up storage engine and replication for MongoDB.
Enable and start MongoDB with the following command
Then, initiate replica set with this command:
Enable and start your Rocket.Chat workspace now using this command:
Configure your Rocket.Chat server
To access your Rocket.Chat workspace, open a web browser and navigate to the specified ROOT URL (http://your-host-name.com-as-accessed-from-internet:3000). Follow the configuration prompts to configure your workspace.
Optional configurations
Last updated