π§ 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:
wget https://raw.githubusercontent.com/Nerdy-Technician/LinuxRMM-Script/refs/heads/main/rmmagent-linux.shMake it executable:
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:
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β amd64i386/i686β x86aarch64β arm64armv7lβ armv6armv6lβ armv6
If the architecture is unrecognized, the script exits safely with an error message.
π Install the Agent β
Run the script with the following syntax:
./rmmagent-linux.sh install 'Mesh Agent URL' 'API URL' ClientID SiteID 'Auth Key' 'Agent Type'Parameters: β
- Mesh Agent URL β Provided by MeshCentral (
Add Agent > Installation Executable Linux/BSD/macOS). Copy only the base URL, leaving out install flags. - API URL β TacticalRMM API endpoint, usually
https://api.example.com. - Client ID β Visible when hovering over the client name in TacticalRMM.
- Site ID β Visible when hovering over the site name in TacticalRMM.
- Auth Key β Generated under
Agents > Install Agent (Windows) > Manual. Copy the value after--auth. - Agent Type β
serverorworkstation.
Example: β
./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: β
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: β
[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:
./rmmagent-linux.sh updateβ Uninstall the Agent β
To remove the agent:
./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: β
./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.