kdm server is used by KDE so if kde is not installed then first step is to install it (login as a root):
Then It will take some time to install KDE; it will fetch latest version from internet
Then open your .xinitrc file in your home directory
And append or edit as follows
Now, whenever the X Window System is started with startx, KDE will be the default desktop i.e. kdm
have a fun
