https://cerbos.dev logo
#community
Title
# community
p

Praveen Naik

11/08/2023, 6:32 AM
Hi community i have been trying to use cerbos for authorization purpose in python.. but i'm stuck in between .. and i'm not able make cerbos localhost connection..! "Failed to connect to remote host" i have installed the binaries for the respective BUNDLE using the command need some help in installing the cerbos in linux curl -L -o cerbos.tar.gz "https://github.com/cerbos/cerbos/releases/download/v0.31.0/BUNDLE" tar xvf cerbos.tar.gz chmod +x cerbos can anyone help to resolve this issue.!
f

Farzad Soltani

11/08/2023, 7:17 AM
Are you replacing
<BUNDLE>
with a correct version?
For example:
Copy code
curl -L -o cerbos.tar.gz "<https://github.com/cerbos/cerbos/releases/download/v0.31.0/cerbos_0.31.0_Linux_x86_64.tar.gz>"
tar xvf cerbos.tar.gz
chmod +x cerbos
p

Praveen Naik

11/08/2023, 7:19 AM
yes! and also downloaded and extracted the linux pakage for cerbos cerbos_0.31.0_Linux_x86_64.tar.gz but not need to know how further steps to run cerbos in local
f

Farzad Soltani

11/08/2023, 7:19 AM
Just type
cerbos
in your terminal, hit enter and you should be good to go.
p

Praveen Naik

11/08/2023, 7:20 AM
but getting "~$ cerbos cerbos: command not found"
f

Farzad Soltani

11/08/2023, 7:21 AM
Run this
./cerbos server
Make sure to run
mkdir policies
before it, otherwise you might run into an error
image.png
It should look like this when it's running.
p

Praveen Naik

11/08/2023, 7:25 AM
ok got it .. it's running now Thank a lot..
i was trying with "cerbos" command and it wasnot working and tried checking status also using sudo systemctl status cerbos, this also didn't work at that time so..
f

Farzad Soltani

11/08/2023, 7:28 AM
Yeah,
systemctl status cerbos
won't work as you haven't installed Cerbos as a service and are directly running it via the binary file.
p

Praveen Naik

11/08/2023, 7:30 AM
is there any document or video source link where i can refer for installing cerbos as a service?
o

oguzhan

11/08/2023, 7:31 AM
Hi @Praveen Naik, We have a quick start page in our docs where we describe how to run cerbos in a container. https://docs.cerbos.dev/cerbos/latest/quickstart
f

Farzad Soltani

11/08/2023, 7:31 AM
Yeah, I was gonna say the same. Go with Docker and you won't have to set up services and the like.
p

Praveen Naik

11/08/2023, 7:33 AM
ok, Thanks for the info guys
4 Views