LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2006, 10:52 AM   #1
Yig
Member
 
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Rep: Reputation: 15
Starting KDE when connecting with VNC


Hi,

I configured A VNC server on my CentOS 4.3 box to automatically starts with xinetd. Look like I did that part correctly because I can connect.

Unfortunately, when I connect, I see a TWN desktop (gray desktop, X as a cursor, no icons or anything).

I was told to edit ~/.vnc/xstartup.

This is what is in that file:

Code:
#!/bin/sh

# Red Hat Linux VNC session startup script
exec /etc/X11/xinit/xinitrc
I tried to put a startkde in there but I still see the TWN desktop when I connect.

Maybe I need to modify the xinitrc file?

Code:
#!/bin/sh
# Copyright (C) 1999 - 2004 Red Hat, Inc. All rights reserved. This
# copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the
# GNU General Public License version 2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# Mandatorily source xinitrc-common, which is common code shared between the
# Xsession and xinitrc scripts which has been factored out to avoid duplication
. /etc/X11/xinit/xinitrc-common

# The user may have their own clients they want to run.  If they don't,
# fall back to system defaults.
if [ -f $HOME/.Xclients ]; then
        exec $DBUS_LAUNCH $HOME/.Xclients || \
        exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
        exec $DBUS_LAUNCH /etc/X11/xinit/Xclients || \
        exec /etc/X11/xinit/Xclients
else
       # failsafe settings.  Although we should never get here
       # (we provide fallbacks in Xclients as well) it can't hurt.
       xclock -geometry 100x100-5+5 &
       xterm -geometry 80x50-50+150 &

       if [ -x /usr/X11R6/bin/twm ]; then
               exec /usr/X11R6/bin/twm
       fi
fi
Thanks!
 
Old 04-19-2006, 12:00 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Take a look at this
 
Old 04-19-2006, 12:41 PM   #3
Yig
Member
 
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Original Poster
Rep: Reputation: 15
Thanks for the reply.

Already tried to put startkde & in xstartup but it didn't work.

As you can see, there is no mention of TWN in xstartup.
 
Old 04-19-2006, 01:07 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Remove the line:
Code:
exec /etc/X11/xinit/xinitrc
and add the line
Code:
/opt/kde/bin/startkde &
Of course you have to change the path to "startkde" accordingly.
Or, make a backup of your xinitrc and then remove everything in it and add just the line to run "startkde".
 
Old 04-19-2006, 01:29 PM   #5
Yig
Member
 
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Original Poster
Rep: Reputation: 15
I found starkde in /usr/bin so I added that one to xstarup. There is nothing in /opt.

Still not working.

Edit: To be sure, I went on the server and ran xstartup. Told me that KDE was already running on that display. So in theory that would work.

Last edited by Yig; 04-19-2006 at 01:37 PM.
 
Old 04-20-2006, 02:44 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
It works for most distros. I did a little search and I found out, that perhaps you have edit /etc/sysconfig/desktop:
Code:
DESKTOP="KDE"
DISPLAYMANAGER="KDE"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
starting up vnc in mandrake nanjil Linux - Newbie 1 07-10-2005 09:32 AM
starting x in vnc maybbach Linux - Software 1 04-25-2005 08:56 PM
Starting X and a little VNC th3_d0c Linux - Software 1 08-18-2004 11:50 PM
starting KDE with VNC nadine.mauch Linux - Software 1 08-29-2003 01:22 PM
Connecting to Redhat 9 VNC Server aeb105 Linux - Newbie 18 08-26-2003 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration