Some steps on the scripts needs sudo. There’s no other way.
One way for you is just downloading the binary and running it locally dgraph-linux-amd64.tar.gz
To run locally you have to be at the same path as the binary and run:
./dgraph zero ... some_configs