Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #161099

Re: Xorg replaces TTY1

From Vincent Lefevre <vincent@vinc17.net>
Newsgroups linux.debian.user
Subject Re: Xorg replaces TTY1
Date 2015-11-24 18:10 +0100
Message-ID <qypgn-2AY-29@gated-at.bofh.it> (permalink)
References (5 earlier) <qxJqN-iz-5@gated-at.bofh.it> <qxLLX-1Jb-13@gated-at.bofh.it> <qxMI2-2im-9@gated-at.bofh.it> <qxMRI-2AZ-5@gated-at.bofh.it> <qxNup-2QH-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2015-11-23 00:45:57 +0000, Brian wrote:
> On Sun 22 Nov 2015 at 19:00:36 -0500, The Wanderer wrote:
> 
> > On 2015-11-22 at 18:52, Chris Bannister wrote:
> > 
> > > On Sun, Nov 22, 2015 at 05:56:04PM -0500, The Wanderer wrote:
> > > 
> > >>> startx -- vt7
> > >> 
> > >> That requires specifying it by hand every time startx is run. As I 
> > >> indicated, that is unacceptable; I don't have to specify the VT
> > >> manually every time I lanch X now in order to get the current
> > >> behavior, and I shouldn't have to specify it manually at every
> > >> launch in order get that behavior after a change of the default.
> > >> 
> > >> Where/how would it be possible to specify this in a config file, so
> > >> that it can be set-and-forget if desired?
> > > 
> > > In .bashrc (if using bash)
> > > 
> > > alias startx="startx -- vt7"
> > 
> > While that would technically work, it's a bit of a kludge, and I'm not
> > fond of those. Perhaps I should have specified an _X-related_ config
> > file (by a definition in which xinit, including startx, qualifies as
> > being X-related).
> 
> Passing arguments to startx is X-related. It's the first time I've heard
> using a bash alias described as a "kludge".

Users tend to forget that they have aliases. One day, they want to
add other arguments, and things start to break because the order
of arguments matters, and they wonder why.

> Quoting:
> 
>   There are 2 reasons for this change:
> 
>   1) It is needed to make Xorg run without root rights

Do you mean that the user now needs to be root to do "startx -- vt7"?

>   2) The old behavior creates a new session-id (as returned by getsid()),
>      without registering it with PAM, this breaks session managers such
>      as systemd-logind.

Couldn't registering it with PAM have been a better solution?

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Xorg replaces TTY1 berenger.morel@neutralite.org - 2015-11-22 00:40 +0100
  Re: Xorg replaces TTY1 Bert Riding <reriding@xmission.com> - 2015-11-22 10:10 +0100
  Re: Xorg replaces TTY1 Felix Miata <mrmazda@earthlink.net> - 2015-11-22 14:50 +0100
    Re: Xorg replaces TTY1 John Hasler <jhasler@newsguy.com> - 2015-11-22 15:20 +0100
      Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-22 19:30 +0100
        Re: Xorg replaces TTY1 The Wanderer <wanderer@fastmail.fm> - 2015-11-22 20:20 +0100
          Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-22 21:30 +0100
            Re: Xorg replaces TTY1 The Wanderer <wanderer@fastmail.fm> - 2015-11-23 00:00 +0100
              Re: Xorg replaces TTY1 Chris Bannister <cbannister@slingshot.co.nz> - 2015-11-23 01:00 +0100
                Re: Xorg replaces TTY1 The Wanderer <wanderer@fastmail.fm> - 2015-11-23 01:10 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-23 01:50 +0100
                Re: Xorg replaces TTY1 Vincent Lefevre <vincent@vinc17.net> - 2015-11-24 18:10 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-24 19:10 +0100
                Re: Xorg replaces TTY1 Michael Biebl <biebl@debian.org> - 2015-11-24 21:20 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-24 21:50 +0100
                Re: Xorg replaces TTY1 Michael Biebl <biebl@debian.org> - 2015-11-24 22:20 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-24 23:40 +0100
                Re: Xorg replaces TTY1 Vincent Lefevre <vincent@vinc17.net> - 2015-11-25 09:40 +0100
                Re: Xorg replaces TTY1 Vincent Lefevre <vincent@vinc17.net> - 2015-11-25 09:40 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-25 14:00 +0100
                Re: Xorg replaces TTY1 Vincent Lefevre <vincent@vinc17.net> - 2015-11-25 15:50 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-25 19:50 +0100
                Re: Xorg replaces TTY1 Chris Bannister <cbannister@slingshot.co.nz> - 2015-11-27 06:30 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-27 13:20 +0100
                Re: Xorg replaces TTY1 Chris Bannister <cbannister@slingshot.co.nz> - 2015-11-28 09:20 +0100
                Re: Xorg replaces TTY1 Vincent Lefevre <vincent@vinc17.net> - 2015-11-28 11:20 +0100
                Re: Xorg replaces TTY1 Nicolas George <george@nsup.org> - 2015-11-28 11:50 +0100
                Re: Xorg replaces TTY1 Nicolas George <george@nsup.org> - 2015-11-28 11:50 +0100
                Re: Xorg replaces TTY1 Lisi Reisz <lisi.reisz@gmail.com> - 2015-11-28 13:30 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-28 14:10 +0100
                Re: Xorg replaces TTY1 Lisi Reisz <lisi.reisz@gmail.com> - 2015-11-28 16:00 +0100
                Re: Xorg replaces TTY1 Lisi Reisz <lisi.reisz@gmail.com> - 2015-11-28 11:50 +0100
                Re: Xorg replaces TTY1 Lisi Reisz <lisi.reisz@gmail.com> - 2015-11-28 11:50 +0100
                Re: Xorg replaces TTY1 Random832 <random832@fastmail.com> - 2015-11-30 17:40 +0100
                Re: Xorg replaces TTY1 John Hasler <jhasler@newsguy.com> - 2015-11-30 18:10 +0100
                Re: Xorg replaces TTY1 "Neal P. Murphy" <neal.p.murphy@alum.wpi.edu> - 2015-11-30 19:00 +0100
                Re: Xorg replaces TTY1 John Hasler <jhasler@newsguy.com> - 2015-11-30 19:20 +0100
                Re: Xorg replaces TTY1 Chris Bannister <cbannister@slingshot.co.nz> - 2015-11-28 16:30 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-28 18:10 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-28 18:50 +0100
                Re: Xorg replaces TTY1 The Wanderer <wanderer@fastmail.fm> - 2015-11-27 15:20 +0100
                Re: Xorg replaces TTY1 Vincent Lefevre <vincent@vinc17.net> - 2015-11-27 17:50 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-27 19:20 +0100
                Re: Xorg replaces TTY1 The Wanderer <wanderer@fastmail.fm> - 2015-11-27 21:10 +0100
                Re: Xorg replaces TTY1 Felix Miata <mrmazda@earthlink.net> - 2015-11-28 10:30 +0100
              Re: Xorg replaces TTY1 Marc Shapiro <marcnshap@gmail.com> - 2015-11-24 05:10 +0100
                Re: Xorg replaces TTY1 Brian <ad44@cityscape.co.uk> - 2015-11-24 15:20 +0100
                Re: Xorg replaces TTY1 Marc Shapiro <marcnshap@gmail.com> - 2015-11-24 16:20 +0100

csiph-web