Peter Howkins Christopher Turkel Pascal Stumpf Alex Madama
openbsd_cde.jpg (124970 bytes)

OpenBSD 5.4 - 5.7 setup and guide to installing CDE

These instructions are verified with a default OpenBSD 5.7 install. X windows components installed from CD and xdm login disabled (boots to command line). Make sure OpenBSD ports and packages system are set up. See here for instructions:

All instructions done using root

Verify hostname is in /etc/hosts file or else CDE will not start up properly
add the 'hostname' to /etc/hosts [hostname goes here] [FQDN goes here]

Add to /etc/rc.conf.local

Install the following packages:
pkg_add git
pkg_add ksh93
pkg_add bison
pkg_add wget
pkg_add libXp
pkg_add xprintproto

Build Motif from patched source port

Get the following patch:
cd /usr/ports/x11/openmotif
patch </root/openmotif_xprint.diff
make install clean

Download and build CDE 2.2.3

git clone git:// cdesktopenv-code

Log for troubleshooting (optional, but may help troubleshoot if build fails)
script /tmp/log.txt

Make the folllowing symlinks:
cd cdesktopenv-code/cde
mkdir -p imports/x11/include
ln -s /usr/X11R6/include/X11 imports/x11/include/
ln -s /usr/local/include/Xm imports/x11/include/

make World

Install CDE (must be done as root)

cd cdesktopenv-code/cde/admin/IntegTools/dbTools
./installCDE -s /root/cdesktopenv-code/cde

Exit logging:

add to rc.conf.local

If you want to be able to exchange calendar data with other users, put
the following line in your /etc/inetd.conf:

rpc.cmsd/1 dgram rpc/tcp wait root /usr/local/dt/bin/rpc.cmsd rpc.cmsd


Start and test CDE

You can now start dtlogin manager as root:
/usr/dt/bin/dtlogin -nodaemon
Alternatively, you can start an X session as a normal user:
env LANG=C startx /usr/dt/bin/Xsession

Cleanup and post-install

If everything compiled and installed properly you may delete the install log file you created using the script command above (/tmp/log.txt)

To automatically source your .profile when opening a terminal in CDE uncomment the last line in your user's .dtprofile file:

To automatically go into the CDE graphical login at system startup add the following line to /etc/rc.local : (first verify CDE starts up manually using command shown above)
/usr/dt/bin/dtlogin &