How to Install Fleet Osquery Manager on Ubuntu Linux
Fleet Osquery Manager is a central control panel that lets you track and secure every networked computer from one place. It works with osquery, an open-source tool that turns your operating system into a database so you can run standard checks on hardware and software using SQL commands.
You can run live queries, check device health, and spot security problems across machines on your network in real time. For example, the system quickly finds any Ubuntu 22.04 LTS hosts running old security packages.
Install MariaDB Database Server
Fleet Osquery Manager requires a dedicated database backend to store operational data. Run these commands to install MariaDB:
sudo apt update sudo apt install mariadb-server
After installation, make sure the service starts whenever your computer turns on:
sudo systemctl stop mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb
Setup Fleet Database
Setting up the Fleet database for Fleet Osquery Manager Ubuntu requires securing your MariaDB instance and creating a dedicated database. Run the secure installation script to remove test accounts and protect your root login. After that, log into MariaDB to create the new database and user account that Fleet will use to store all its data.
sudo mariadb-secure-installation
Next, log in to MariaDB using this command: `sudo mariadb -u root -p`. Then, inside the MariaDB prompt, run these commands to create the database and user:
CREATE DATABASE fleetdb;
CREATE USER 'fleetuser'@'localhost' IDENTIFIED BY 'your_strong_password';
GRANT ALL PRIVILEGES ON fleetdb.* TO 'fleetuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Install Redis Server
Fleet relies on Redis (an in-memory data store used for caching and messaging) to handle quick data tasks. Install it with this command:
sudo apt install redis
sudo systemctl enable redis-server
sudo systemctl start redis-server
Install Fleet Osquery Manager
Containerizing the application via Docker remains the best practice for maintaining updates and isolating dependencies, although running Fleet as a raw binary is technically supported.
Docker Deployment (Recommended)
Here's how to get started with Docker Deployment:
First, install Docker on your Ubuntu system. Then, create a folder for your configuration and run Fleet as a container. This keeps your setup isolated and clean for future updates.
Manual Binary Installation
Installing Fleet Osquery Manager Ubuntu manually without Docker lets you run the software directly on your server. This process involves using terminal commands to fetch the latest release package from GitHub, unpack the files, and place the executable binaries into your system path so the application runs correctly.
LATEST_VERSION=$(curl -s https://api.github.com/repos/fleetdm/fleet/releases/latest | grep tag_name | cut -d '"' -f 4)
curl -LO https://github.com/fleetdm/fleet/releases/download/$LATEST_VERSION/fleet_$LATEST_VERSION_linux.tar.gz
tar xf fleet_$LATEST_VERSION_linux.tar.gz
sudo cp fleet /usr/local/bin/
Systemd Service
Creating a systemd service file for Fleet Osquery Manager Ubuntu allows the application to run automatically in the background as a system process. You need to write a service configuration file that defines the execution user, the path to the binary, and automatic restart rules so the app stays online after a server reboot.
sudo nano /etc/systemd/system/fleet.service
Add this configuration:
[Unit]
Description=Fleet Osquery Manager
After=network.target
[Service]
User=fleet
ExecStart=/usr/local/bin/fleet serve --config /etc/fleet/fleet.yml
Restart=always
[Install]
WantedBy=multi-user.target
Enable and start the service:
sudo systemctl daemon-reload
sudo systemctl enable fleet
sudo systemctl start fleet
Configure Nginx Reverse Proxy
Configuring an Nginx reverse proxy for Fleet Osquery Manager Ubuntu handles incoming web traffic and secures your login sessions with SSL certificates. This setup routes public web requests from port 443 securely to the backend application running locally on port 8080.
sudo apt install nginx certbot python3-certbot-nginx
Create an Nginx configuration file that points to your server's domain and forwards traffic to your Fleet port (usually 8080). Use Certbot to automatically attach your SSL certificate to the site.

Once finished, visit your domain in a web browser to finalize the setup.

Follow the screen prompts to create your admin account.

You can now add your devices to the dashboard.

Conclusion
Fleet Osquery Manager installation is now complete. Your infrastructure now supports enterprise-grade endpoint monitoring. Production-ready tooling like Docker and Nginx guarantees long-term stability and secure administrative access.
[Unit] [Service] [Install] [1] [5395] [5395]
What is fleet Osquery?
Fleet is an open source management system for osquery, the cross-platform agent that allows you to ask anything of your endpoints, from laptops to servers and containers.
What software is used for fleet management?
Fleetio is a comprehensive fleet management software solution designed to streamline operations, enhance maintenance workflows and provide actionable insights for businesses of all sizes. Trusted by thousands of organizations worldwide, Fleetio has become a leading choice for fleet optimization.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!