LinuxForum.Fans
Тема

Не запускается КДЕ ![Sabayon 5.5.]

Автор: Asiris 13 сообщений 6607 просмотров
#122938

на пятом уровне загрузки системы не запускается десктоп, xdm стоит сервисом boot.
Кде можно запустить только вручную командой startx.
Может кто знает как сделать автозапуск кде на 5 уровне.

#122940
Asiris написал:
Может кто знает как сделать автозапуск кде на 5 уровне.

А разве в Sabayon, основанном на Gentoo, дистрибутиве есть пятый уровень запуска?
Покажите (либо посмотрите сами) файл /etc/conf.d/xdm.
Сервис xdm правильнее помещать в default-уровень.

#122954

/etc/conf.d/xdm

text
 
# We always try and start X on a static VT. The various DMs normally default
# to using VT7. If you wish to use the xdm init script, then you should ensure
# that the VT checked is the same VT your DM wants to use. We do this check to
# ensure that you haven't accidentally configured something to run on the VT
# in your /etc/inittab file so that you don't get a dead keyboard.
CHECKVT=7

# What display manager do you use ? [ xdm | gdm | kdm | kdm-4.3 | gpe | entrance ] # NOTE: If this is set in /etc/rc.conf, that setting will override this one. # # KDE-specific note: # - If you are using kdeprefix go with "kdm-4.Y", e.g. "kdm-4.3". # You can find possible versions by looking at the directories in /usr/kde/. # - Else, if you are using KDE 3 enter "kdm-3.5" # - Else, if you are using KDE 4 enter "kdm" without a version DISPLAYMANAGER="kdm"

/etc/inittab

text
 Default runlevel.
id:3:initdefault:

l0:0:wait:/sbin/rc shutdown l0s:0:wait:/sbin/halt -dhp l1:1:wait:/sbin/rc single l2:2:wait:/sbin/rc nonetwork l3:3:wait:/sbin/rc default l4:4:wait:/sbin/rc default l5:5:wait:/sbin/rc default l6:6:wait:/sbin/rc reboot l6r:6:wait:/sbin/reboot -dk #z6:6:respawn:/sbin/sulogin

... # Used by /etc/init.d/xdm to control DM startup. # Read the comments in /etc/init.d/xdm for more # info. Do NOT remove, as this will start nothing # extra at boot if /etc/init.d/xdm is not added # to the "default" runlevel. x:a:once:/etc/X11/startDM.sh

да, ей не нужен 5 уровень.
видимо запускается с помощью некоего фаилика в X11, но команда telinit a - выдает ошибку.

#122958

Замените строку DISPLAYMANAGER="kdm" на DISPLAYMANAGER="kde"

#123079
Lupo Alberto написал:
Замените строку DISPLAYMANAGER="kdm" на DISPLAYMANAGER="kde"

Не, это не вариант, да и впринципе в комментарии написано что kdm для запуска kde 4.

#123107
Asiris написал:
Не, это не вариант, да и впринципе в комментарии написано что kdm для запуска kde 4.

Вы пробовали так сделать? Что в комментарии написано, я читал. Тем не менее попробуйте заменить.
P.S. Да и

text

rc-update del xdm boot
rc-update add xdm default

P.S.S. kdm установлен?
P.S.S.S. Когда не запускается, какие ошибки выдаёт?

#123110
Asiris написал:
x:a:once:/etc/X11/startDM.sh

а что у вас здесь?

#123111
drBatty написал:
а что у вас здесь?
text

#!/bin/sh
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/files/startDM.sh,v 1.4 2007/04/05 15:30:19 uberlord Exp $

# We need to source /etc/profile for stuff like $LANG to work # bug #10190. . /etc/profile

. /etc/init.d/functions.sh

# baselayout-1 compat if ! type get_options >/dev/null 2>/dev/null ; then [ -r "${svclib}"/sh/rc-services.sh ] && . "${svclib}"/sh/rc-services.sh fi

