Contact us

OpenBSD Installation

Please buy a cd from openBSD to suport its developement. If you already have a copy of openBSD then lets proceed with its installation.

Part 1: Notes before installation:

Command

Comment

p m display partition tables (human readable)
d delete partition
a create partition
w write partition table
q quit
cr cartridge return or press enter

Part 2: Partition Table

Partitions

Details

File size

Comment

a a / 500m This size will save future trouble when upgrading the OS
a b swap 300m x2 of physical memory
a c physical drive cannot be deleted
a d /tmp 100m
a e /var 10g larger for log files storage
a f floppy reserved for floppy drive
a g /usr 6g
a h /var/qmail 100m reserved for qmail installation
a i /var/qmail/queue 500m reserved for qmail installation
a j /var/noneqmail/queue 500m reserved for qmail installation
a k /home * rest of the unused disk space

Part 3: Installation

After setting the partition tables

w (cr)
q (cr)

This are some of the messages displayed:

No label changes.

The root filesystem will be mounted on wd0a.

wd0b will be used for swap space.
Mount point for wd0d (size = 102312k) (or one or one [/tmp] (cr)
Mount point for wd0e (size = 10485720k) (or one or one [/var] (cr)
Mount point for wd0g (size = 3145968k) (or one or one [/usr] (cr)
Mount point for wd0h (size = 24832048k) (or one or one [/home] (cr)
Mount point for wd0d (size = 102312k) (or one or one [/tmp] done (cr)

Done no available disks found.

You have configured the following partitions and mount points:

wd0a /
wd0d /tmp
wd0e /var
wd0g /usr
wd0h /home

The next step creates a filesystem in each partition, ERASING existing data.

Are you really sure that you’re ready to proceed? [n] y (cr)

Answer some questions

halt (cr)

Post Installation Procedures

Setup the repository

Note: Mirror lists for openbsd

http://www.openbsd.org/ftp.html

export PKG_PATH=ftp://ftp.jp.openbsd.org/pub/OpenBSD/<version>/packages/i386

Install additional packages

  • pkg_add pftop
  • pkg_add bzip2-<version>
  • pkg_add vim-<version>-no_x11.tgz
  • pkg_add unzip
  • pkg_add bash
  • pkg_add gnuls
  • pkg_add libmcrypt
  • pkg_add bison
  • pkg_add freetype
  • pkg_add recode
  • pkg_add p5-Net-SSLeay
  • pkg_add nmap-<version>-no_x11
  • pkg_add gmake
  • pkg_add lsof

Basic OpenBSD Administration

OpenBSD Commands that differ from Linux Commands

Adding users

useradd -m <username> [this adds users and create a /home/<username>]

Removing a package

pkg_delete

Package Information

pkg_info -A

Updating a package

pkg_add -u <package_name>

Bookmark and Share RSS News Feed