LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   noob question, how to start as non-root user in kde? (https://www.linuxquestions.org/questions/slackware-14/noob-question-how-to-start-as-non-root-user-in-kde-828433/)

mariojumpsound 08-25-2010 01:10 PM

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?

Hangdog42 08-25-2010 02:09 PM

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.

mariojumpsound 08-25-2010 02:26 PM

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

astrogeek 08-25-2010 02:41 PM

Quote:

Originally Posted by mariojumpsound (Post 4077551)
I didnt really understand it i was following some guides on how to make kde start on boot.

You REALLY need to follow the various READMES that come with Slackware - not some guide of unknown and not understood applicability you find online!

Look in the directories of the DVD you installed from, or at the mirror you downloaded from.

But first remove the startx from rc.local and put the other changes back as they were.

mariojumpsound 08-25-2010 02:57 PM

Ok, do you have a link to a document that can show me how to make it work properly?

BobNutfield 08-25-2010 03:08 PM

Quote:

Originally Posted by mariojumpsound (Post 4077578)
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.

Bob

T3slider 08-25-2010 03:13 PM

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).

[edit] Too slow. ;) [/edit]

astrogeek 08-25-2010 03:16 PM

Quote:

Originally Posted by mariojumpsound (Post 4077578)
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!

If you would prefer to read them online look in any of the mirrors such as ftp://slackware.oregonstate.edu/pub/...lackware-13.1/, they will be the same as are on the DVD.

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".

Good luck!

[EDIT]
Oddly enough, you will find what you were looking for in the Slackware-HOWTO text on the DVD, or here:
ftp://slackware.oregonstate.edu/pub/...lackware-HOWTO
[/EDIT]

mariojumpsound 08-25-2010 03:25 PM

Ok now i changed back the other files as they were before i started to write into them - dont really know how to formulate this im not english

and now i edited the /etc/inittab file so the runlevel is now 4 when it boots, and it works perfectly now!

so thanks to everyone for help, ill be back


All times are GMT -5. The time now is 08:29 PM.