# Great new Gnome2 feature, AA # We enable this by default export GDK_USE_XFT=1

export SVCNAME=xdm EXEC="$(get_options service)" NAME="$(get_options name)" PIDFILE="$(get_options pidfile)"

start-stop-daemon --start --exec ${EXEC} \ ${NAME:+--name} ${NAME} ${PIDFILE:+--pidfile} ${PIDFILE} || \ eerror "ERROR: could not start the Display Manager"

# vim:ts=4

#123121
Lupo Alberto написал:
EXEC="$(get_options service)" NAME="$(get_options name)" PIDFILE="$(get_options pidfile)" start-stop-daemon --start --exec ${EXEC} \ ${NAME:+--name} ${NAME} ${PIDFILE:+--pidfile} ${PIDFILE} || \

ну видимо здесь gdm и запускается. или kdm

(жуть, как всё у вас сложно)

#123123
drBatty написал:
ну видимо здесь gdm и запускается. или kdm

(жуть, как всё у вас сложно)

Наверное, запускается всё же в /etc/init.d/xdm

Показать

#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/files/xdm.initd-3,v 1.1 2010/09/28 12:43:19 scarabeus Exp $

# This is here to serve as a note to myself, and future developers.
#
# Any Display manager (gdm,kdm,xdm) has the following problem: if
# it is started before any getty, and no vt is specified, it will
# usually run on vt2. When the getty on vt2 then starts, and the
# DM is already started, the getty will take control of the keyboard,
# leaving us with a "dead" keyboard.
#
# Resolution: add the following line to /etc/inittab
#
# x:a:once:/etc/X11/startDM.sh
#
# and have /etc/X11/startDM.sh start the DM in daemon mode if
# a lock is present (with the info of what DM should be started),
# else just fall through.
#
# How this basically works, is the "a" runlevel is a additional
# runlevel that you can use to fork processes with init, but the
# runlevel never gets changed to this runlevel. Along with the "a"
# runlevel, the "once" key word means that startDM.sh will only be
# run when we specify it to run, thus eliminating respawning
# startDM.sh when "xdm" is not added to the default runlevel, as was
# done previously.
#
# This script then just calls "telinit a", and init will run
# /etc/X11/startDM.sh after the current runlevel completes (this
# script should only be added to the actual runlevel the user is
# using).
#
# Martin Schlemmer
# aka Azarah
# 04 March 2002

depend() {
need localmount xdm-setup

# this should start as early as possible
# we can't do 'before *' as that breaks it
# (#139824) Start after ypbind and autofs for network authentication
# (#145219 #180163) Could use lirc mouse as input device
# (#70689 comment #92) Start after consolefont to avoid display corruption
# (#291269) Start after quota, since some dm need readable home
after bootmisc consolefont modules netmount
after readahead-list ypbind autofs openvpn gpm lircmd
after quota
before alsasound

# Start before X
use consolekit xfs
}

setup_dm() {
local MY_XDM

MY_XDM=$(echo "${DISPLAYMANAGER}" | tr '[:upper:]' '[:lower:]')

# Load our root path from profile.env
# Needed for kdm
PATH=${PATH}:$(. /etc/profile.env; echo "${ROOTPATH}")

NAME=
case "${MY_XDM}" in
kdm|kde)
EXE="$(which kdm)"
PIDFILE=/var/run/kdm.pid
;;
kdm-*)
EXE="/usr/kde/${MY_XDM#kdm-}/bin/kdm"
PIDFILE=/var/run/kdm.pid
;;
entrance*)
EXE=/usr/sbin/entranced
PIDFILE=/var/lib/entranced.pid
;;
gdm|gnome)
EXE=/usr/bin/gdm
[ "${RC_UNAME}" != "Linux" ] && NAME=gdm-binary
PIDFILE=/var/run/gdm.pid
;;
wdm)
EXE=/usr/bin/wdm
PIDFILE=
;;
gpe)
EXE=/usr/bin/gpe-dm
PIDFILE=/var/run/gpe-dm.pid
;;
*)
# first find out if there is such executable
EXE="$(which ${MY_XDM} 2>/dev/null)"
PIDFILE="/var/run/${MY_XDM}.pid"

