You are not logged in.
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
I think you just decribed what a display manager does.
Can you please tell us why you don't want to install a display manager? That will help us give you advice.
Offline
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
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
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
Just to see if that is possible
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
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
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
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.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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
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
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