The K Desktop Environment

4.13. startkde fails with "can not connect to X server". What is wrong?

You probably tried to start the X-Server with startkde. The X-Server is started with startx. startkde is the script that should be run in your .xinitrc or .xsession to activate the window manager and the necessary server daemons for KDE. See also: How do I start KDE?.