LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   autostart kde (https://www.linuxquestions.org/questions/linux-software-2/autostart-kde-266551/)

ZaphyR 12-15-2004 01:55 AM

autostart kde
 
how do i autostart KDE? i am running Gentoo on this box, and it just gives me a console logon when booted, and i have to run startx to get KDE running.

this is my rc.conf:

Code:

# What display manager do you use ?  [ xdm | gdm | kdm | entrance ]
DISPLAYMANAGER="kdm"

# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit.  The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to.  The support scripts is smart enouth to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enligtenment" can also work.  This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE:  1) this behaviour is overridden when a ~/.xinitrc exists, and startx
#          is called.
#        2) even if a ~/.xsession exist, if XSESSION can be resolved, it will
#          be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps

XSESSION="kde-3.3.0"


bathory 12-15-2004 02:38 AM

Edit your /etc/iniitab and change the initdefault value to the runlevel that starts X. Usually it's 5.
Regards

ZaphyR 12-15-2004 03:06 AM

Thanks, i tried that but it still is the same.

this is what i set up in inittab

Code:

# Default runlevel.
id:5:initdefault

and I can see it when the computer is booting...INIT: Runlevel 5 it says...and then continues to console login...


:confused:

mayur 12-15-2004 03:13 AM

can you use switchdesk command

ZaphyR 12-15-2004 03:18 AM

no, neither as user or root can it find the command "switchdesk"

bathory 12-15-2004 03:25 AM

Are you sure that runlevel 5 is the graphical login in gentoo? There are comments in /etc/inittab describing the various runlevels.
Also you can run "init 5" from the command line to see if X starts.

ZaphyR 12-15-2004 03:45 AM

so i reboot, and get the console again. log in as root and types "init 5".....nothing happens....

Code:

#init 5
#

as user i get

Code:

command not found

bathory 12-15-2004 04:21 AM

Doing a liitle googling, here is what I've found:
Quote:

Graphical Login
If you want to use kdm as graphical login manager (which means you don't have to log on onto a terminal and type startx every time) you first need to look inside /etc/X11/Sessions to see how the KDE session is called:
Code listing 3.2: Checking the KDE session name
# ls /etc/X11/Sessions
Xsession fluxbox kde-3.2.1
In the above example, the KDE session is called kde-3.2.1. Let's enter this in /etc/rc.conf in the variable called XSESSION. While you are at it, also set the DISPLAYMANAGER to kdm.
Code listing 3.3: Setting XSESSION in /etc/rc.conf
# nano -w /etc/rc.conf
(Edit the following two variables)
XSESSION="kde-3.2.1"
DISPLAYMANAGER="kdm"
Finish up by adding xdm to the default runlevel:
Code listing 3.4: Adding xdm to the default runlevel
# rc-update add xdm default
When you reboot your system, it will use KDM as graphical login manager.
Cheers

ZaphyR 12-15-2004 04:52 AM

yes! it was "rc-update add xdm default" that was missing all along!

still I wonder why it is "rc-update add xdm default" and not "rc-update add kdm default"?? strange....

Anyways...thanks! :)


All times are GMT -5. The time now is 07:47 AM.