https://github.com/osquery/osquery logo
#fleet
Title
# fleet
d

Dulal

01/23/2022, 11:23 AM
Running the Fleet server Now that we have installed Fleet, MySQL, and Redis, we are ready to launch Fleet! First, we must "prepare" the database. We do this via `fleet prepare db`: [5:10 PM] where should i write this lines. I have tried to write fleet prepare db on terminal but its shows fleet command not found
b

Benjamin Edwards

01/23/2022, 3:01 PM
Download the fleet binary for Linux using the releases page. https://github.com/fleetdm/fleet/releases Once you have the fleet binary you can run prepare DB and the serve command.
t

Tor Houghton

01/23/2022, 9:32 PM
I run fleet in docker, using docker-compose, so I do $ docker-compose run fleetdm fleet prepare db
d

Dulal

01/24/2022, 4:16 AM
@Benjamin Edwards I don't understand which one I should download. I sent you some screen shot. plz tell me.
b

Benjamin Edwards

01/24/2022, 4:27 AM
fleet v4.9.0 linux
d

Dulal

01/24/2022, 4:59 AM
@Benjamin Edwards previously i have downloaded fleet v4.9.0 linux. when I run command with fleet. It shows fleet not found.
b

Benjamin Edwards

01/24/2022, 5:02 AM
You have to extract using
tar -xzf
and then run
fleet prepare db
d

Dulal

01/24/2022, 5:16 AM
@Benjamin Edwards Still the same result fleet command not found. plz check ta screen shot below.
b

Benjamin Edwards

01/24/2022, 5:30 AM
Looks like you downloaded fleetctl
You need the fleet binary
d

Dulal

01/24/2022, 5:36 AM
@Benjamin Edwards for R&D purpose I downloaded both. I download fleet binary. I move it to usr/bin file. but When I command from terminal. it shows fleet command isn't found. plz give me the direct download link of fleet binary. if I click on this it will automatically stating download. for example it could be google drive link from there i could get the binary version of fleet from you.
b

Benjamin Edwards

01/24/2022, 1:22 PM
Hmm /usr/bin might not be in $PATH If that's the case. Rather than moving fleet, just leave it where it's downloaded and try from there.
13 Views