OpenBSD 5 Start Window Manager
Hello OpenBSD User! This Tip shows you Step by Step How to Start Windows Manager on OpenBSD 5.x 32/64-bit Unix Server.
And this Setup is showing you How to Run OpenBSD 5 Desktop like: KDE4, GNOME, Xfce4, Enlightenment, Fluxbox, Blackbox and IceWM.

Edit the User .xinitrc.
vi ~/.xinitrc
Appending:
- KDE4:
exec startkde4
- Gnome3:
exec gnome-session
For GNOME Classic:
exec env GNOME_SHELL_SESSION_MODE=classic gnome-session --session gnome-classic
- Xfce:
exec startxfce4
- Enlightenment:
exec enlightenment_start
- FluxBox:
exec startfluxbox
- IceWM:
exec icewm
- BlackBox:
exec blackbox
Type ‘i’ to Start Editing
After press ‘Esc’ to Stop Editing
And finally ‘:wq’ to Write changes and Quit! ;)- KDE4:
And to Replicate the SetUp for Root User
echo 'exec [MYGRATEFULDESKTOP]' > /root/.xinitrc
Then to Start X Windows Manager
startx
How to Run X Window Manager on OpenBSD Startup