First create an /opt/kde symlink:
ln -sf /opt/kde-3.1 /opt/kde
Then create an .xinitrc file to start KDE:
echo "exec startkde" > ~/.xinitrc
ldconfig
At this point you can bring up KDE with:
startx