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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-06-2007, 08:29 AM
|
#1
|
|
LQ Newbie
Registered: Sep 2007
Posts: 12
Rep:
|
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.
|
|
|
|
09-06-2007, 08:39 AM
|
#2
|
|
Member
Registered: Dec 2004
Distribution: gentoo
Posts: 190
Rep:
|
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.
|
|
|
|
09-06-2007, 11:18 AM
|
#3
|
|
Member
Registered: Feb 2006
Distribution: CRUX 2.4
Posts: 96
Rep:
|
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.
|
|
|
|
09-07-2007, 02:43 AM
|
#4
|
|
LQ Newbie
Registered: Sep 2007
Posts: 12
Original Poster
Rep:
|
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?
|
|
|
|
09-07-2007, 04:11 AM
|
#5
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:38 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|