LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi

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?

Thanks
Chandrakumar

Last edited by chandrakumarhv; 09-06-2007 at 08:31 AM.
 
Old 09-06-2007, 08:39 AM   #2
visaris
Member
 
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
nflenz
Member
 
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.

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

Code:
~$ 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
chandrakumarhv
LQ Newbie
 
Registered: Sep 2007
Posts: 13

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
Quote:
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.
 
  


Reply

Tags
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 AM.

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