_ _
___ | |__ __ _ _______ | |_
/ _ \| '_ \ / _` |_ / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
\___/|_| |_|\__,_/___\___/ \__|
openbsd —
index 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. |
- using usb
- select disk
- 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)
sysupgrade
- Reboot (this is automatic)
pkg_add
-u
syspatch -l
- If patches need to be applied and have been verified.
syspatch
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)
| 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. |