LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-04-2015, 09:51 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
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.
 
Old 09-04-2015, 10:05 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by czezz View Post
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?

Last edited by ponce; 09-04-2015 at 10:09 AM.
 
Old 09-04-2015, 10:12 AM   #3
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 09-05-2015, 03:57 AM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Runlevel 3 logs you in at the Console only, not the X session.
 
Old 09-06-2015, 10:26 AM   #5
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,781

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
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.
 
1 members found this post helpful.
Old 09-07-2015, 05:47 AM   #6
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
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.
 
Old 09-07-2015, 06:51 AM   #7
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
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)
 
Old 09-07-2015, 06:56 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
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.

Last edited by Didier Spaier; 09-07-2015 at 07:04 AM.
 
Old 09-08-2015, 03:18 AM   #9
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
But

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

What for?

Login for next login?

Perversion IMO :-)
 
Old 09-08-2015, 07:45 AM   #10
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
I'm afraid I don't understand the need to login twice either.
 
Old 09-08-2015, 08:12 AM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by czezz View Post
@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.
 
Old 09-09-2015, 08:46 AM   #12
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
@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.
 
Old 09-09-2015, 09:12 AM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.
 
Old 09-09-2015, 10:32 AM   #14
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
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.
 
Old 09-09-2015, 11:03 AM   #15
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Quote:
Originally Posted by czezz View Post
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.

Last edited by Didier Spaier; 09-09-2015 at 11:52 AM. Reason: Typo fix.
 
  


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
[SOLVED] question about Debian7 XFCE login screen xiongnu Debian 5 08-23-2013 08:06 PM
[SOLVED] XFCE: blank screen on login xri Slackware 6 08-21-2010 01:04 PM
Starting screen automatically at login? Calab Linux - General 1 09-28-2007 09:14 AM
is it possible to change the xfce login screen? pwc101 Slackware 3 03-25-2006 01:49 PM
Automatically load up KDE login screen annihilate Slackware 15 05-27-2004 02:18 PM

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

All times are GMT -5. The time now is 05:45 PM.

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