[SOLVED] XFCE - missing login screen / automatically logged in
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.
XFCE - missing login screen / automatically logged in
Slackware 14.1 x86_64 with XFCE 4.10.
At start up my Slack boots up to runlevel 3 and thats OK.
Whenever I need to get into X, I execute startx.
It starts XFCE (desired desktop) automatically. However I never get login screen before.
How can I change this and have a login screen before entering to XFCE ? NOTE: I know that I can change default runlevel in /etc/inittab to 4 and then - yes - I get the login screen right away after start up. But that's not the case.
At start up my Slack boots up to runlevel 3 and thats OK.
Whenever I need to get into X, I execute startx.
in runlevel 3 you cannot execute startx at all if you don't login in a console session first, and that most probably happens above between "OK." and "Whenever".
maybe I'm missing the real question, but if you are already in an open session it doesn't make sense to login again.
do you mean that in runlevel 3 you don't get a login prompt? in this case can it be you customized your /etc/inittab?
Greetings
I like the caution and flexibility of redundancy so I boot to runlevel 3 and then employ KDM or GDM (XDM works but isn't quite as full-featured as either "K" or "G"). The KDM login screen has many features and can have multiple instances of the same DE/WM with differing defaults. GDM is almost as cool but is just slightly less well-organized to me and I find KDM easier to modify for a truly custom screen.
@ponce and ReaperX7: I think you completely missed the point.
Quote:
At start up my Slack boots up to runlevel 3 and thats OK.
means - yes, I am logged in to CLI.
Next:
Quote:
Whenever I need to get into X, I execute startx
means hmm... how to explain it more simple...It means: I type startx command in CLI and that brings me to XFCE.
Anyway, @enorbet and elcore - XDM is what I was looking for, thanks
I guess it should be possible to force startx to execute xdm instead XFCE right away without login screen.
You probably want to take a look at these, I just execute rc.4 (init 4) to start the session manager from console. When you run startx, it finds startxfce4 in xinitrc and runs /usr/bin/startxfce4 (executing startx as root is not recommended btw)
But it will only work if you log in as root in runlevel 3...
So AFAIK no, there is now way to login at run level 3 as a regular user, then launch kdm. At least no safe way.
For the same safety reasons telinit 4 has to be run by root.
Maybe your goal is to be able to use another windows manager or desktop than the default one set up through xwconfig.
Then you could just issue, instead of startx, the relevant command. For instance that could be one of these:
startblackbox
startkde
startfluxbox
startfvwm2
startxfce4.
Or you could set up a small script that let you choose one of these, possibly through a menu displayed by the 'dialog' application.
Last edited by Didier Spaier; 09-07-2015 at 07:04 AM.
@ponce and ReaperX7: I think you completely missed the point.
I think you were missing their points. Your computer is working as intended. When you type startx, it is supposed to start up your chosen WM/DE, not launch you into a login prompt (since you're already logged in).
kdm/xdm/gdm are all designed to allow you to log in and then go to your chosen WM/DE. Since you already logged in under runlevel 3, there is no reason to display the login prompts.
Essentially, you're asking why startx doesn't do what its not supposed to do, just like asking why typing logout doesn't log you into the computer. The command startx is not designed to get you a login prompt. You'll need to look at the other options people have suggested here if you desire to go from a logged in runlevel 3 to a login prompt in runlevel 4.
When asking for help please use a better tone with people and take all suggestions as they are presented and with a grain of salt. Unless you clearly put forth your intention of logging in twice, which is not what you presented, you asked why startx doesn't bring up a login screen, then answering your question accurately is problematic. Startx starts the X session only, which is what you asked about, so please hold back any complaints about our answers to YOUR question. Had you asked specifically, how can I use runlevel 3 to have root, without X running, able to login while supporting a separate X session that is not logged in? We would have told you to use kdm directly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.