From 641016fede09acdb43eadb6763df23e5ed8433c4 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Thu, 11 Jul 2024 20:36:27 +0100 Subject: [PATCH] Update README.md --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 51ee430..07a0c9b 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,29 @@ This is a simple HTTP server meant to emulate python's SimpleHTTPServer module. ## Usage -```httpserver [-h] [--cgi] [-b ADDRESS] [-d DIRECTORY] [-p VERSION] [port]``` \ No newline at end of file +```httpserver [-h] [--cgi] [-b ADDRESS] [-d DIRECTORY] [-p VERSION] [port]``` + +## Installing + +First, have Go installed. Latest version, please. I'm talking about you debian. + +Run as root + +``` +CDIR=$PWD +cd /tmp +git clone https://concord.hectabit.org/HectaBit/httpserver --depth=1 +cd httpserver/httpserver +make install +cd $CDIR +CDIR= +``` +This also puts your enviroment right back where it was, how nice of me! + +## Compiling +``` +git clone https://concord.hectabit.org/HectaBit/httpserver --depth=1 +cd httpserver/httpserver +make +``` +This creates the binary "httpserver" \ No newline at end of file