---
title: 'Agent Linux'
url: 'https://lynal.ru/en/tools/lynal-analytics/documentation/agent-linux'
markdown: 'https://lynal.ru/en/tools/lynal-analytics/documentation/agent-linux.md'
lang: en
date: '2026-11-26'
description: 'Installing the Agent on the Game Server Downloading Required Files Download the agent script and the static binary curl file to your computer: bedrock_server.sh (MD5: 0368259e2775044b66bedc35e2dc0e4d) curl-amd64 Editing the Script Open the downloaded bedrock_server.sh file in a text editor (e…'
---

# Agent Linux

## Installing the Agent on the Game Server

1. **Downloading Required Files**Download the agent script and the static binary curl file to your computer:

    - [bedrock\_server.sh](https://lynal.ru/files/tools/bedrock_server.sh) (MD5: `0368259e2775044b66bedc35e2dc0e4d`)
    - [curl-amd64](https://github.com/moparisthebest/static-curl/releases/download/v8.21.0/curl-amd64)
2. **Editing the Script**Open the downloaded `bedrock_server.sh` file in a text editor (e.g., Notepad, Notepad++, or VS Code).

    ![Process of opening the script file in a text editor](https://lynal.ru/user/pages/14.tools/13.lynal-analytics/documentation/agent-linux/17.png "Process of opening the script file in a text editor")
3. **Configuring Variables**Go back to the open server settings browser page. Copy the values and paste them into the script inside the empty quotes for the `X_AGENT_TOKEN` and `SERVER_ID` variables, then save the changes.

    ![Adding the token and server ID into the script configuration lines](https://lynal.ru/user/pages/14.tools/13.lynal-analytics/documentation/agent-linux/18.png "Adding the token and server ID into the script configuration lines")
4. **Stopping the Server**Completely stop your Minecraft Bedrock game server before continuing with the tasks.
5. **Creating a Backup**⚠️ Make sure to create a backup of all your game server files before making any modifications
6. **Connecting to the Server**Connect to your game server's file system using FTP or SFTP protocol ([WinSCP](https://winscp.net/eng/download.php) or any other convenient FTP/SFTP client is recommended).
7. **Locating the Executable File**Find the original server executable file in the root directory. It is typically named `bedrock_server` (on Linux) or `server`.
8. **Preparing the Agent File**Rename the modified `bedrock_server.sh` file on your computer so that its name matches the exact name of your server's original executable file.

    - *Example:* `bedrock_server.sh` ➡️ `bedrock_server`
9. **Renaming the Original File**On the game server itself, rename the original file exactly to `bedrock_server_original`. The name must be exactly as follows:

    - *Example:* `bedrock_server` ➡️ `bedrock_server_original`
10. **Uploading Files to Hosting**Upload the prepared `bedrock_server` file (which is the renamed agent script) and the `curl-amd64` file into the root directory of your game server.
11. **Opening File Properties**In WinSCP, right-click the uploaded bedrock\_server file and select "Properties":

    ![WinSCP window with context menu and file properties window open](https://lynal.ru/user/pages/14.tools/13.lynal-analytics/documentation/agent-linux/19.png "WinSCP window with context menu and file properties window open")
12. **Granting Execution Permissions (Crucial!)**In the properties window, check the launch/execute permissions (**X**) for the `bedrock_server` file. Click "OK" to save. Repeat the exact same action for the `curl-amd64` file:

    ![Setting execution checkmarks (Execute / X) inside the file permissions settings](https://lynal.ru/user/pages/14.tools/13.lynal-analytics/documentation/agent-linux/20.png "Setting execution checkmarks (Execute / X) inside the file permissions settings")
13. **Verifying File Structure**Make sure that the following files are now present in the root folder of your game server:

    - `bedrock_server` — agent-wrapper (our configured shell script)
    - `bedrock_server_original` — the original Minecraft game server executable file
    - `curl-amd64` — compiled static curl binary used to transmit data to the analytics backend

    ![File list in the server root verifying correct naming conventions and the presence of curl](https://lynal.ru/user/pages/14.tools/13.lynal-analytics/documentation/agent-linux/21.png "File list in the server root verifying correct naming conventions and the presence of curl")
14. **Startup and Verification**You're all set! Start your game server using your usual startup command. It will now automatically begin collecting and passing connection logs to the Lynal BDS Analytics service.

---

## Navigation

- Parent: [documentation](https://lynal.ru/en/tools/lynal-analytics/documentation.md)
- Previous: [addon-behavior-pack](https://lynal.ru/en/tools/lynal-analytics/documentation/addon-behavior-pack.md)
- Next: [Agent Windows](https://lynal.ru/en/tools/lynal-analytics/documentation/agent-windows.md)
