| Reorg of the front page and adding notes. - gopherhole - My website source code. | |
| Log | |
| Files | |
| Refs | |
| --- | |
| commit 9b702df62096326a67916bbb4e7d06b19e93f344 | |
| parent 9e0a2704f6d60baad552f76d5ff6c28d52c54bee | |
| Author: Jay Scott <[email protected]> | |
| Date: Sun, 26 Jan 2025 09:53:45 +0000 | |
| Reorg of the front page and adding notes. | |
| Diffstat: | |
| M bin/sync.sh | 10 ++++------ | |
| M index.gph | 23 ++++++----------------- | |
| M meta/email.txt | 4 ++-- | |
| M meta/system.cgi | 22 ++++------------------ | |
| A notes/index.gph | 14 ++++++++++++++ | |
| A notes/openbsd_001.txt | 16 ++++++++++++++++ | |
| M phlog/index.gph | 64 ++++++++++++++++-------------… | |
| M robots.txt | 2 +- | |
| 8 files changed, 80 insertions(+), 75 deletions(-) | |
| --- | |
| diff --git a/bin/sync.sh b/bin/sync.sh | |
| @@ -1,9 +1,7 @@ | |
| -rsync -v \ | |
| +openrsync -v \ | |
| --delete \ | |
| - --exclude=files/*.tar.gz \ | |
| - --exclude=files/aports \ | |
| - --exclude=git* \ | |
| - --exclude=drafts* \ | |
| + --exclude=files* \ | |
| --exclude=.git* \ | |
| --exclude=bin* \ | |
| - -a . jay.scot:/srv/gopher | |
| + --exclude=scm* \ | |
| + -a . jay.scot:~/gopher | |
| diff --git a/index.gph b/index.gph | |
| @@ -9,22 +9,11 @@ | |
| J A Y . S C O T | |
| -PHLOG | |
| +[1|phlog ... Random ramblings|phlog/|server|port] | |
| +[1|notes ... Random notes for things I always forget|notes/|server|port] | |
| +[1|files ... Dump of interesting things!|files/|server|port] | |
| +[1|git ... Git repos for my projects, configs etc|scm/|server|port] | |
| -[0|2024-01-28 ... Twelve months of Bivvy - Month 1|phlog/027.txt|server|port] | |
| -[0|2023-11-27 ... My wee Microadventures|phlog/026.txt|server|port] | |
| -[0|2023-09-15 ... New dumb phone at last, it cost £11.50 but came with £10 c… | |
| -[0|2023-09-03 ... Ansible no more, moved all services to containers|phlog/024.… | |
| -[0|2023-08-22 ... We are all Jimmy - an A.I generated short story|phlog/023.tx… | |
| -[0|2023-08-13 ... Earned my Terraform certification but not for a good reason|… | |
| -[0|2023-07-06 ... A ready to read archive of old gopher Usenet groups|phlog/02… | |
| -[0|2023-07-03 ... Getting to grips with slrn|phlog/020.txt|server|port] | |
| -[0|2023-06-19 ... My Beelink U59 running OpenBSD kicked the bucket!|phlog/019.… | |
| -[1|archive ... The rest of my phlogs|phlog/|server|port] | |
| +[0|system ... This server setup and stats|meta/system.cgi|server|port] | |
| +[0|email ... Email me|meta/email.txt|server|port] | |
| -OTHER | |
| - | |
| -[1|git ... all of my git repositories|git/|server|port] | |
| -[1|files ... dump of interesting things|files/|server|port] | |
| -[0|system ... this server setup|meta/system.cgi|server|port] | |
| -[0|email ... email me|meta/email.txt|server|port] | |
| diff --git a/meta/email.txt b/meta/email.txt | |
| @@ -1,8 +1,8 @@ | |
| - | . |/ PGP, | |
| - \.-._ \ _.=^-.__, .-''"\ Please | |
| + | . |/ | |
| + \.-._ \ _.=^-.__, .-''"\ | |
| // _\ | ' < [@ ) / '< [@ | | |
| \\ '(_\) .' ' `-- \ | |
| `.,_.'. .'(_ )`. | | |
| diff --git a/meta/system.cgi b/meta/system.cgi | |
| @@ -1,29 +1,15 @@ | |
| #!/bin/sh | |
| -uptime=$(uptime -p) | |
| +uptime=$(uptime) | |
| hostname=$(hostname) | |
| +uptime=$(uptime | sed 's/.*up \([^,]*\), .*/\1/') | |
| architecture=$(uname -m) | |
| load=$(uptime | awk -F'[a-z]:' '{print $2}') | |
| -# Store build information in a variable | |
| -build_info=" | |
| -This server is built automatically. Terraform sets up the server on Hertzner, | |
| -configures networking and security, and applies a basic cloud-init script. The | |
| -cloud-init script, in turn, pulls Ansible scripts during VPS boot. These | |
| -Ansible scripts harden the VPS, install and set up Git with Git-Daemon, build | |
| -Geomyidae from source, create a systemd service for managing Geomyidae, and | |
| -finally build, install, and configure Stagit-Gopher to use the default Git | |
| -location and output to the Gopher root directory. All that's left to do is | |
| -rsync files to the Gopher root, and the server is ready to go. It takes | |
| -approximately 10 minutes to set up and fully run the server from scratch. The | |
| -code for this setup can be found on my Git repositories." | |
| - | |
| printf "General Information:\n\n\n" | |
| printf "\tserver hostname : %s\n" "$hostname" | |
| -printf "\toperating system : Debian 12 (bookworm)\n" | |
| +printf "\toperating system : OpenBSD 7.6\n" | |
| printf "\tarchitecture : %s\n" "$architecture" | |
| -printf "\tserver software : geomyidae, git, stagit-gopher\n" | |
| +printf "\tserver software : geomyidae, git, git-daemon\n" | |
| printf "\tsystem uptime : %s\n" "$uptime" | |
| printf "\tload average :%s\n" "$load" | |
| - | |
| -printf "\n%s\n" "$build_info" | |
| diff --git a/notes/index.gph b/notes/index.gph | |
| @@ -0,0 +1,14 @@ | |
| + _.._ | |
| + <\ \__/ /> | |
| + < >/ \< > | |
| + <_\\__//_> | |
| + <_\||/_> | |
| + \||/ | |
| + || | |
| + | |
| + J A Y . S C O T | |
| + | |
| + | |
| +OpenBSD | |
| + | |
| +[0|Enable forwarding for SMTP service|/notes/openbsd_001.txt|server|port] | |
| diff --git a/notes/openbsd_001.txt b/notes/openbsd_001.txt | |
| @@ -0,0 +1,16 @@ | |
| + | |
| +cat > /etc/mail/smtpd.conf << EOF | |
| +table aliases file:/etc/mail/aliases | |
| +table secrets file:/etc/mail/secrets | |
| +listen on lo0 | |
| + | |
| +action "local" mbox alias <aliases> | |
| +action "relay" relay host smtp+tls://mailrelay@server:port auth <secrets> | |
| + | |
| +match for local action "local" | |
| +match for any action "relay" | |
| +EOF | |
| + | |
| +chmod 640 /etc/mail/secrets | |
| +chown root:_smtpd /etc/mail/secrets | |
| +echo "mailrelay username:password" > /etc/mail/secrets | |
| diff --git a/phlog/index.gph b/phlog/index.gph | |
| @@ -11,34 +11,36 @@ | |
| [1| ... Turn yersel hame|/|server|port] | |
| - | |
| -[0|2024-01-28 ... Twelve months of Bivvy - Month 1|phlog/027.txt|server|port] | |
| - | |
| -[0|2023-11-27 ... My wee Microadventures|phlog/026.txt|server|port] | |
| -[0|2023-09-15 ... New dumb phone at last, it cost £11.50 but came with £10 c… | |
| -[0|2023-09-03 ... Ansible no more, moved all services to containers|phlog/024.… | |
| -[0|2023-08-22 ... We are all Jimmy - an A.I generated short story|phlog/023.tx… | |
| -[0|2023-08-13 ... Earned my Terraform certification but not for a good reason|… | |
| -[0|2023-07-06 ... A ready to read archive of old gopher Usenet groups|phlog/02… | |
| -[0|2023-07-03 ... Getting to grips with slrn|phlog/020.txt|server|port] | |
| -[0|2023-06-19 ... My Beelink U59 running OpenBSD kicked the bucket!|phlog/019.… | |
| -[0|2023-04-30 ... The lack of time for geeky tasks!|phlog/018.txt|server|port] | |
| -[0|2023-03-11 ... Checking out gaming on OpenBSD|phlog/017.txt|server|port] | |
| -[0|2023-02-18 ... Messing with pkg_info and ditching password-store|phlog/016.… | |
| -[0|2023-02-11 ... An OpenBSD manpage led me down a rabbit hole|phlog/015.txt|s… | |
| -[0|2023-02-05 ... Re-evaluating my local mail setup with OpenSMTPD|phlog/014.t… | |
| -[0|2023-02-03 ... Finally, I switched over to OpenBSD|phlog/013.txt|server|por… | |
| -[0|2023-01-29 ... Automating my infra deployment and configuration|phlog/012.t… | |
| -[0|2023-01-14 ... Reducing my footprint, using a mini-pc|phlog/011.txt|server|… | |
| - | |
| -[0|2022-09-28 ... Convert mbox to maildir using fdm|phlog/010.txt|server|port] | |
| -[0|2022-09-13 ... A true cheap dumbphone,impossible?|phlog/009.txt|server|port] | |
| -[0|2022-08-01 ... I moved over to wayland|phlog/008.txt|server|port] | |
| -[0|2022-05-01 ... Build, patch and maintain suckless tools|phlog/007.txt|serve… | |
| -[0|2022-03-01 ... Association of really cruel viruses (arcv)|phlog/006.txt|ser… | |
| -[0|2022-01-02 ... Why I dropped freebsd after a month|phlog/005.txt|server|por… | |
| - | |
| -[0|2021-12-01 ... How I use the modern web|phlog/004.txt|server|port] | |
| -[0|2021-11-01 ... Qutebrowser is amazing but|phlog/003.txt|server|port] | |
| -[0|2021-10-01 ... Is github the facebook of coding?|phlog/002.txt|server|port] | |
| -[0|2021-09-01 ... So much bloat around dotfiles|phlog/001.txt|server|port] | |
| +2024 | |
| +[0|2024-01-28 ... Twelve months of Bivvy - Month 1|/phlog/027.txt|server|port] | |
| + | |
| +2023 | |
| +[0|2023-11-27 ... My wee Microadventures|/phlog/026.txt|server|port] | |
| +[0|2023-09-15 ... New dumb phone at last, it cost £11.50 but came with £10 e… | |
| +[0|2023-09-03 ... Ansible no more, moved all services to containers|/phlog/024… | |
| +[0|2023-08-22 ... We are all Jimmy - an A.I generated short story|/phlog/023.t… | |
| +[0|2023-08-13 ... Earned my Terraform certification but not for a good reason|… | |
| +[0|2023-07-06 ... A ready to read archive of old gopher Usenet groups|/phlog/0… | |
| +[0|2023-07-03 ... Getting to grips with slrn|/phlog/020.txt|server|port] | |
| +[0|2023-06-19 ... My Beelink U59 running OpenBSD kicked the bucket!|/phlog/019… | |
| +[0|2023-04-30 ... The lack of time for geeky tasks!|/phlog/018.txt|server|port] | |
| +[0|2023-03-11 ... Checking out gaming on OpenBSD|/phlog/017.txt|server|port] | |
| +[0|2023-02-18 ... Messing with pkg_info and ditching password-store|/phlog/016… | |
| +[0|2023-02-11 ... An OpenBSD manpage led me down a rabbit hole|/phlog/015.txt|… | |
| +[0|2023-02-05 ... Re-evaluating my local mail setup with OpenSMTPD|/phlog/014.… | |
| +[0|2023-02-03 ... Finally, I switched over to OpenBSD|/phlog/013.txt|server|po… | |
| +[0|2023-01-29 ... Automating my infra deployment and configuration|/phlog/012.… | |
| +[0|2023-01-14 ... Reducing my footprint, using a mini-pc|/phlog/011.txt|server… | |
| + | |
| +2022 | |
| +[0|2022-09-28 ... Convert mbox to maildir using fdm|/phlog/010.txt|server|port] | |
| +[0|2022-09-13 ... A true cheap dumbphone,impossible?|/phlog/009.txt|server|por… | |
| +[0|2022-08-01 ... I moved over to wayland|/phlog/008.txt|server|port] | |
| +[0|2022-05-01 ... Build, patch and maintain suckless tools|/phlog/007.txt|serv… | |
| +[0|2022-03-01 ... Association of really cruel viruses (arcv)|/phlog/006.txt|se… | |
| +[0|2022-01-02 ... Why I dropped freebsd after a month|/phlog/005.txt|server|po… | |
| + | |
| +[0|2021-12-01 ... How I use the modern web|/phlog/004.txt|server|port] | |
| +[0|2021-11-01 ... Qutebrowser is amazing but|/phlog/003.txt|server|port] | |
| +[0|2021-10-01 ... Is github the facebook of coding?|/phlog/002.txt|server|port] | |
| +[0|2021-09-01 ... So much bloat around dotfiles|/phlog/001.txt|server|port] | |
| diff --git a/robots.txt b/robots.txt | |
| @@ -1,3 +1,3 @@ | |
| User-agent: * | |
| -Disallow: /git | |
| +Disallow: /scm | |
| Disallow: /files |