Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-06-2007, 08:29 AM   #1
LQ Newbie
Registered: Sep 2007
Posts: 12

Rep: Reputation: 0
Question Running KDM as a user from Console.


I have installed open linux system in graphical mode and have changed the inittab default to 3.Linux boots in console mode .I usually log in as user and when i want to run KDM it gives the Error message only root wants to run KDM.infact from console If want to run KDM I have switch to root and run KDM again log in as user in KDM.Is it safe to do on my desk top? How can i directly run KDM as console user?


Last edited by chandrakumarhv; 09-06-2007 at 08:31 AM.
Old 09-06-2007, 08:39 AM   #2
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
Well, KDM is, for most users, intended to be used as a login manager. So, once one has already logged in via the console, the main use of KDM is already gone.

+ Is it safe to do on my desk top?

I don't know what "it" is. Is what safe? I can take a guess that "it" maps to "running kdm as root". If this is the correct mapping, in general, the answer is yes. That is the intended use. The idea is that, once the system starts up, no users are logged in yet. KDM runs as root, and then allows normal users to log in.

However, logging into the console as root, and then running KDM doesn't do much. One can press ctl+alt+backspace to kill X and KDM, and then they have a free root console to work with.

The idea is to have the startup scripts run KDM as root in such a way that kdm crashing/failing will not drop the console back to a root prompt. You may need runlevel 5 for this, I don't know about RedHat, I use Gentoo.

+ How can i directly run KDM as console user?

Not sure kdm will make this easy for you. Do you really need the functionality of KDM, or are you simply trying to log in and get to your graphical environment. If you just want X, log in the console, and then type "startx".

Last edited by visaris; 09-06-2007 at 08:42 AM.
Old 09-06-2007, 11:18 AM   #3
Registered: Feb 2006
Distribution: CRUX 2.4
Posts: 96

Rep: Reputation: 18
There is no reason to run a login manager if you are already logged in. The startx command can run X11 for you.

~$ startx $(which startkde)
but you can still run KDM if you wish to.

~$ su root -c "/etc/init.d/kdm start"
The location of the kdm file might be different on your distro, though.
Old 09-07-2007, 02:43 AM   #4
LQ Newbie
Registered: Sep 2007
Posts: 12

Original Poster
Rep: Reputation: 0
I tried startx but nothing happens, X will not start, after sometime the $ prompt comes back without giving any error message. Is there any tweak to make that work?
Old 09-07-2007, 04:11 AM   #5
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I tried startx but nothing happens, X will not start, after sometime the $ prompt comes back without giving any error message. Is there any tweak to make that work?
I usually avoid KDM as I'm the only user on my computer, so I go to main menu/control_center/system_administration/login_manager and click on "Administrator Mode" at the bottom, then click on the "Convenience" tab and put a check in the "Enable auto login" box and select the user to enable if there are more that one user account. Now when you issue command: startx as the selected user in init3, it should load the user's KDE desktop without needing to log in via KDM.

Last edited by Junior Hacker; 09-07-2007 at 04:12 AM.


as, console, kdm, root, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to autologin on console (no kdm) and how to start with different resolution? stormrider_may Slackware 12 03-28-2006 08:17 AM
KDM and temp console mode login TJandE *BSD 0 08-24-2004 12:22 AM
KDM starts automatically from user console? Oh Cisco Debian 3 08-14-2004 07:52 PM
KDM console login problem reddazz Slackware 3 06-19-2004 11:11 AM
From kdm to Console SilenceX Linux - Newbie 1 09-02-2003 11:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration