LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-13-2009, 06:59 AM   #1
dizzi
Member
 
Registered: Jun 2004
Location: Yorkshire, UK
Distribution: Mint, Slackware
Posts: 146

Rep: Reputation: 15
Command prompt & KDM login options


Hi

Typically, when the "/etc/inittab" file is edited to enable to system to boot straight into the X-server, the KDM login screen is presented at end of the process. When a user logs in and then logs out, the KDM login screen is displayed again. However if the "/etc/inittab" file is not edited the system boots up to run-level 3 and displays the command line login prompt. Upon login in and executing the "startx" command, the KDM login screen is bypassed and the user is taken directly into KDE. In this case when the user logs out, the command line prompt and not the KDM login screen is presented.

What I would like to do is to be able to boot into the command line login prompt, log in and execute startx as usual but when logging out (of KDE) have the KDM login screen displayed rather than being returned to the command line. Is there an option that can be used with the "startx" command or another method to do this?

Thanks for any help on this.
 
Old 03-13-2009, 07:11 AM   #2
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 40
Assuming you're using slackware, and you haven't change inittab, and you login to the console. Instead of 'startx', use 'telinit 4' to switch runlevels. That way when you log back out of KDE, you still should get your KDM login screen.
 
Old 03-13-2009, 01:13 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
As mentioned by arungoodboy, telinit (or init) 4 will change the run level. You could edit the end of the startx script (located in /usr/bin) to run that command.

Instead of editing /etc/inittab, which is an either/or choice with respect to booting into a certain run level, another option is having the best of both run levels. Perhaps the following will help:

Configuring Slackware for a GUI and a Command Line Startup
 
Old 03-13-2009, 03:20 PM   #4
dizzi
Member
 
Registered: Jun 2004
Location: Yorkshire, UK
Distribution: Mint, Slackware
Posts: 146

Original Poster
Rep: Reputation: 15
Thanks guys . Amazingly I use "telinit 3" to stop the X server to return to the command prompt after booting using run level 3. It never occurred to me to use "telinit 4" to achieve what I asked above.

Thanks again.
 
  


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
How to enable Gnome logout options to exit to the command prompt GreenJelly Fedora 2 07-21-2007 02:34 PM
error messages after login in command prompt.. kirtikjr Linux - Software 2 07-13-2007 11:11 AM
non-graphic login/command prompt Beomoss Linux - Newbie 6 09-22-2004 12:32 PM
When i login, there is a command prompt at the top of the screen bcf2 Linux - Newbie 12 07-09-2004 12:05 AM
red hat command prompt at login adamuk Red Hat 3 05-21-2004 01:34 AM

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

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