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.
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?
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.
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.