To configure a Ralink USB IEEE 802.11a/g/n wireless network adapter on OpenBSD, follow these steps:
- Install the necessary firmware:
doas pkg_add firmware-ralink
- Load the necessary kernel modules:
doas modload if_urtw
- Connect to a wireless network:
doas ifconfig urtw0 up
doas dhclient urtw0
- Verify the connection:
doas ifconfig urtw0
- To make the wireless connection persist across reboots, add the following lines to
/etc/hostname.urtw0
:
up
dhcp
- To automatically load the necessary kernel modules at boot, add the following line to
/etc/rc.conf.local
:
pkg_scripts="if_urtw"
That’s it! Your Ralink USB wireless network adapter should now be configured and connected to a network on OpenBSD.