Login as root to configure doas for other users.
First, install a text editor:
pkg_add vim
usermod -G operator <user name>
usermod -G wheel <user name> # To use doas
Edit the doas configuration file:
vim /etc/doas.conf
Add the following line:
permit persist :wheel
If you don't want to type your password every time when using doas, you can instead use:
permit nopass :wheel
fw_update # To install missing driver
syspatch # Apply system patches
In this setup, we will install OpenBox and some useful extras:
pkg_add openbox tint2 chromium sakura git noto-cjk noto-emoji picom feh
Enable and start necessary daemons:
rcctl enable apmd
rcctl enable messagebus
rcctl enable xenodm
Exit the root user and longin as your user:
Create or edit your .xsession file in your home directory:
vim ~/.xsession
Add the following line to start OpenBox:
picom &
tint2 &
sakura &
feh --bg-fill somewallpaper &
exec openbox
Finally, reboot:
doas shutdown -r now
obmenu-generator is not available in OpenBSD's package repositories, so you will need to install it from source.
doas pkg_add py-gtk2 cmake curl gtar p5-Gtk3
cpanm.cd /usr/local/bin/
doas curl -L https://cpanmin.us/ -o cpanm
doas chmod +x cpanm
~/.config/ name it obmenu-genrator.mkdir -p ~/.config/obmenu-generator
obmenu-generator.git clone --depth=1 https://github.com/trizen/obmenu-generator
cp obmenu-generator/schema.pl ~/.config/obmenu-generator/
doas cp obmenu-generator/obmenu-generator /usr/local/bin/
doas chmod +x /usr/local/bin/obmenu-generator
cpanm.doas cpanm Linux::DesktopFiles
doas cpanm Data::Dump
doas cpanm File::DesktopEntry
obmenu-generator with -p and -i to have a menu with icons.obmenu-generator -p -i
xconsole Window After Loginxenodm. That is the xconsole.
To get rid of it, follow these steps:
/etc/X11/xenodm/Xsetup_0 with vim (using doas for permission):doas vim /etc/X11/xenodm/Xsetup_0
xconsole.# at the beginning.vim.doas shutdown -r now
After rebooting, the xconsole window will no longer appear.