Install MeshCentral - Remote Management Site - on Linux 🌱

What is MeshCentral?

MeshCentral is a full computer management web site. With MeshCentral, you can run your own web server to remotely manage and control computers on a local network or anywhere on the internet. -https://github.com/Ylianst/MeshCentral

Installing NodeJS

  1. Log into the Linux device
  2. Run the following commands in a terminal window
    # add nodejs software repository
    curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -
    # install nodejs
    sudo apt install nodejs -y
    # test node is working
    node -v
    # test npm is working
    npm -v

Installing MeshCentral

  1. Continue with the following commands:
    # create a meshcentral folder
    sudo mkdir /usr/local/bin/meshcentral
    # change to the new directory
    cd /usr/local/bin/meshcentral
    # install meshcentral
    sudo npm install meshcentral
    # create a service file
    sudo nano /etc/systemd/system/meshcentral.service
  2. Paste the following configuration

    [Unit]
    Description=MeshCentral Server

    [Service]
    Type=simple
    LimitNOFILE=1000000
    ExecStart=/usr/bin/node /usr/local/bin/meshcentral/node_modules/meshcentral
    WorkingDirectory=/usr/local/bin/meshcentral
    Environment=NODE_ENV=production
    Restart=always
    # Restart service after 10 seconds if node service crashes
    RestartSec=10
    # Set port permissions capability
    AmbientCapabilities=cap_net_bind_service

    [Install]
    WantedBy=multi-user.target

  3. Press CTRL+O, Enter, CTRL+X to write the changes
  4. Continue with the following commands
    # reload services
    sudo systemctl daemon-reload
    # start and enable meshcentral service
    sudo systemctl enable meshcentral.service --now
  5. Open a web browser and navigate to https://DNSorIP
  6. Accept the certificate warning
  7. Click the link to create an account
  8. Complete the form by entering an username, email and password > Click Create Account
  9. Welcome to MeshCentral

Source: https://meshcentral.com/docs/MeshCentral2InstallGuide.pdf