Initial settings for ksh history, prompt and aliases

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 # for user: echo "export PS1='\u@\h:\w$ '" >> .profile # for root: echo "export PS1='\u@\h:\w# '" >> .profile Put the following in .kshrc ...

October 22, 2020

Change to single partition AFTER installation

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. ...

October 21, 2020

Web log analysis on OpenBSD using GoAccess

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.log ...

February 13, 2019