From 37efc5ea37345c4cfaab3a46d8951d7c201fd4f6 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 23 Feb 2021 23:00:24 +0100 Subject: [PATCH 1/3] clarify pihole --- networking/pihole/pihole.md | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/networking/pihole/pihole.md b/networking/pihole/pihole.md index 458fabe..4ceecd5 100644 --- a/networking/pihole/pihole.md +++ b/networking/pihole/pihole.md @@ -1,27 +1,26 @@ - -# List Out DNS - -> echo "addn-hosts=/etc/pihole/lan.list" | sudo tee /etc/dnsmasq.d/02-lan.conf - -Then edit that list - -> sudo vim /etc/dnsmasq.d/02-lan.conf - -`192.168.0.10 ratking.lan ratking` - -Then restart the pihole's dns: - -> sudo pihole restartdns - -#View DNS traffic +View DNS traffic > pihole -t -#Change password +Change password > pihole -a -p -# Get new list of cancer +Get new list of cancer > pihole -g +Change upstream DNS + +> sudo vim /etc/dnsmasq/pihol* + +## Troubleshooting + +> sudo usermod -aG pihole $USER + +> sudo systemctl stop systemd-resolved + +> sudo rm -f /dev/shm/FTL-* + +> pihole -g -r + From 43c0d0dac2aa96b252a3c997bf5b782301246dde Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 23 Feb 2021 23:10:01 +0100 Subject: [PATCH 2/3] place example in readme --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index a7745ca..06b52c7 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,19 @@ This is a list of quickstart guides for Linux programs. As little knowledge as possible should be presumed, with required knowledge being internally linked. If general knowledge is presumed, it should be placed into a file named 'basics'. +## Style + +The basic style should be something between a very well-commented script and a very short guide. + +### Example + +``` +How to see which websites you're actively accessing: + +> ss -tr dst :443 + +``` + # What's wrong with everything else? ## Man pages From a5e13178d0fdee7ac185aee395e0cee0af489767 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 24 Feb 2021 04:50:05 +0100 Subject: [PATCH 3/3] add gemini server --- networking/servers/agate.md | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 networking/servers/agate.md diff --git a/networking/servers/agate.md b/networking/servers/agate.md new file mode 100644 index 0000000..8bcce7f --- /dev/null +++ b/networking/servers/agate.md @@ -0,0 +1,49 @@ +Make sure your dns is in order. +My domain name is `belgradecats.tk`, so put your own in there. + +Install agate by placing the binary somewhere or (on Arch): + +> yay -S agate + +--- + +> sudo mkdir -p /usr/share/gemini/{certs,gemini} + +> sudo useradd gemini -d /usr/share/gemini + +> sudo chown -R gemini:gemini /usr/share/gemini + +> sudo su gemini + +> cd + +> echo 'Hello Gemworld!' > gemini/index.gmi + +> cd /usr/share/gemini/certs + +> openssl req -new -subj "/CN=belgradecats.tk" -x509 -newkey ec pkeyopt ec_paramgen_curve:prime256v1 -days 3000 -nodes -out cert.pem keyout key.pem + +Make a service file. + +> sudo vim /etc/systemd/system/multi-user.target.wants/agate.service + + +``` +[Unit] +Description=agate +After=network.target + +[Service] +User=gemini +Type=simple +ExecStart=/usr/bin/agate -s --content /usr/share/gemini/gemini --key /usr/share/gemini/certs/key.pem --cert /usr/share/gemini/certs/cert.pem --hostname belgradecats.tk --lang en-GB + +[Install] +WantedBy=default.target + +``` + +> sudo systemctl daemon-reload + +> sudo systemctl enable --now agate +