Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kdm not booting kde
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Klin'Targ
n00b
n00b


Joined: 04 Mar 2003
Posts: 65
Location: Davis, CA

PostPosted: Wed Oct 08, 2003 4:17 am    Post subject: kdm not booting kde Reply with quote

I recently upgraded my xfree86 ebuild as part of an emerge -U world, however, half way through the xfree install, I ran out of disk space. I re-merged xfree and it works now for the most part, however kdm will not boot kde. When I choose kde, it boots fvwm. I looked at the ~/.xsession-errors file, and it says permission denied on the chooser.sh file.

When I edit it, it is empty, and it is not executable. Could this be the problem? and if so, can I copy an old version of the file (from another gentoo system I have) to fix this? Or is this file supposed to be empty? (I somehow doubt it.)
Back to top
View user's profile Send private message
MasterX
Veteran
Veteran


Joined: 26 Jun 2003
Posts: 1165

PostPosted: Wed Oct 08, 2003 5:28 am    Post subject: Reply with quote

Look in the folder /etc/X11/Sessions.
There should at least be a file with the name Xsession. Apparently when you updated XFree you deleted the contains of this folder. Create another file, named kde (or whatever name you want to give :D ) and in that file right the following commands
Code:

#!/bin/sh
/usr/kde/3.1/bin/startkde


Save the file and make it executable. You should be able to log in to KDE
Back to top
View user's profile Send private message
Klin'Targ
n00b
n00b


Joined: 04 Mar 2003
Posts: 65
Location: Davis, CA

PostPosted: Wed Oct 08, 2003 9:41 am    Post subject: Reply with quote

Yes, the sessions are all there still, and their contents are intact.
Its just that when I choose one to start at the login screen, it always just boots fvwm regardless of choice.
Back to top
View user's profile Send private message
MasterX
Veteran
Veteran


Joined: 26 Jun 2003
Posts: 1165

PostPosted: Wed Oct 08, 2003 2:35 pm    Post subject: Re: kdm not booting kde Reply with quote

Klin'Targ wrote:
When I choose kde, it boots fvwm. I looked at the ~/.xsession-errors file, and it says permission denied on the chooser.sh file.

What is the name of the file?
Back to top
View user's profile Send private message
Klin'Targ
n00b
n00b


Joined: 04 Mar 2003
Posts: 65
Location: Davis, CA

PostPosted: Wed Oct 08, 2003 6:20 pm    Post subject: Reply with quote

The .xsession-errors file is ~/.xsession-errors.
The chooser.sh file is /etc/X11/chooser.sh

I am currently running kde via editing .xinitrc to include "startkde" and just running startx, so I know its not a problem with kde.
Back to top
View user's profile Send private message
MasterX
Veteran
Veteran


Joined: 26 Jun 2003
Posts: 1165

PostPosted: Wed Oct 08, 2003 6:31 pm    Post subject: Reply with quote

My chooser.sh file has the following:
Code:

#!/bin/sh
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author:  Martin Schlemmer <azarah@gentoo.org>
# $Header: /home/cvsroot/gentoo-x86/x11-base/xfree/files/4.3.0/chooser.sh,v 1.2 2003/06/15 04:02:47 seemant Exp $

# If $XSESSION is "", source first /etc/conf.d/basic, and then /etc/rc.conf
if [ -z "${XSESSION}" ]
then
   [ -f /etc/conf.d/basic ] && . /etc/conf.d/basic
   [ -f /etc/rc.conf ] && . /etc/rc.conf
fi

# Find a match for $XSESSION in /etc/X11/Sessions
GENTOO_SESSION=""
for x in /etc/X11/Sessions/*
do
   if [ "`echo ${x##*/} | awk '{ print toupper($1) }'`" \
      = "`echo ${XSESSION} | awk '{ print toupper($1) }'`" ]
   then
      GENTOO_SESSION=${x}
      break
   fi
done

GENTOO_EXEC=""

if [ -n "${XSESSION}" ]; then
   if [ -f /etc/X11/Sessions/${XSESSION} ]; then
      if [ -x /etc/X11/Sessions/${XSESSION} ]; then
         GENTOO_EXEC="/etc/X11/Sessions/${XSESSION}"
      else
         GENTOO_EXEC="/bin/sh /etc/X11/Sessions/${XSESSION}"
      fi
   elif [ -n "${GENTOO_SESSION}" ]; then
      if [ -x "${GENTOO_SESSION}" ]; then
         GENTOO_EXEC="${GENTOO_SESSION}"
      else
         GENTOO_EXEC="/bin/sh ${GENTOO_SESSION}"
      fi
   else
      x=""
      y=""
      
      for x in "${XSESSION}" \
         "`echo ${XSESSION} | awk '{ print toupper($1) }'`" \
         "`echo ${XSESSION} | awk '{ print tolower($1) }'`"
      do
         # Fall through ...
         if [ -x "`which ${x} 2>/dev/null`" ]; then
            GENTOO_EXEC="`which ${x} 2>/dev/null`"
            break
         fi
      done

      # If all else fail, run twm
      GENTOO_EXEC="/usr/X11R6/bin/twm"
   fi
fi

echo "${GENTOO_EXEC}"


# vim:ts=4

Give it a try
The root has the permission to read/write/execute this file. Group has permission to read/execute and the rest to execute

hope it works
Back to top
View user's profile Send private message
Klin'Targ
n00b
n00b


Joined: 04 Mar 2003
Posts: 65
Location: Davis, CA

PostPosted: Thu Oct 09, 2003 5:49 pm    Post subject: Reply with quote

Thanks. That worked :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum