LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Thread Tools
Old 11-09-2009, 09:45 AM   #1
sunny_5252
LQ Newbie
 
Registered: Feb 2007
Location: changchun china
Posts: 27
Thanked: 0
Question who can tell me why ?


[Log in to get rid of this advertisement]
My QQ group of friends found that, in slackware 13 in
/ etc / rc.d / rc.local executable
And / etc / inittab for the init 3

Then add a line in the rc.local
startx
You can not enter any password to enter kde

At this time id is 0
users is the root root
home is /

Why??
linux sunny_5252 is offline     Reply With Quote
Old 11-09-2009, 09:57 AM   #2
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Slackware64
Posts: 361
Blog Entries: 19
Thanked: 24
rc.local is run by root which would then run startx.

You have to enable kdm by setting your inittab to 4.


If you don't want a graphical login manager and you want your user to log directly into their chosen window manager, then you put startx in their profile.

The two files are .bashrc and .profile in the user's home directory. One will get launched every time you spawn a new console like xterm, and one will only run when you are actually logging into a new console.

Which is which I don't know. You would be better off having a check in the script to see if xorg is already running.
linuxslackware lumak is offline     Reply With Quote
Old 11-09-2009, 10:00 AM   #3
onebuck
Guru
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 5,437
Blog Entries: 1
Thanked: 202
Hi,

You are wanting a 'X' login?

The default runlevel is '3' for Slackware. If you want a 'X' login then switch to '4';

Quote:
excerpt from '/etc/inittab';

# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
# 3.00 02/06/1999 PV
# 4.00 04/10/2002 PV
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by: Patrick J. Volkerding, <volkerdi@slackware.com>
#

# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot
Just modify the '/etc/inittab'.

linuxslackware onebuck is offline     Reply With Quote
Old 11-09-2009, 10:01 AM   #4
sunny_5252
LQ Newbie
 
Registered: Feb 2007
Location: changchun china
Posts: 27
Thanked: 0

Original Poster
thanks lumak ,i see.
linux sunny_5252 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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



All times are GMT -5. The time now is 06:51 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration