How to Install MeshCentral on Debian Latest
In this tutorial, we will guide you through the steps to install MeshCentral on Debian. MeshCentral is a web-based open-source remote computer management tool that lets you manage your devices from anywhere in the world.
Prerequisites
- A VPS or a dedicated server running the latest version of Debian.
- A non-root user with sudo privileges.
Step 1: Updating the System
Before installing any new packages, it is essential to update the system to the latest version. Run the following commands:
sudo apt update
sudo apt upgrade
Step 2: Installing Required Packages
MeshCentral requires Node.js to be installed on the system. Run the following command to install Node.js:
sudo apt install nodejs
Step 3: Downloading and Installing MeshCentral
Download the MeshCentral package by running the following command:
wget https://github.com/Ylianst/MeshCentral/releases/download/v0.4.7/meshcentral-v0.4.7.zipUnzip the package by running the following command:
sudo apt install unzip unzip meshcentral-v0.4.7.zipChange to the MeshCentral directory and install the required dependencies by running the following command:
cd meshcentral npm ci
Step 4: Configuring MeshCentral
Create a configuration file by running the following command:
nano config.jsonPaste the following configuration into the file and save it:
{ "webport": 8080, "uname": "<username>", "pname": "<password>", "meshname": "MeshCentral", "licence": "trial", "hidesettings": ["LogLocation"], "showtabs": [ "overview", "devices", "users", "myprofile", "security", "settings" ], "dbconfig": { "protocol": "<protocol>", "host": "<host>", "port": "<port>", "dbname": "<dbname>", "username": "<dbusername>", "password": "<dbpassword>" } }Replace
<username>and<password>with your desired username and password for MeshCentral. Replace<protocol>,<host>,<port>,<dbname>,<dbusername>, and<dbpassword>with your respective database configuration.Start the MeshCentral server by running the following command:
node meshcentral
Step 5: Accessing MeshCentral
- Open your web browser and navigate to
http://<server-ip>:8080. - Enter your MeshCentral username and password to log in.
- You should now be able to access and manage your devices from MeshCentral.
Congratulations! You have installed MeshCentral on Debian Latest.