Skip to content

πŸ”§ LinuxRMM-Script Documentation ​

this guide provides comprehensive instructions for using the LinuxRMM-Script to install, update, and manage Tactical RMM agents on Linux systems.

πŸ“₯ Script Download & Setup ​

Download the script:

bash
wget https://raw.githubusercontent.com/Nerdy-Technician/LinuxRMM-Script/refs/heads/main/rmmagent-linux.sh

Make it executable:

bash
sudo chmod +x rmmagent-linux.sh

πŸ“– Full installation guide available here: Installation Wiki


πŸ–₯️ Fix Blank Screen for Ubuntu Workstations (16+) ​

Ubuntu uses Wayland by default, which may cause MeshCentral remote desktop sessions to display a blank screen.

Run the following commands to switch back to X11:

bash
sudo sed -i '/WaylandEnable/s/^#//g' /etc/gdm3/custom.conf
sudo systemctl restart gdm

πŸ”Ή On Ubuntu 19 and earlier, the file path is /etc/gdm/custom.conf.

After restarting, remote desktop functionality will work properly.


βš™οΈ Automatic Architecture Detection ​

The script automatically detects system architecture using uname -m and maps it to the correct agent type:

  • x86_64 β†’ amd64
  • i386 / i686 β†’ x86
  • aarch64 β†’ arm64
  • armv7l β†’ armv6
  • armv6l β†’ armv6

If the architecture is unrecognized, the script exits safely with an error message.


πŸš€ Install the Agent ​

Run the script with the following syntax:

bash
./rmmagent-linux.sh install 'Mesh Agent URL' 'API URL' ClientID SiteID 'Auth Key' 'Agent Type'

Parameters: ​

  1. Mesh Agent URL – Provided by MeshCentral (Add Agent > Installation Executable Linux/BSD/macOS). Copy only the base URL, leaving out install flags.
  2. API URL – TacticalRMM API endpoint, usually https://api.example.com.
  3. Client ID – Visible when hovering over the client name in TacticalRMM.
  4. Site ID – Visible when hovering over the site name in TacticalRMM.
  5. Auth Key – Generated under Agents > Install Agent (Windows) > Manual. Copy the value after --auth.
  6. Agent Type – server or workstation.

Example: ​

bash
./rmmagent-linux.sh install 'https://mesh.example.com/meshagents?id=XXXXX' 'https://api.example.com' 3 1 'XXXXX' server

⏳ Note: Compilation may take several minutes depending on hardware. Please be patient.


🎨 Prettier --simple Output ​

The script supports a --simple flag to make installation output cleaner and more readable.

Usage: ​

bash
sudo bash rmmagent-linux.sh --simple install 'Mesh Agent URL' 'API URL' ClientID SiteID 'Auth Key' 'Agent Type'

Features: ​

  • Color-coded messages:
    • [INFO] – Blue, informational updates
    • [OK] βœ… – Green, successful steps
    • [ERROR] ❌ – Red, failed steps
  • Spacing between sections for easier reading
  • Collapsed download/compile progress to avoid clutter
  • All temporary files cleanup is highlighted clearly

Example: ​

bash
[INFO] Installing Go 1.24.6 for amd64...

[OK] βœ… Go 1.24.6 installed.

[INFO] Installing MeshCentral agent for amd64...

[OK] βœ… Mesh agent installed.

[INFO] Compiling Tactical RMM agent for amd64...

[OK] βœ… Tactical RMM agent compiled.

[INFO] Installing Tactical Agent service...

[OK] βœ… Tactical Agent installed successfully.

[OK] βœ… Tactical Agent service installed and started.

[INFO] Cleaning up temporary files...

[OK] βœ… Temporary files cleaned.

πŸ”„ Update the Agent ​

To update an installed agent:

bash
./rmmagent-linux.sh update

❌ Uninstall the Agent ​

To remove the agent:

bash
./rmmagent-linux.sh uninstall 'Mesh FQDN' 'Mesh ID'

Parameters: ​

  • Mesh FQDN – Example: mesh.example.com
  • Mesh ID – 64-character alphanumeric ID (Linux/BSD uninstall instructions in MeshCentral).

Example: ​

bash
./rmmagent-linux.sh uninstall mesh.example.com 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

⚠️ Important Notes:

  • Only use this method if agent removal in TacticalRMM is not working.
  • This process does not remove records from TacticalRMM or MeshCentral dashboards. Cleanup must be done manually.

πŸ“Œ Credits ​

This project is based on Netvolt’s LinuxRMM-Script, with extended compatibility and refinements.


✨ Professional, robust, and multi-platform ready β€” the easiest way to manage TacticalRMM agents on Linux.

Built with ❀️ using VitePress | Because Real Nerds Selfhost