These are just notes for me to remember how I manage DWM patching using git rebase. If you find them useful that’s great. Basically we’re going to create 3 branches, master, openbsd and custom. Then we’ll branch from openbsd temporarily into a patch branch, do the patching there and merge everything back into the custom branch using git rebase so that we have a clear linear commit history. Requirements git peace and quiet Obtaining the source mkdir github cd github git clone https://git.
Out of the box, OpenBSD doesn’t come with a history file set, so when you logoff your history for that session is lost. Here’s how I set the history file and a few favourite aliases. While we’re at it we might as well set the prompt at the same time. echo `export ENV="$HOME/.kshrc"` >> .profile echo `export PS1='\u@\h:\w\$ '` >> .profile Put the following in .kshrc HISTFILE="$HOME/.ksh_history" HISTSIZE=5000 HISTCONTROL=ignoredups:ignorespace alias la="ls -la" alias h=history alias doas="doas "
You can change OpenBSD to run using a single partition after doing a default installation. You might rightly ask why on earth you would want to do this, after all the FAQ “encourages users to split their disk into a number of partitions”. Well it’s great if you have a large disk and in a secure implementation but what if you just want to run on a single partition to make better use of the disk or virtual disk space.
Hugo is one of the most popular open-source static site generators. It’s written in Go (aka Golang) and developed by bep, spf13 and friends. I find it to be simple and easy to use but it also has some great themes to choose from. Requirements Assumes httpd being used on OpenBSD, tested with 6.4 Install hugo and verify your install $ doas pkg_add hugo $ hugo version Create your new blog working folder hugo new site blog cd blog git init git submodule add https://github.
GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser. Requirements This only works with httpd, tested on OpenBSD 6.4 Assumes your log style is set to common (default) Install the GoAccess package $ doas pkg_add goaccess Run from the command line Read access.log, remove the domain from beginning of each line and save as stats.