KDE Startup and AutoLogin

Starting KDE from Command Line by startx

By Zhiqiang Ma On Nov 29, 2012

               

0

Keep updated Share on facebookFacebook Share on twitterTwitter Share on google_followGoogle Share on rssRSS

I don't use xdm, gdm or kdm… I prefer my Linux booting to init 3. I like logging in to the command-prompt and starting X manually with startx. In my Fedora Linux box, I always get to gnome even both gnome and KDE are installed. Actually the startx script is already written for most of the modern desktop environment. What we need to do is open the "trigger".

The startx script in Fedora will read /etc/sysconfig/desktop for the "DESKTOP" variable (through /etc/X11/xinit/Xclients) and starts the desktop environment depending on it. While the default value for "DESKTOP" is set to "GNOME", we will get to gnome if we don't set the variable. When we want to startx to KDE we just need to add one line to /etc/sysconfig/desktop:

DESKTOP="KDE"

If there is already one line that defines "DESKTOP", just change the value of it.

Then we will start KDE when we run startx from console.

Free additional gift

The "DISPLAYMANAGER" in the /etc/sysconfig/desktop file is used to specify the default display manager. To make KDM the default display, just add this line:

DISPLAYMANAGER="KDE"



to enable automatic logons using the following GUI menu selections:


Control Center > System Administration > Login Manager > Administrator Mode > Convenience Tab



Manually:

Edit kdmrc. kdmrc can be found as

locate kdmrc

if slocate is installed and database is up to date.

In Gentoo and KDE 3.5 it is in


/usr/kde/3.5/share/config/kdm/kdmrc

The following needs to be added if there is no sign of autologin variables. If there are something related to autologin already in place, edit those

[X-:0-Core]

AutoLoginAgain=true

AutoLoginDelay=0

AutoLoginEnable=true

AutoLoginUser=autouser

AutoLoginAgain logs user in again after when for whatever reason user is logged out but X is not restarted. Everything else should be easy to understand.


Comments

Popular posts from this blog

Morning Quotes

QCalendarWidget CSS Stylesheeting

Selecting new phone plan