Posts tagged "Openbsd"

17 posts with this tag

lladdr.info OpenBSD

purpose and application

This runbook sets up the environment and installs the application.

definitions

None.

prerequisites

  1. checked out [lladdr.info repository|https://git.sr.ht/~nighthawk/lladdr.info]
  2. pre-compiled binary of lladdr.info

steps

on the server

  1. Setting up the user account, downloading …
Read more →

Gotosocial Restore

purpose and application

Restore gotosocial on OpenBSD from a backup done via the following procedure

definitions

None.

prerequisites

  1. gotosocial and postgresql need to be installed pkg_add gotosocial-- postgresql-server--
  2. gotosocial must not be running rcctl stop gotosocial

steps

  1. create the …
Read more →

Upgrading Netbox

On local system

  • git pull upstream <tag> --rebase
  • git rebase
  • git commit -a -m 'upgrade to <tag>'

On server

  • su -s /bin/ksh -l _netbox
  • doas rcctl stop netbox_rq
  • doas rcctl stop netbox
  • git pull
  • bash upgrade.sh
  • doas rcctl start netbox
  • doas rcctl start netbox_rq
Read more →

Netbox Backup

purpose and application

Use this for backing up your netbox instance. This is specific to my setup YMMV.

definitions

  • YMMV - Your Mileage May Vary

steps

  1. Become netbox user su -s /bin/ksh -l _netbox
  2. Backup the database pg_dump -W postgres://netbox@127.0.0.1:5432/netbox | gzip > …
Read more →

Docspell Backup

purpose and application

When you want to backup docspell.

definitions

None.

steps

  1. Become docspell user
  2. Backup database pg_dump -W postgres://docspell@127.0.0.1:5432/docspell | gzip > backup/docsell_$(date +%Y%m%dT%H%M%S).psql.gz
  3. Backup joex config cp docspell-joex-0.41.0/conf/docspell-joex.conf …
Read more →

Gotosocial Backup

purpose and application

Backing up gotosocial.

definitions

None.

steps

  1. Backup db pg_dump -W postgres://gotosocial@127.0.0.1:5432/gotosocial | gzip > /var/tmp/gotosocial_$(date +%Y%m%dT%H%M%S).psql.gz
  2. Backup media files gotosocial admin media list-attachments --config-path /etc/gotosocial.yaml …
Read more →

Keycloak Backup

purpose and application

Use this procedure when you want to backup keycloak.

definitions

None.

steps

  1. stop keycloak rcctl stop keycloak
  2. become keycloak user su -s /bin/ksh -l _keycloak
  3. change into keycloak basedir cd keycloak
  4. export realms bash bin/kc.sh export --file ../backup/keycloak-$(date …
Read more →

Running Unifi Network Controller 8.1.113 on Openbsd 7.5

So I decided to give the unifi controller a shot on running on OpenBSD and most importantly the plan was to run it alongside all the other daemons on the system, so I don’t need to have a seperate VM / machine running just for the unifi controller. Spoiler: while I was able to get the unifi …

Read more →

Openbsd Restart Failed Services

Nice little one-liner to restart all failed services on OpenBSD:

rcctl start $(rcctl ls failed | awk 'BEGIN{ORS=" "}{print}')
Read more →

Keycloak Upgrade 22.0.5 -> 24.0.3

After running into more or less the same problem every damn keycloak upgrade it’s time to put some notes into place so I won’t struggle in the future anymore. At least not with the same problem.

  • Change into the root directory for keycloak

    cd /var/www
    
  • Download the latest release …

Read more →

Upgrading netbox 3.0.7 -> 3.0.10 on OpenBSD 7.0

This is more a personal reminder than anything else. Also this expects an installation following this guide.

  • stop netbox: rcctl stop netbox
  • upgrade source: cd /var/www/netbox && git pull
  • checkout 3.0.10: git checkout v3.0.10
  • adjust upgrade.sh:
    diff --git a/upgrade.sh b/upgrade.sh
    index …
Read more →

netbox 3.0.7 on OpenBSD 7

Ever since dywis0r made me aware of netbox I was planning on getting my hands dirty with it. But only after looking loads of videos on the topic and after being `forced’ to use it at work has I been able to finally get enough momentum going to start the journey for myself.

At the beginning of …

Read more →

Open Source Threat Intelligence And Makeshift RPZ with Unbound

Update: Added some remarks about what DNS RPZ actually is, what my objective is and what the outcome will be.

A friend of mine and I tried to play w/ RPZ and knot yesterday and gravely failed. The fact that knot as well as RPZ had been new to us didn’t help. Discussing the failure later that …

Read more →

My take on a network manager

There’s one thing that I am really missing under OpenBSD, a network manager which seemlessly handles running around with my laptop. So my main itches to scratch are doing magic things at boot and resume so I don’t have to bother with fiddling with hostname.if(5) ever.

My first take on …

Read more →

Open Source Threat Intelligence and pf(4)

I came up with the idea to utilize Open Source Threat Feeds, or OSINT on my private setup and quickly cooked up the shell script below in a rough, first try. The funny thing is that I more or less instantantly got hits from the 5346 IP addresses in the table:

@0 block drop log quick from …
Read more →

rainloop and OpenBSD

Update: I have corrected chown www /var/www/data to be chown www /var/www/rainloop/data in getting rainloop ready to rock

  • installing php and php-curl (and unzip)

      pkg_add -i php php-curl unzip
    
  • getting rainloop ready to rock

      mkdir /var/www/rainloop
      unzip ~/rainloop-community-latest.zip -d …
Read more →

grav CMS on OpenBSD w/ chrooted fpm and nginx

Just in case somebody else is getting the cannot resolve getgrav.com error: just copy /etc/resolv.conf into the chroot:

	mkdir /var/www/etc
	cp /etc/resolv.conf /var/www/etc/

And I already feared that I need to create /dev/random and shit like that. Damn it that took too long to find out.

Read more →