noob question, how to start as non-root user in kde?
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
noob question, how to start as non-root user in kde?
Hi
I managed to set up kde so it will start when slackware boots, but it logs in on the root account automatically, how can i change this to my normal user account?
It automatically logs into root? Um, I don't mean to offend, but you must have done something because Slackware does NOT do that out of the box. Can you fill us in on the details of how you got KDE to start automatically? Maybe we can spot something.
Yes it boots straight into kde as root user, i dont get a login prompt like i did before i made kde start automatically.
Im totally new to this so i dont really remember all i did. I edited the file that contains what runs when slackware starts (think its called rc.local??), and added startx to that. Then i edited another file and commented out some stuff called kdg i think. I didnt really understand it i was following some guides on how to make kde start on boot.
edit: i think its the rc.4 file and i commented out the lines with gdm not kdg
Last edited by mariojumpsound; 08-25-2010 at 02:38 PM.
Ok, do you have a link to a document that can show me how to make it work properly?
The normal way to log in automatically to a graphical desktop is to edit the /etc/inittab file. Open it as root with a text editor and look for this line (should be the first entry):
Code:
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
change it to:
Code:
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
This will boot you into run level 4 which is the graphical login screen.
You shouldn't need to edit /etc/rc.d/rc.4 -- it checks to see if you have gdm installed, and if so, assumes you want to use it. I would highly recommend setting this back to its original state unless you know what you're doing. If you do NOT have gdm installed (it does NOT come with Slackware by default), then you don't need to touch it -- it should use kdm by default. You should restore rc.local to its previous state (it is blank by default, with the exception of comments). Then edit /etc/inittab. You should see this:
Code:
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
Change the 3 to 4 to get
Code:
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
This starts runlevel 4 by default and will therefore launch kdm (unless you have gdm installed). Runlevel 3 (the default setting in Slackware) is a text-based login. Runlevel 4 (which is set as runlevel 5 in many other distros) is a graphical login.
Reboot your computer and it should launch a graphical login manager (kdm) that allows you to log in as a normal user graphically, and automatically starts X for you. If you get into trouble, you can reach a virtual terminal on console 6 (Ctrl+Alt+F6).
Ok, do you have a link to a document that can show me how to make it work properly?
Well, as I said, look at the various READMEs and other text files on the distribution media, in particular CHANGES_AND_HINTS.TXT. I am not sure of the exact line in which of those tells you how to start KDE automatically, but the point is to get you to read them and familiarize yourself with what is there - well worth the small effort it takes!
As BobNutfield [EDIT and T3slider /EDIT] have posted in the mean time, starting X (KDE by default) is as easy as setting the runlevel in /etc/inittab. And to help you understand what this does, just read up on "runlevel".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.