startkde出现$DISPLAY is not set or cannot connect to the X server
#startkde 
$DISPLAY is not set or cannot connect to the X server 
解决:
xinit /usr/bin/startkde --display :1 -- /usr/bin/Xorg :1
或者:
xinit /usr/bin/startkde --display :1 
If you want to play with examples like this, you might want to use xinit 
to start your sessions: 
xinit /usr/bin/startkde --display :1 -- /usr/bin/Xorg :1 
will just about always get you what you want. If your command, startkde 
in this case, does not have a "--display" flag, you‘ll have to export 
DISPLAY=:1 beforehand and you might even need to add "-ac" to the Xorg 
command line to allow connections.
文章来自:http://www.cnblogs.com/x113/p/4589700.html