Posts Tagged ‘OpenBSD’

Install the bash shell in OpenBSD

Monday, September 1st, 2008

If you did not buy your copy of OpenBSD then you won’t have any packages available locally in order to install the bash shell. The below example will show how to obtain the BASH package remotely.

  • Step 1 - Adding the BASH shell remotely
  • Step 2 - Setting BASH as your login shell

1. Add the i386 package for the BASH shell:

# pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.3/packages/i386/bash-3.2.33.tgz

2. Setting BASH as your login shell:

# chsh -s bash

Encrypt your swap partition in OpenBSD

Monday, September 1st, 2008

By default OpenBSD 4.3 will encrypt the swap partition. To turn this on for OpenBSD versions 3.7 and below:

  • Step 1 - Enable this feature without a reboot
  • Step 2 - Edit the sysctl config file, so that after a reboot the swap partition will be encrypted

1. Change the kernel state variable:

# sysctl -w vm.swapencrypt.enable=1

2. Edit /etc/sysctl.conf from:

#vm.swapencrypt.enable=1

to:

vm.swapencrypt.enable=1

Quickly installing OpenBSD

Sunday, August 31st, 2008

This article goes through the steps of an OpenBSD 4.3 installation. The installer is a text-based interface and, in most cases, is quick and easy to complete.

(more…)