nyk0
nyk0-nomikon - OpenBSD configuration

OpenBSD configuration

I'm experimenting regularly to setup openBSD as a desktop OS.

Configure wifi

ifconfig iwn0 up
ifconfig iwn0 scan
ifconfig iwn0 nwid SSID_name wpakey "password"
dhclient iwn0

# make it permanent 
# create /etc/hostname.iwn0
# add more join commands to connect with priority
join "SSID" wpakey "password"
dhcp
inet6 autoconf
up powersave

Configure apmd for laptop

rcctl enable apmd
rcctl set apmd flags -A
rcctl start apmd

Other configurations

# Enable xenodm on startup
rcctl enable xenodm

# Configure desktop
~/.xsession for xenodm autostart
~/.xinitrc for startx

# Configure doas
echo 'permit username' > /etc/doas.conf

# Touchpad fixes
## /etc/wsconsctl.conf
mouse.tp.tapping=1
mouse.reverse_scrolling=1

Updates

fw_update # update firmware
syspatch
pkg_add -Uu # update packages
sysmerge -d

Mount USB drive

# Mounting USB flash drive
sysctl hw.disknames
disklabel sd2
mount /dev/sd2i /mnt/usb

other commands

zzz #suspend
ZZZ # hibernate

Iosevka or other ttf fonts under openBSD

feh and wallpapers

Configuration files

Resources