LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   XFCE - missing login screen / automatically logged in (https://www.linuxquestions.org/questions/slackware-14/xfce-missing-login-screen-automatically-logged-in-4175552621/)

czezz 09-04-2015 09:51 AM

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.

ponce 09-04-2015 10:05 AM

Quote:

Originally Posted by czezz (Post 5415778)
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.

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?

elcore 09-04-2015 10:12 AM

I think that's normal if you're already logged in and run startx. If you run init 4 then xdm/kdm/gdm is started instead of xinit.

ReaperX7 09-05-2015 03:57 AM

Runlevel 3 logs you in at the Console only, not the X session.

enorbet 09-06-2015 10:26 AM

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.

czezz 09-07-2015 05:47 AM

Hi all,
thanks for replies.

@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.

elcore 09-07-2015 06:51 AM

Code:

cat /etc/rc.d/rc.4  cat /usr/bin/startx  cat /etc/X11/xinit/xinitrc  cat ~/.xinitrc
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)

Didier Spaier 09-07-2015 06:56 AM

You could just type kdm instead of startx.

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.

BratPit 09-08-2015 03:18 AM

But

login at run level 3 as a regular user, then launch kdm??????

What for?

Login for next login?

Perversion IMO :-)

oldtechaa 09-08-2015 07:45 AM

I'm afraid I don't understand the need to login twice either.

bassmadrigal 09-08-2015 08:12 AM

Quote:

Originally Posted by czezz (Post 5416953)
@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.

czezz 09-09-2015 08:46 AM

@bassmadrigal - I think u also missed the point + you missed this topic is already solved.
Read more carefully.

Quote:

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
That sounds like malice.

ReaperX7 09-09-2015 09:12 AM

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.

czezz 09-09-2015 10:32 AM

Ugh, Im really surprised...
Please look at my answer from 07-09-15, 10:47 (where I assume this topic is solved and that's it).

I said:
Quote:

Hi all,
thanks for replies.
I think that this is good tone. No?

Secondly, you wrote:
Quote:

Runlevel 3 logs you in at the Console only, not the X session.
I have never written its opposite:
Quote:

At start up my Slack boots up to runlevel 3 and thats OK.
Its really OK. I like runlevel 3 where I have CLI...
Did you also read my NOTE at first post ?

And the last thing I want to say in this thread:
I use this forum for so long time and want to say how much I appreciate all help I receive here.

ps.
I hope this topic can be closed now. If anyone wants to continue then PM please.

Didier Spaier 09-09-2015 11:03 AM

Quote:

Originally Posted by czezz (Post 5418032)
I hope this topic can be closed now. If anyone wants to continue then PM please.

However one last public question, please Sir.

What puzzles me is that you marked this thread as [SOLVED] although I can't see what solution you did put in practice.

Unless you mean that you renounced to do what you initially wanted, could you please describe what you ended up doing, that you find satisfactory?

I ask because that could help others with the same need or wish as yours.


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