OpenBSD

OpenBSD - ansible-pylibssh

wanna build ansible-pylibssh on OpenBSD 7.3 ? Build failed ? $ pip install ansible-pylibssh Defaulting to user installation because normal site-packages is not writeable Collecting ansible-pylibssh Using cached ansible-pylibssh-1.1.0.tar.gz (106 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: ansible-pylibssh Building wheel for ansible-pylibssh (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for ansible-pylibssh (pyproject.

HTMX & Nginx

Little Test with HTMX & Nginx recently, i saw the Keynote - “Full-Stack Python” (Andy “Pandy” Knight) and i read an article about html & websockets. So I thought why not give it a try? Preview Requirements the usual stuff: Virtual Machine (here: OpenBSD VM) FQDN Pointing to your Box SSL Cert Webroot on your webserver, create a new webroot wherever you have your pages located. su - webmaster mkdir -p /var/www/virtual/your.

OpenBSD - Smokeping

How to Install Smokeping on OpenBSD Requiremens running Server with OpenBSD Root Permission FQDN with Cert Install Software pkg_add smokeping Update Config cat << 'EOF' >/etc/smokeping/config *** General *** owner = YOUR NAME contact = YOUR@EMAIL.NET mailhost = localhost sendmail = /usr/sbin/sendmail # NOTE: do not put the Image Cache below cgi-bin # since all files under cgi-bin will be executed ... this is not # good for images. imgcache = /var/www/htdocs/smokeping/cache imgurl = cache datadir = /var/db/smokeping piddir = /var/run cgiurl = https://YOUR.

Anycast IPv6 - YourSelf

How to Build your own AnyCast Network you’re using anycast every day. all public resolvers (1.1.1.1, 8.8.8.8, 9.9.9.9) for example are anycast ip’s and hence, many servers distributed around the world which listen and announce the same ip address. we can build a proof of concept, how to build such a network, for a few $. Requirements AS Number Anycast heavily depends on BGP. So, you need a own AS Number.

OpenBSD - HTTPD CGI

Let’s have a look a the old and simple “cgi-bin” stuff on OpenBSD. The Webserver is written by the OpenBSD Guys, and it runs in a chrooted environment. switch to cgi-bin dir cd /var/www/cgi-bin/ ip.cgi create the file under /var/www/cgi-bin called ‘ip.cgi’ cat << 'EOG' > ip.cgi #!/bin/sh cat << EOF Content-type: text/html <html><head> <title>IP: $REMOTE_ADDR</title> </head><body> <p>Your IP address is: $REMOTE_ADDR</p> </body></html> EOF EOG Set Owner & Permission chmod 500 ip.

OpenBSD - PHP 8.2

Running PHP on OpenBSD yes, i know … it’s not rocket science .. but why not make a short post so other (or myself) can have a quick look if needed ? pkg_info -Q php pkg_add php--%8.2 pkg_add php-sqlite3--%8.2 pkg_add php-curl--%8.2 Set TimeZone and allow short open tags sed -i s'#date.timezone = UTC.*#date.timezone = Europe/Zurich#' /etc/php-8.2.ini sed -i s'#short_open_tag = Off.*#short_open_tag = On#' /etc/php-8.2.ini Install all Modules if needed .. does not make sense for me :(

OpenBSD 7.3

OpenBSD 7.3 finally released. Today, the 54th Release of OpenBSD was announced. The Upgrade Script is available here … one cool thing to mention: Added initial support in the installer for guided disk encryption for amd64, i386, riscv64 and sparc64. Script as root cd /root ftp https://blog.stoege.net/scripts/.helpers ftp https://blog.stoege.net/scripts/upgrade_to_73.sh chmod u+x upgrade_to_73.sh Execute ./upgrade_to_73.sh Any Comments ? sha256: 000c2b0afa4739a87a7e921ec1fcfa4fb9113effd47e2f2456dfb2b66f65a34f

OpenBSD 7.3 - Diskusage

New Proposal for 7.3 there is an request for at least 1.1GB free Storage at the /usr Partition when upgrading your systeme with sysupgrade. so, i have to adapt my settings a bit for new vm’s with at least 25GB Storage. Example with 20GB a 4G / a 1G swap a 1G /tmp a 4G /var a 6G /usr a * /home (ca. 4 GB) Example with 25GB (Vultr) a 4G / a 2G swap a 2G /tmp a 6G /var a 6G /usr a * /home (ca.

OpenBSD - Terraform

Terraform OpenBSD & Vultr doas pkg_add git gmake go terraform cat << EOF # Go, $(date) export PATH=$PATH:$(go env GOPATH)/bin export GOPATH=$(go env GOPATH) EOF mkdir -p $GOPATH/src/github.com/vultr; cd $GOPATH/src/github.com/vultr git clone git@github.com:vultr/terraform-provider-vultr.git cd $GOPATH/src/github.com/vultr/terraform-provider-vultr gmake build main.tf cat << 'EOF' > main.tf terraform { required_providers { vultr = { source = "vultr/vultr" version = "2.12.1" } } } resource "vultr_instance" "web" { count = 2 plan = "vc2-1c-1gb" region = "fra" hostname = "web-${count.

OpenBSD - Rclone

WebDAV Server need a little WebDAV Server ? Selfhosting your Password DB ? pkg pkg_add rclone mkdir -p /rclone/webdav run rclone serve webdav /your/root/folder --addr YOUR_PUBLIC_IP:PORT \ --key /etc/ssl/certs/your.private.key \ --cert /etc/ssl/certs/your.public.cer \ --user someuser \ --pass somepass Browser browse to https://your_public_ip:port user: someuser pass: somepass done ! htpasswd got some Users and wanna put them in the htaccess file ? be carefull as these users all share the same folder !