_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

openbsdindex and usage

linux_to_openbsd : Differences between linux and OpenBSD.
vm : OpenBSD vmm - configuration and usage.
make : OpenBSD make.
pf : Configuration and usage.
web : index and setup.
- httpd : OpenBSD's httpd - setup.
- cgi : Using CGI with httpd.
- ssl : creating ssl certificate and httpd configuration.
documentation : index and usage.
- mdoc : OpenBSD mdoc format - usage and examples (WIP)
-- mdoc_list_examples : OpenBSD mdoc examples - lists.
- mandoc : mandoc usage.
- roff : mdoc compatible roff macros.

interfaces are named based on the drivers: iwn0 (wlan) , re0(eth), vlan0

As with network, disks are named based on the drivers: wdNP , sdNP. Eg.: wd0a (disk 0, partition letter a).

Using an existing disk with allocated partitions

- h help
- z to delete all partitions
- A to autoallocate
- p g to print the partitions showing size in GB
- Autoallocation can leave unused space at the end of the disk which can be manually allocated.

  1. using usb
  2. select disk
  3. sd1 should be selected, else set it

Example files can be found at /etc/examples, they can be used for reference.

NOTE: Make sure only necessary lines are uncommented when copying to /etc.

(back to top)

turning off suspend on lid close

- manually : sysctl machdep.lidaction=0
- startup : cp /etc/examples/sysctl.conf /etc/
   uncomment : machdep.lidaction=0

(back to top)

  1. Reboot (this is automatic)
  2. syspatch -l
  3. If patches need to be applied and have been verified.

Running syspatch -b leaves files that differ available for later comparison at /tmp/sysmerge.xxxxxxx.

When upgrading a vm, the vm may need to be started manually to complete the upgrade as it may be stopped instead of rebooted.

(back to top)

pkg_info [options] [package]
-A : show one line comment of installed packages including internal packages.
-a : show one line comment of installed packages without internal packages.
-c : show one line comment for <package>.
-d : show long description of <pacakge>
-I : show name of <package> and one line comment.
-L : show files in <package>.
-m : show names and one line comment for manually installed packages.
-Q : search packages matching <pattern>. pkg_info -Q pattern
-R : show which packages require a given package.
-t : show packages and one line comment not required by other packages.

(back to top)

- Translate to Spanish.
- create a vm to follow current.

(back to top)

linux_to_openbsd, user_management
OpenBSD manpages: sysctl(8), bsd.re-config(5), sysupgrade(8), sysmerge(8), pkg_add(1), syspatch(8)
links
- OpenBSD
- OpenBSD 7.8 (Previous Release)
- OpenBSD 7.9 (Current Release - 2026-05-19)
- Upgrade Guide: 7.8 to 7.9
- OpenBSD FAQ
- openports.pl
other sites with OpenBSD info:
- roman zolotarev - OpenBSD
- BSDHowTo
- OpenBSD Handbook
- TuM'Fatig
- Solene
- Running OpenBSD 7.9 is really hard (not)
- PlayOnBSD

(back to top)

2026-07-14 : added pkg_info
2026-06-02 : Updated links from 7.7/7.8 to 7.8/7.9.
2025-11-10 : vm considerations.
2025-11-07 : added upgrade to 7.8 steps.
2025-10-03 : Created.

(back to top)

ohazot | about | ohazot.com <admin@ohazot.com>

This document applies to: OpenBSD 7.7| 2026-07-14