Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

One week left on the "Networking for System Administrators" #Kickstarter!

Uncategorized
2 1 11

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    6 Views
    @mwl@io.mwl.io’s post made me revisit RCS in a very small role: a safety net for individual files.Paired with nvi, a tiny wrapper lets me snapshot configs before risky edits. Simple, local, no magic.Example wrapper I’m using:#!/bin/sh## safeedit — RCS-backed safe editing with nvi#set -eif [ $# -ne 1 ]; then echo "usage: safeedit <file>" >&2 exit 1fiFILE="$1"if [ ! -f "$FILE" ]; then echo "safeedit: file not found: $FILE" >&2 exit 1fiDIR=$(dirname "$FILE")BASE=$(basename "$FILE")RCS_DIR="$DIR/RCS"RCS_FILE="$RCS_DIR/$BASE,v"mkdir -p "$RCS_DIR"chmod 700 "$RCS_DIR"if [ ! -f "$RCS_FILE" ]; then ci -l "$FILE"else ci -u "$FILE" || true co -l "$FILE"fiexec nvi "$FILE"nvi protects the session; RCS protects the decision.Original post by @mwl@snac.bsd.cafe: https://io.mwl.io/@mwl/115814245521209100#nvi #RCS #Unix #SysAdmin #ConfigManagement
  • 0 Votes
    1 Posts
    8 Views
    Under the hood update!I’ve finally retired the old cron + sh setup for the weather bots. It served us well, but it had a major flaw: if I rebooted the server while it was posting, the job just died halfway. If the server was down during a scheduled slot, the forecast was lost forever.So, I wrote a custom Python daemon to run inside the FreeBSD Jails.It’s stateful now. If a crash happens at city 15 of 50, it resumes exactly there on reboot.If the server naps/is rebooting during a scheduled run, the bot realizes it missed a slot and runs immediately upon waking up.#FediMeteo #SysAdmin #Python #FreeBSD #Coding #SelfHosted #OwnYourData #StayTuned
  • 0 Votes
    1 Posts
    6 Views
    Thinking about migrating from Linux to the rock-solid security of FreeBSD? Our expert training is designed for you. Learn BSD fundamentals, command differences, and how to harness ZFS. Start your journey with confidence!https://bastillebsd.org/training/#FreeBSD #Training #runBSD #SysAdmin #DevOps #BastilleBSD
  • 0 Votes
    1 Posts
    13 Views
    Does anyone know of an easy way to run #Anubis in front of a small static site? It should be straightforward, low maintenance and affordable for someone who has no experience running anything that's publicly accessible I'm imagining the standard scenario is a rented VPS and manually configuring Anubis + nginx + SSL/TLS but I'm looking for something simpler#AskFedi #webhosting #sysadmin #selfhosted #nginx #vps #AntiAi