Below you can find instructions for installing OpenBSD on a personal computer or server.
The example below covers installing OpendBSD 7.7.
Make sure you have the latest OpenBSD image formatted on your USB device and that your computer/laptop is set to boot from USB via the BIOS.
Install
us
x220
(or whatever you choose)em0
autoconf
none
done
yes
no
username
(follow setup user steps)no
sd0
etc.)no
WHOLE
diskAUTO
layoutdone
http
none
1
(Toronto)pub/OpenBSD/7.7/amd64
done
done
Before we do anything, we should give our main user full access via doas
. Login as root
and run the following:
echo "permit nopass :wheel" >> /etc/doas.conf
Now you can logout or reboot the machine.
Running any of the commands might present you with a permissions error. If that happens, simply add doas
to the start of every command.
Once your machine reboots, login as your created user. The next steps will help you ensure you have the latest firmware.
Simply run the command: fw_update
To enable wifi on your device, run the following command (filling in the proper details where need be)
ifconfig iwn0 up
ifconfig iwn0 scan
echo "join WIFI-NAME wpakey PASSPHRASE" >> /etc/hostname.iwn0
echo "dhcp" >> /etc/hostname.iwn0
echo "inet6 autoconf" >> /etc/hostname.iwn0
echo "up powersave" >> /etc/hostname.iwn0
dhclient iwn0
Take note of the iwn0
, as this might differ on your machine. (You can check this by running ifconfig
)
You might also need to run doas sh /etc/netstart
after.
This step is optional and targeted towards devices with batteries (obviously). Properly setup apmd:
rcctl enable apmd
rcctl set apmd flags -A
rcctl start apmd