You are not logged in.

#1 2011-08-04 23:31:44

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Display Managers, How Necessary Are They?

Hello everyone. I decided to redo my laptop a few days ago, and started to think about display managers. Mainly, I was thinking about which display manager to use (gdm or slim) for an XFCE-based Arch install, and I started to ask myself, why even install one at all? I'm very proficient with the command line, so I started to wonder if the reason I use a display manager in the first place is possibly because I'm a creature of habit.

So, what are your opinions or experiences of operating without a display manager (using startx whenever you want a GUI) rather than installing a display manager at all? Are there any caveats to not having a DM, or maybe they provide something valuable I'm forgetting about? I'm considering setting up my laptop with XFCE and no display manager to see how that would work. Maybe it's not really necessary for me.

Note: I hope I posted this in the right place, it's more of an opinion post than requesting help.

Last edited by jlacroix (2011-08-04 23:32:47)

Offline

#2 2011-08-04 23:33:22

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

Re: Display Managers, How Necessary Are They?

not necessary at all. I haven't used one ever on Arch.


Forum Rules

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

Offline

#3 2011-08-04 23:36:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Display Managers, How Necessary Are They?

Inxsible wrote:

not necessary at all. I haven't used one ever on Arch.

+1

You don't even need startx but it's pretty handy.

Offline

#4 2011-08-04 23:37:07

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: Display Managers, How Necessary Are They?

karol wrote:
Inxsible wrote:

not necessary at all. I haven't used one ever on Arch.

+1

You don't even need startx but it's pretty handy.

What do you do instead?

Offline

#5 2011-08-04 23:43:25

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: Display Managers, How Necessary Are They?

I don't use one either, but some others seem to like cdm.

Offline

#6 2011-08-04 23:56:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Display Managers, How Necessary Are They?

jlacroix wrote:
karol wrote:
Inxsible wrote:

not necessary at all. I haven't used one ever on Arch.

+1

You don't even need startx but it's pretty handy.

What do you do instead?

I have

x:5:respawn:/bin/su - -- karol -l -c '/usr/bin/xinit -- /usr/bin/X -nolisten tcp :0 </dev/null >/dev/null 2>&1'

in my /etc/inittab. It's a slight modification of https://wiki.archlinux.org/index.php/St … .2Finittab - w/o the startx part.
Instead of

     ├─login───bash───startx───xinit─┬─.xinitrc───dwm───firefox───23*[{firefox}]
     │                               └─X

I get

     ├─su───bash───xinit─┬─.xinitrc───dwm───firefox───23*[{firefox}]
     │                   └─X

(pstree output)

Not sure if it's worth the hassle ;P

Last edited by karol (2011-08-04 23:57:28)

Offline

#7 2011-08-04 23:57:17

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Display Managers, How Necessary Are They?

Did you try this yet?
https://wiki.archlinux.org/index.php/Start_X_at_boot

Edit: karol beat me to it

Last edited by skunktrader (2011-08-04 23:58:37)

Offline

#8 2011-08-05 00:04:27

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

Re: Display Managers, How Necessary Are They?

I have this:

x:5:once:/bin/su inxs -l -c '/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1'

But startx and xinit, I believe are both from the same package. xorg-xinit. So it won't save you any diskspace. But one process less, I guess


Forum Rules

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

Offline

#9 2011-08-05 00:36:54

hauzer
Member
From: Belgrade, Serbia
Registered: 2010-11-17
Posts: 279
Website

Re: Display Managers, How Necessary Are They?

I use SLiM, it's just nice to have a greeting screen, although in Windows I always set up autologin, so that couldn't be a habit from there. I don't know.. Maybe I'll just kill SLiM for a while and see how it'll go.


Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

Offline

#10 2011-08-05 02:15:18

throdon
Member
Registered: 2008-07-21
Posts: 13

Re: Display Managers, How Necessary Are They?

