You are not logged in.

#1 2013-03-26 11:17:36

eruditorum
Member
Registered: 2012-11-12
Posts: 130

Graphical login without any DM

Hi!

How can I start X-server at boot without help of any display manager? I mean, directly at boot Xserver starts with full-screen or centered urxvt terminal window with login in it, then after login it  executes .xinitrc, globally applies shell settings and everything else belonging to user who was logged in.

Thanks.

Last edited by eruditorum (2013-03-26 11:21:32)

Offline

#2 2013-03-26 11:32:36

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Graphical login without any DM

I think you just decribed what a display manager does. sad

Can you please tell us why you don't want to install a display manager? That will help us give you advice. smile

Offline

#3 2013-03-26 11:36:41

eruditorum
Member
Registered: 2012-11-12
Posts: 130

Re: Graphical login without any DM

Because they are all that bad. I don't want one extra program to do this if I can do it without it.
And can I really do it without DM?

Offline

#4 2013-03-26 11:51:19

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Graphical login without any DM

it's either using a graphical login with a DM, or a text/console login with startx.

Maybe you should develop your own DM if none of the existing ones are to your liking ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2013-03-26 11:52:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Graphical login without any DM

WTH?  Why would you do that?

You can boot to mutli-user target and you'll be presented with a "fullscreen terminal" (getty on tty1) asking you to log in.  There is a simply wiki page on starting X from bashrc, so when you login on tty1, X will start for whichever user just logged in.

You say you don't want an extra program, but what you are suggesting would give the exact same experience as what I described, just with an extra program.

Your suggestion is adding a boatload of complexity ... for what?  To have scrollback ability, perhaps, in the terminal that you don't get to enter commands in anyways?

Last edited by Trilby (2013-03-26 11:53:37)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2013-03-26 12:08:27

eruditorum
Member
Registered: 2012-11-12
Posts: 130

Re: Graphical login without any DM

Just to see if that is possible smile

Trilby wrote:

You can boot to mutli-user target and you'll be presented with a "fullscreen terminal" (getty on tty1) asking you to log in.  There is a simply wiki page on starting X from bashrc, so when you login on tty1, X will start for whichever user just logged in.

That will be text-mode console. Xserver start also takes some time to load - it is not that fast.
Reason for trying to do this may also be that I want "full system" loaded before login.

Last edited by eruditorum (2013-03-26 12:13:51)

Offline

#7 2013-03-26 12:24:59

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Graphical login without any DM

eruditorum wrote:

That will be text-mode console. Xserver start also takes some time to load - it is not that fast.
Reason for trying to do this may also be that I want "full system" loaded before login.

That can be achieved by setting up systemd to boot into graphical.target , but make sure NO displaymanager is enabled.

This will start X, but still use a console login.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2013-03-26 18:33:05

eruditorum
Member
Registered: 2012-11-12
Posts: 130

Re: Graphical login without any DM

I enabled graphical.target, I don't have any display manager installed, but Xorg doesn't start at boot. So what you suggest does not work.

Last edited by eruditorum (2013-03-26 18:33:27)

Offline

#9 2013-03-26 18:51:49

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Graphical login without any DM

if you are the only user on the machine, you could then just start X on boot and get into a fully functional system with auto-login. That's what I do on my system.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2013-03-27 19:47:25

eruditorum
Member
Registered: 2012-11-12
Posts: 130

Re: Graphical login without any DM

it partially works with this service-file:

[Unit]
Description=Xorg
After=systemd-user-sessions.service

[Service]
ExecStart=/usr/bin/startx
Type=notify
NotifyAccess=all

[Install]
Alias=display-manager.service

and this /etc/X11/xinit/xinitrc:

#!/bin/sh

while true; do
  /usr/bin/urxvt -geometry 40x4+663+382 -e login
done

"Partially", because Xserver shuts down after some time.

Offline

#11 2013-03-28 11:25:21

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: Graphical login without any DM

Inxsible wrote:

if you are the only user on the machine, you could then just start X on boot and get into a fully functional system with auto-login. That's what I do on my system.


Out of curiosity, is it possible to start the machine, have it login automatically and then present you with a locked screen that you will have to ender your password to get going??

Offline

#12 2013-03-28 11:33:43

knopwob
Member
From: Hannover, Germany
Registered: 2010-01-30
Posts: 239
Website

Re: Graphical login without any DM

89c51 wrote:
Inxsible wrote:

if you are the only user on the machine, you could then just start X on boot and get into a fully functional system with auto-login. That's what I do on my system.


Out of curiosity, is it possible to start the machine, have it login automatically and then present you with a locked screen that you will have to ender your password to get going??

Depending on how you automatically start X you could just put your screen locker into your .xinitrc or add it to the autostart mechanism provided by your WM or DM.

Offline

Board footer

Powered by FluxBB