r/linux • • Oct 15 '15

Systemd for Upstart users

[deleted] — view deleted post

35 Upvotes

91 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Oct 15 '15

Err, that usecase might not be as common as you think ;) Just "running multiple X sessions" would probably be less than 0.1% of users

2

u/[deleted] Oct 16 '15

Apparently, it's so common, they needed to tie gnome into logind, which is tied into systemd, to provide multiple "seats"...

Even though multiple seats has been working for quite some time prior to systemd, some people swear systemd is the only way to have multiple seats on a *NIX system...

2

u/[deleted] Oct 16 '15

Well if you got a hammer every problem looks like a nail. It is nice to have every group of apps nicely put into a cgroup but the complexity systemd adds makes it a hell lot of harder to debug

-1

u/teh_kankerer Oct 15 '15 edited Oct 15 '15

If it was that uncommon they would not have by default typically set out f7-f12 out just for that.

I mean, dbus can spawn multiple session busses for exactly that reason.

3

u/[deleted] Oct 15 '15

I haven't seen any distro that by default runs multiple X servers on F7-12, which one you are using.

And it is on F7 because traditionally F1-6 were for text consoles so it was "first one free". F12 was sometimes used for permanent "system" log

1

u/teh_kankerer Oct 15 '15

I haven't seen any distro that by default runs multiple X servers on F7-12, which one you are using.

Pretty much every one does it, it puts them on F7-F12 when you start one. Some distros by default have a "display manager" or whatever it's called rigged to start an X server by default on bootup in which case it'll be on F7, but if you start another one it'll be on F8.

I always thought F1 to F6 are used for text consoles to keep F7-F12 for X servers.

4

u/[deleted] Oct 15 '15

Nope, X just picks up first free one, if you removed F2-6 it would start on F2.

And no, most people do not start a second X server ;p

0

u/teh_kankerer Oct 15 '15

Nope, X just picks up first free one, if you removed F2-6 it would start on F2.

I know that, I mean they by default do not start a GETTY on anything higher than 6 to leave room for 6 X servers.

And no, most people do not start a second X server ;p

Then how do they maintain two different login sessions when they say want to test something without screwing their main one up?

3

u/[deleted] Oct 15 '15

Then how do they maintain two different login sessions when they say want to test something without screwing their main one up?

The answer is: they dont ;]

I'm not saying your use case is not useful, but only case I've seen where multiple X servers were used was driving multiple monitors that displayed unrelated stuff (dashboard for monitoring)

-1

u/teh_kankerer Oct 15 '15

The answer is: they dont ;]

Sounds like a weird idea, you probably don't want to log out of your X session just to test a change to your .xinitrc

2

u/[deleted] Oct 15 '15

Yeah they do that in GNOME/Unity/XFCE/KDE control panel

Like I said, probably less than 1% needs that, and even if you use fancy setup like i3wm, well, even i3wm have reload

-1

u/teh_kankerer Oct 15 '15

Yeah they do that in GNOME/Unity/XFCE/KDE control panel

How do any of those test a .xinitrc?

Like I said, probably less than 1% needs that, and even if you use fancy setup like i3wm, well, even i3wm have reload

That doesn't re-run the xinitrc which requires that you close everything you are doing, seems like a bad idea.

2

u/wjohansson Oct 16 '15

Then how do they maintain two different login sessions when they say want to test something without screwing their main one up?

Xnest or Xephyr

0

u/teh_kankerer Oct 16 '15

Seems like a poor man's test, as far as I know neither uses graphics acceleration properly and it runs in a smaller resolution.

Seriously, the simplest way to get a nigh perfect test condition is just hitting mod4+f2, logging in and typing startx.