How to Install Fleet Osquery Manager on Ubuntu Linux
Fleet is an open-source tool that helps IT teams manage many computers and servers at once. It uses a tool called Osquery to see what is happening on your devices. You can run live queries, check logs, and see your entire fleet in real-time. Why use it? It simplifies device management and security oversight across your whole network. What happens when done? You get a powerful web dashboard to control and monitor all your connected machines.
Install MariaDB Database Server
Fleet needs a database to store its information. MariaDB is a great choice for this task.
Run these commands to install it:
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
Now, we need to create a specific place in the database for Fleet. Use the security script first to lock things down:
sudo mariadb-secure-installation
Follow the prompts to remove guest users and secure the root account. Next, log in and create the database and user:
sudo mariadb -u root -p
Run these commands inside the MariaDB prompt:
CREATE DATABASE fleetdb;
CREATE USER ‘fleetuser’@’localhost’ IDENTIFIED BY ‘your_strong_password’;
GRANT ALL PRIVILEGES ON fleetdb.* TO ‘fleetuser’@’localhost’;
FLUSH PRIVILEGES;
EXIT;
How to install and use MariaDB on Ubuntu Linux
Install Redis Server
Fleet uses Redis to handle quick data tasks. Install it with this command:
sudo apt install redis
sudo systemctl enable redis-server
sudo systemctl start redis-server
How to install Redis on Ubuntu Linux
Install Fleet Osquery Manager
While you can run Fleet as a binary, using Docker is the best way to keep it updated and easy to manage in 2026.
Docker Deployment (Recommended)
First, install Docker on your Ubuntu system. Then, create a folder for your configuration and run Fleet as a container. This ensures your setup stays isolated and simple to update.
Manual Binary Installation
If you prefer not to use Docker, you can fetch the latest version automatically using this script:
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
Create a service file so Fleet runs in the background:
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
It is best practice to put Nginx in front of Fleet to handle SSL. Install Nginx and use Certbot to get a free Let’s Encrypt certificate.
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 --nginx 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
You have successfully installed the Fleet Osquery Manager. Your system is now ready to track and manage your devices securely. By using modern tools like Docker and Nginx, you have ensured that your management platform remains stable and safe for years to come.
[Unit] [Service] [Install] [1] [5395] [5395]
Was this guide helpful?
Leave a Reply Cancel reply