From 00bb25420e3da3c8d0eab2fa4bd7f7fb0aaef81f Mon Sep 17 00:00:00 2001 From: Mikael Frykholm Date: Wed, 19 Jul 2017 05:16:00 +0200 Subject: [PATCH] Getting started hacking should be easy --- README.md | 9 +++++---- friends/run.sh | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 48de2f6..415362e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ friends ======= +virtualenv -p python3 venv +. venv/bin/activate +pip3 install -e ./ -Ostatus app - -Generate self signed key with: -openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -nodes -days 3650 +#optionally to run on port <1024 +sudo setcap cap_net_bind_service=+ep venv/bin/python3 diff --git a/friends/run.sh b/friends/run.sh index 6aa607b..6005928 100755 --- a/friends/run.sh +++ b/friends/run.sh @@ -1,2 +1,3 @@ #!/bin/bash -sudo python3 server.py --logging=debug +#setcap 'cap_net_bind_service=+ep' /path/to/program +python3 server.py --logging=debug -- 2.39.2