knowledgebase

Paritybit.ca Gemini-based Wiki
git clone https://git.sr.ht/~jbauer/knowledgebase
Log | Files | Refs | README

commit 2ba72fea0c12afb8db5ed31e062cc9251e9b07c4
parent 32e875905d24cbcd01ea7ee64c0df9fe9a59282b
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sun, 14 Nov 2021 02:45:26 -0500

*

Diffstat:
Mindex.gmi | 24++++++++++++++++--------
Djaderune/register_xmpp_user | 30------------------------------
Rhomelab/freebsd-jails-server.gmi -> sysadmin/homelab/freebsd-jail-based-server.gmi | 0
Rhomelab/openbsd-router.gmi -> sysadmin/homelab/openbsd-router.gmi | 0
Asysadmin/jaderune/admin.gmi | 34++++++++++++++++++++++++++++++++++
Rmisskey.gmi -> sysadmin/misskey.gmi | 0
Rtarsnap-backups-with-acts.gmi -> sysadmin/tarsnap-backups-with-acts.gmi | 0
7 files changed, 50 insertions(+), 38 deletions(-)

diff --git a/index.gmi b/index.gmi @@ -17,17 +17,25 @@ # List of Pages -## Homelab/Home Services +## Sysadmin -=> /homelab/openbsd-router.gmi OpenBSD Router -=> /homelab/freebsd-jail-based-server.gmi FreeBSD Jail-based Server -=> /homelab/freebsd-nas.gmi FreeBSD NAS -=> /homelab/backups Backups +### Homelab/Home Services -## JadeRune.net +=> /sysadmin/homelab/overview.gmi Overview of the Homelab +=> /sysadmin/homelab/openbsd-router.gmi OpenBSD Router +=> /sysadmin/homelab/freebsd-jail-based-server.gmi FreeBSD Jail-based Server +=> /sysadmin/homelab/freebsd-nas.gmi FreeBSD NAS +=> /sysadmin/homelab/backups.gmi Backups -=> /jaderune/setup.gmi JadeRune.net Setup -=> /jaderune/admin.gmi JadeRune.net Administration +### JadeRune.net + +=> /sysadmin/jaderune/setup.gmi JadeRune.net Setup +=> /sysadmin/jaderune/admin.gmi JadeRune.net Administration + +### Other + +=> /sysadmin/misskey.gmi Misskey Setup +=> /sysadmin/tarsnap-backups-with-acts.gmi Tarsnap Backups With Acts ## Recipes diff --git a/jaderune/register_xmpp_user b/jaderune/register_xmpp_user @@ -1,30 +0,0 @@ -# register_xmpp_user - -This is a custom script created to allow admins who don't otherwise have access to the infrastructure to register users with ejabberd - -A simple script was created to do this: -```register_xmpp_user script -#!/bin/sh - -if [ -z "$1" ]; then - echo "You must provide a username" - exit 1 -else - username="$1" -fi - -iocage exec xmpp su -l ejabberd -c "ejabberdctl register $username jaderune.net 'temppass'" -exit 0 -``` - -This script takes a name as an argument and registers that user with the given temporary password. - -It can be run as the admin user using the following command: -``` -doas register_xmpp_user <name> -``` - -Doas has been set up as follows: -``` -permit admin as root cmd register_xmpp_user -``` diff --git a/homelab/freebsd-jails-server.gmi b/sysadmin/homelab/freebsd-jail-based-server.gmi diff --git a/homelab/openbsd-router.gmi b/sysadmin/homelab/openbsd-router.gmi diff --git a/sysadmin/jaderune/admin.gmi b/sysadmin/jaderune/admin.gmi @@ -0,0 +1,34 @@ +# JadeRune.net Administration Documentation + +A collection of documentation and scripts used to administer JadeRune.net. + +## register_xmpp_user + +This is a custom script created to allow admins who don't otherwise have access to the infrastructure to register users with ejabberd + +A simple script was created to do this: +```register_xmpp_user script +#!/bin/sh + +if [ -z "$1" ]; then + echo "You must provide a username" + exit 1 +else + username="$1" +fi + +iocage exec xmpp su -l ejabberd -c "ejabberdctl register $username jaderune.net 'temppass'" +exit 0 +``` + +This script takes a name as an argument and registers that user with the given temporary password. + +It can be run as the admin user using the following command: +``` +doas register_xmpp_user <name> +``` + +Doas has been set up as follows: +``` +permit admin as root cmd register_xmpp_user +``` diff --git a/misskey.gmi b/sysadmin/misskey.gmi diff --git a/tarsnap-backups-with-acts.gmi b/sysadmin/tarsnap-backups-with-acts.gmi