_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | en |
| mdoc file |
| search |
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. |
INSTALL
network
interfaces are named based on the drivers: iwn0 (wlan) , re0(eth), vlan0
disk partition
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.
install_packages
- using usb
- select disk
- sd1 should be selected, else set it
ETC EXAMPLES
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.
NOTEBOOK
turning off suspend on lid close
- manually
sysctl machdep.lidaction=0 - at startup
uncomment the line
cp /etc/examples/sysctl.conf /etc/machdep.lidaction=0
TODO
- create a vm to follow current.
UPGRADE
-
sysupgrade - Reboot (this is automatic)
-
sysmerge -
pkg_add -u -
syspatch -l - If patches need to be applied and have been verified.
syspatch
sysmerge
Running syspatch -b leaves files that
differ available for later comparison at /tmp/sysmerge.xxxxxxx.
vm
When upgrading a vm, the vm may need to be started manually to complete the upgrade as it may be stopped instead of rebooted.
SEE ALSO
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.7 (Previous Release) |
| - OpenBSD 7.8 (Current Release - 2025-10-22) |
| - Upgrade Guide: 7.7 to 7.8 |
| - OpenBSD FAQ |
| - openports.pl |