I feel more like a hacker (and I guess more secure without one) Nobody knows what to do if they start my computer up and I can t sign in for them.

Offline

#11 2011-08-05 04:00:38

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: Display Managers, How Necessary Are They?

throdon wrote:

I feel more like a hacker (and I guess more secure without one) Nobody knows what to do if they start my computer up and I can t sign in for them.

LOL, I was thinking something similar to that in the back of my mind.

I started creating an XFCE based image on my laptop, without a display manager, and I am liking it. I'm still trying to get Samba to work (I already created a topic about that) but so far I'm loving XFCE and having a blast playing around with it.

Offline

#12 2011-08-05 04:25:34

Brcher
Member
Registered: 2011-06-20
Posts: 36

Re: Display Managers, How Necessary Are They?

With startx (err, xinit) in your iniitab, wouldn't you be in trouble if an update messed up your (extremely temperamental) nvidia videocard?

I never saw the point in a display manager- you still have to put in your name/password (right?), so you aren't saving any time at startup. Unless s-t-a-r-t-x takes a long time to type I guess. And I recently gained an irrational hatred of them due to a certain prominent distro's auto-respawning display manager. (and confusing GUI once it started!) Also, you don't always need a to startx (what if you're just writing something or coding? No need to start up x over that...)

Offline

#13 2011-08-05 04:36:52

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Display Managers, How Necessary Are They?

We all know that display managers are not necessary, and are largely deemed bloat. No point in echoing that.
The question is, do they provide any real advantage? Or, by comparison, is there any disadvantage of the startx/xinit procedure?


This silver ladybug at line 28...

Offline

#14 2011-08-05 04:49:03

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Display Managers, How Necessary Are They?

I use the mingetty auto-login feature, as my laptop's locked down in the BIOS.  That avoids the problem of allowing someone to login at the DM screen, and prevents them from gaining root access with any live media.  I suppose I should encrypt my home folder too, since even though the machine's a brick to anyone who steals it the drive's still accessible, but I rarely take it with me anywhere it might be snagged so I've procrastinated.

Offline

#15 2011-08-05 04:52:16

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Display Managers, How Necessary Are They?

So your BIOS lockdown isn't something that can be cleared by resetting CMOS? Nice, but god forbid you forget that password.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#16 2011-08-05 05:59:21

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Display Managers, How Necessary Are They?

alphaniner wrote:

So your BIOS lockdown isn't something that can be cleared by resetting CMOS? Nice, but god forbid you forget that password.

You probably could actually open the thing and manually perform a BIOS reset, but really: how much effort is a thief gonna go through for it?  Between model-specific research and the time and tedium just to pawn it for 50 bucks--hell, you might as well just get a job with a steady paycheck.  While thieves likely assume (mostly correctly I suspect) that the average person uses a simple password and not much else for security, they'd get my machine, have no idea what to do with it and toss it in the trash.  I'd get the last laugh in my own dorky, impotent way. tongue

Offline

#17 2011-08-05 06:59:09

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: Display Managers, How Necessary Are They?

I run slim as a daemon. We sometimes have power cuts, my computer restarts (happens often at night). Now I have a very loud NVIDIA gfx card, that needs X running to throttle down the fan. So, after a crash, I want X up, but after a crash I certainly don't want to be logged in automatically. I also find it less than comfortable working in a tty on this machine, I can't use the second monitor, I can either have KMS drivers or a silent gfx fan and the resolution doesn't fit with the nvidia drivers.

There are disadvantages of using startx from a tty:
1. One tty is blocked as long as you're in X.
2. Anyone with access to your computer can switch to that tty and zap your X with <C-c>. That alone is annoying enough to know...
3. ... but after that he has your login open unprotected. I know, anyone with physical access to a machine can do anything, but after someone broke into my system with a grub trick (or whatever), I usually have a chance to notice it.


Inxsible wrote:
x:5:once:/bin/su inxs -l -c '/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1'

