Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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"
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.