Skip to main content

Tag: openbsd

How to try OpenBSD

Download and try the following OS, and give it a go. OpenBSD v4.7 OpenBSD is a multi-platform 4.4BSD-based UNIX-like operating system, and is fast, simple to install and secure “out of the box”. Download installation files Read the Installation guide Read the Frequently Asked Questions A good introductory book for OpenBSD is the “OpenBSD Command Line Companion” by Jacek Artymiak. It walks you through an install and an intro to OpenBSD.

Death to Spam

I’ve been hit by a number of Spam comments recently that snuck through the filters. If you are subscribed to the comments feed, apologies for this. It turns out that since I moved TechDebug to a VM host, I did not follow my own post and the spam tools where not connecting to Akismet to check the comments. So remember that if you use OpenBSD and the default chroot for Apache, then you need to setup a resolv.

OpenBSD, postgresql and semaphore failures during initdb

Today I upgraded my postgresql database instance on OpenBSD. Did a pg_dumpall, removed the old packages and then added the new ones (latest version 8.1.9 for OpenBSD 4.0 – yes I’m behind).

During the initialisation of the new DB, I got the following error:
<br /> creating directory /var/postgresql/data/pg_tblspc ... ok<br /> selecting default max_connections ... 10<br /> selecting default shared_buffers ... 50<br /> creating configuration files ... ok<br /> creating template1 database in /var/postgresql/data/base/1 ... FATAL: could not create semaphores: No space left on device<br /> DETAIL: Failed system call was semget(1, 17, 03600).<br />
The PostgreSQL documentation talks about this extensively. However I don’t want to recompile my kernel away from GENERIC. What else can I do?

OpenBSD – Akismet key could not be verified

If you are using OpenBSD to host your wordpress installation, and using the Akismet plug-in to block spam, you may come across set-up problems with Akismet.

The errors that can occur could be either or both of these:

  • There was a problem connecting to the Akismet server
  • The key you entered could not be verified because a connection to could not be established

There may be a couple of issues here.

OpenBSD 4.2 released

The official OpenBSD announcement states: We are pleased to announce the official release of OpenBSD 4.2. We remain proud of OpenBSD’s record of more than ten years with only two remote holes in the default install. We dedicate this release to the memory of long-time developer Jun-ichiro “itojun” Itoh Hagino, who focused his life on IPv6 deployment for everyone. So get to it people, buy a CD and support the project.

Perl while loop memory hog

I was trying to use someone elses script for logging dansguardian events to an RDBMS.The script was chewing up 99% of my CPU! I got chatting to a friend and a perl coder about this, and got some ideas. He showed me about the perl debugger using the -d switch. Awesome. I finally got my perl script working. Installing the DBI package on OpenBSD was a snap with pkg_add (pkg_add -v p5-DBD-Pg-1.

Power issues – OpenBSD failover?

Having had aircon installed today, my headless web server did not recover from the scheduled power outage. It was stuck in a stupid “Press F1 to Boot” screen, and as such Tech Debug was down for the majority of the day. Now I have it all back online it is time to consider two things: A UPS A secondary Web/DB server running OpenBSD Does anyone know they best way to have a failover apache+mysql+postgres OpenBSD server?

Dansguardian on OpenBSD

So many people have written long and excellent examples of an internet application layer filtering solution. However, what if you need a quick and simple internet filtering solution? Want to block out all the garbage for the younger generation? Look no further than Dansguardian. I’ll assume you love OpenBSD as well, and have the following in place: OpenBSD running as your router, multi-homed the same machine running pf the same machine with squid installed and working as a transparent proxy Packet filtering is online, your internet access works from the router and from an internal host with your squid working transparently wget installed Download the latest beta from dansguardian.