OpenBSDBuild

Peter Howkins Christopher Turkel Pascal Stumpf Alex Madama
Attachments
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: http://www.openbsd.org/faq/faq15.html

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
127.0.0.1 [hostname goes here]
127.0.0.1 [FQDN goes here]

Add to /etc/rc.conf.local
portmap_flags=""

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:
wget https://raw.github.com/jasperla/openbsd-wip/master/x11/cde/openmotif_xprint.diff
cd /usr/ports/x11/openmotif
patch </root/openmotif_xprint.diff
make install clean
cd

Download and build CDE 2.2.3

git clone git://git.code.sf.net/p/cdesktopenv/code 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:
exit

add to rc.conf.local
shlib_dirs="/usr/dt/lib"

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

Reboot

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:
DTSOURCEPROFILE=true

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 &