View previous topic :: View next topic |
Author |
Message |
Klin'Targ n00b


Joined: 04 Mar 2003 Posts: 65 Location: Davis, CA
|
Posted: Wed Oct 08, 2003 4:17 am Post subject: kdm not booting kde |
|
|
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 |
|
 |
MasterX Veteran

Joined: 26 Jun 2003 Posts: 1165
|
Posted: Wed Oct 08, 2003 5:28 am Post subject: |
|
|
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 ) 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 |
|
 |
Klin'Targ n00b


Joined: 04 Mar 2003 Posts: 65 Location: Davis, CA
|
Posted: Wed Oct 08, 2003 9:41 am Post subject: |
|
|
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 |
|
 |
MasterX Veteran

Joined: 26 Jun 2003 Posts: 1165
|
Posted: Wed Oct 08, 2003 2:35 pm Post subject: Re: kdm not booting kde |
|
|
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 |
|
 |
Klin'Targ n00b


Joined: 04 Mar 2003 Posts: 65 Location: Davis, CA
|
Posted: Wed Oct 08, 2003 6:20 pm Post subject: |
|
|
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 |
|
 |
MasterX Veteran

Joined: 26 Jun 2003 Posts: 1165
|
Posted: Wed Oct 08, 2003 6:31 pm Post subject: |
|
|
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 |
|
 |
Klin'Targ n00b


Joined: 04 Mar 2003 Posts: 65 Location: Davis, CA
|
Posted: Thu Oct 09, 2003 5:49 pm Post subject: |
|
|
Thanks. That worked  |
|
Back to top |
|
 |
|