PDA

View Full Version : Debian Help



rey
09-26-2009, 01:52 PM
I need to know how to install KDE on debian 5. I get an error saying cannot connect to X server.

rey
09-28-2009, 12:17 PM
Anyone?

OlegL
09-28-2009, 02:27 PM
I assume, you ran the command "apt-get install kde"?

rey
09-29-2009, 12:30 PM
yep, how do i get it enabled on vnc?

OlegL
09-29-2009, 07:35 PM
In your home directory, there should be .vnc directory. In that directory, you'll find xstartup file. Remove everything from that file and add "startkde" (without the quotes) to the file. Save the file and you know what to do after that. But you may want to back up that file before changing anything in it.

brgroup
09-30-2009, 11:01 PM
If Olegl's suggestion doesn't work try this:

cd .vnc
sudo nano xstartup

Replace the contents with the below:


#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startkde &


ctrl-x, to save and quit.

Restart vncserver:

sudo vnc4server (vncserver) restart