So I got this right? It asks you for your login data and then starts x?

Offline

#18 2011-08-05 07:19:10

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Display Managers, How Necessary Are They?

Awebb wrote:

There are disadvantages of using startx from a tty:
1. One tty is blocked as long as you're in X.
2. Anyone with access to your computer can switch to that tty and zap your X with <C-c>. That alone is annoying enough to know...
3. ... but after that he has your login open unprotected. I know, anyone with physical access to a machine can do anything, but after someone broke into my system with a grub trick (or whatever), I usually have a chance to notice it.

You don't have to leave the login open. Just replace `startx' with:

startx &
logout

in ~/.bash_profile, for example. Works for me.


This silver ladybug at line 28...

Offline

#19 2011-08-05 09:43:01

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Display Managers, How Necessary Are They?

This is not really an Arch Discussion, moving to GNU/Linux.


ᶘ ᵒᴥᵒᶅ

Offline

#20 2011-08-05 12:43:50

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

Re: Display Managers, How Necessary Are They?

Awebb wrote:
Inxsible wrote:
x:5:once:/bin/su inxs -l -c '/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1'

So I got this right? It asks you for your login data and then starts x?

No. I login straight into my i3 wm. The good thing is, unless the thief is a linux junky, he isn't going to be able to do anything on login because everything is keybindings based on my setup. All you see is a screen session on desktop 1 big_smile


Forum Rules

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

Offline

#21 2011-08-05 13:01:07

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Display Managers, How Necessary Are They?

.jari//LOLI :: /home/jari :: branch: master? [16]
>> cat .bash_profile 
. $HOME/.bashrc

if [[ -z "$DISPLAY" ]] && [[ ! -a "/tmp/.X11-unix/X0" ]] && [[
"`whoami`" != "root" ]]; then
  /usr/bin/xinit -- /usr/bin/X -nolisten tcp :0 </dev/null >/dev/null 2>&1
  logout
fi

I use that

Offline

#22 2011-08-05 14:29:34

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: Display Managers, How Necessary Are They?

lolilolicon wrote:
startx &
logout

I was just hit by the obvious train, I guess ~.~
Thanks :-D

@Inxsible: :-)

Offline

#23 2011-08-05 14:40:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Display Managers, How Necessary Are They?

Brcher wrote:

With startx (err, xinit) in your iniitab, wouldn't you be in trouble if an update messed up your (extremely temperamental) nvidia videocard?

I never saw the point in a display manager- you still have to put in your name/password (right?), so you aren't saving any time at startup. Unless s-t-a-r-t-x takes a long time to type I guess. And I recently gained an irrational hatred of them due to a certain prominent distro's auto-respawning display manager. (and confusing GUI once it started!) Also, you don't always need a to startx (what if you're just writing something or coding? No need to start up x over that...)

I have two other consoles I can use if my X is having a bad day.
If I'm testing something, I can always disable init 5, boot to init 3 test, reboot and so on.

Offline

#24 2011-08-05 14:48:19

George.Harmony
Member
From: Off The Wire
Registered: 2010-04-30
Posts: 97

Re: Display Managers, How Necessary Are They?

xinit

All I've used for the last 2 years.

Last edited by George.Harmony (2011-08-05 14:50:08)


Desktop:  Compiz Stand Alone w/ Cairo Dock.
Laptop:    Pekwm w/ Tint2
Jukebox:   MPD w/ cli
Gateway: Vuurmuur w/dialog

Offline

#25 2011-08-06 01:34:34

bluepumpkin
Member
Registered: 2009-08-28
Posts: 58

Re: Display Managers, How Necessary Are They?

I have this in my .kshrc (I use openbsd's pdksh).

if [ "$TERM" = "linux" -a "`tty`" = "/dev/tty1" ]; then
        xinit
        exit 0
fi

Offline

Board footer

Powered by FluxBB