LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-25-2010, 01:10 PM   #1
mariojumpsound
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
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?
 
Old 08-25-2010, 02:09 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 08-25-2010, 02:26 PM   #3
mariojumpsound
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 08-25-2010, 02:41 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Quote:
Originally Posted by mariojumpsound View Post
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.
 
Old 08-25-2010, 02:57 PM   #5
mariojumpsound
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, do you have a link to a document that can show me how to make it work properly?
 
Old 08-25-2010, 03:08 PM   #6
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
Quote:
Originally Posted by mariojumpsound View Post
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
 
Old 08-25-2010, 03:13 PM   #7
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
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]
 
Old 08-25-2010, 03:16 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Quote:
Originally Posted by mariojumpsound View Post
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]

Last edited by astrogeek; 08-25-2010 at 03:34 PM.
 
Old 08-25-2010, 03:25 PM   #9
mariojumpsound
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
  


Reply



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
One user login cannot start scim, other user logins and root OK allend Slackware 3 05-08-2008 07:25 PM
Gnome and KDE fail to start under user. root access ok. fishstick SUSE / openSUSE 4 04-02-2008 06:09 PM
Sorry dumb question - how to start graphical root session in KDE OrganicOrange84 Linux - Newbie 4 08-16-2004 06:29 AM
Normal user cannot start KDE - root can tagit Linux - Newbie 3 12-26-2003 08:12 PM
Normal user cannot start KDE - root can tagit Debian 1 12-26-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:44 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