# warn user that he is doing sick things if the exe was not found
if [ -z "${EXE}" ]; then
echo "ERROR: Your XDM value is invalid."
echo " No ${MY_XDM} executable could be found on your system."
fi
;;
esac

if ! [ -x "${EXE}" ]; then
EXE=/usr/bin/xdm
PIDFILE=/var/run/xdm.pid
if ! [ -x "/usr/bin/xdm" ]; then
echo "ERROR: Please set your DISPLAYMANAGER variable in /etc/conf.d/xdm,"
echo " or install x11-apps/xdm package"
eend 255
fi
fi
}

# Check to see if something is defined on our VT
vtstatic() {
if [ -e /etc/inittab ] ; then
grep -Eq "^[^#]+.*\<tty$1\>" /etc/inittab
elif [ -e /etc/ttys ] ; then
grep -q "^ttyv$(($1 - 1))" /etc/ttys
else
return 1
fi
}

start() {
local EXE NAME PIDFILE
setup_dm

if [ -f /etc/.noxdm ]; then
einfo "Skipping ${EXE##*/}, /etc/.noxdm found or \"nox\" bootparam passed."
rm /etc/.noxdm
return 0
fi

ebegin "Setting up ${EXE##*/}"

# save the prefered DM
save_options "service" "${EXE}"
save_options "name" "${NAME}"
save_options "pidfile" "${PIDFILE}"

if [ -n "${CHECKVT-y}" ] ; then
if vtstatic "${CHECKVT:-7}" ; then
if [ -x /sbin/telinit ] && [ "${SOFTLEVEL}" != "BOOT" ] && [ "${RC_SOFTLEVEL}" != "BOOT" ]; then
ewarn "Something is already defined on VT ${CHECKVT:-7}, will start X later"
telinit a >/dev/null 2>&1
return 0
else
eerror "Something is already defined on VT ${CHECKVT:-7}, not starting"
return 1
fi
fi
fi

/etc/X11/startDM.sh
eend 0
}

stop() {
local curvt retval

retval=0
if [ -t 0 ]; then
if type fgconsole >/dev/null 2>&1; then
curvt=$(fgconsole 2>/dev/null)
else
curvt=$(tty)
case "${curvt}" in
/dev/ttyv[0-9]*) curvt=${curvt#/dev/ttyv} ;;
*) curvt= ;;
esac
fi
fi
local myexe myname mypidfile myservice
myexe=$(get_options "service")
myname=$(get_options "name")
mypidfile=$(get_options "pidfile")
myservice=${myexe##*/}

[ -z "${myexe}" ] && return 0

ebegin "Stopping ${myservice}"

if start-stop-daemon --quiet --test --stop --exec "${myexe}"; then
start-stop-daemon --stop --exec "${myexe}" --retry TERM/5/TERM/5 \
${mypidfile:+--pidfile} ${mypidfile} \
${myname:+--name} ${myname}
retval=${?}
fi

# switch back to original vt
if [ -n "${curvt}" ]; then
if type chvt >/dev/null 2>&1; then
chvt "${curvt}"
else
vidcontrol -s "$((curvt + 1))"
fi
fi

eend ${retval} "Error stopping ${myservice}"
return ${retval}
}

# vim: set ts=4 :
#123154

xdm в boot и default ставил.
там были 4 ошибки типа :
get_options: not specified service.

#123157
Lupo Alberto написал:
P.S.S. kdm установлен?
#123162

Asiris, убрав xdm вообще из загрузки и оказавшись в консоли, наберите

text

/etc/init.d/xdm --debug start

... и вывод покажите.

Войдите или зарегистрируйтесь, чтобы ответить.