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


Groups > linux.debian.user > #212283

Re: x and virtual consoles

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: x and virtual consoles
Date 2019-08-06 00:10 +0200
Message-ID <yrTkZ-28N-11@gated-at.bofh.it> (permalink)
References <yruZj-3MD-5@gated-at.bofh.it> <yrJbX-4fE-1@gated-at.bofh.it> <yrSfg-1eb-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon 05 Aug 2019 at 21:56:55 (+0100), Ed wrote:
> On 2019-08-05 13:11+0200, deloptes wrote:
> > IMO you can not run multiple X sessions from the same user. I am not 
> > 100% sure, but I can imagine what would happen with the session 
> > manager.
> 
> I have done in the past, one 'ed' would run xfce and another would run 
> evilwm. However, the majority of use would be from 'ed' and a different 
> user account for working from home in.

Sure. This machine is running two X servers as me. As I don't want my
.xsession-errors files to be interleaved, I made one small change to
a system configuration file. In /etc/X11/Xsession I added the line
ERRFILE=$HOME/.xsession-errors-$(/bin/date +%Y%m%d%H%M%S)
but it does mean that I have to sweep them up. I had thought about
distinguishing them by the VC they started on, but haven't got
round to it. Everything else that requires distinguishing uses
$DISPLAY.

> > So if your first session is on vt7 (CTRL) ALT+F7 the next one will be 
> > on
> > (CTRL) ALT+F8.
> 
> This is what I think is expected now if you want tty1 and ctrl-alt-f1 to 
> match:
> 
>   /usr/bin/startx -display :1 -- :1 vt1

Perhaps this is all to do with your DM. I use startx, and since
stretch the Xserver runs "on top of" the VC that started it, and
as the user, not root. In the past, Xservers ran as root on VC7,
VC8, …

> > I have used this only with different users and from the login manager 
> > or
> > from the desktop by starting new user session.
> 
> How do you run two login managers though so that you can have two users 
> share the same computer without having to log out? In other words, 
> whilst I go and make dinner I want to allow someone else to sit here, 
> without having to shut applications down?
> 
> > Doing it from the same user makes no sense IMO. Why would you do this?

Different window managers and desktop configurations. But that's not
the point. It makes no sense to me *not* to be able to do it. It would
be like going back to non-reentrant code when ten instances of emacs
sessions would mean ten executables tying up memory.

> Well, in the weird times when I did, it was a different desktop 
> environment (evilwm for code, xfce for web browsing and mail). Avoids 
> bells and notifications from disturbing me. I'm not doing that these 
> days, now I just don't want to switch user spaces. If it auto-locked, 
> that'd be nice, too, I seem to remember that switching would auto-lock.

Cheers,
David.

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


Thread

x and virtual consoles Ed <ed-debian@s5h.net> - 2019-08-04 22:10 +0200
  Re: x and virtual consoles Cindy Sue Causey <butterflybytes@gmail.com> - 2019-08-05 00:10 +0200
  Re: x and virtual consoles nektarios <nektarios@mail.nektarioskatakis.xyz> - 2019-08-05 00:10 +0200
    Re: x and virtual consoles Cindy Sue Causey <butterflybytes@gmail.com> - 2019-08-05 00:40 +0200
    Re: x and virtual consoles Ed <ed-debian@s5h.net> - 2019-08-05 08:30 +0200
  Re: x and virtual consoles Felix Miata <mrmazda@earthlink.net> - 2019-08-05 02:10 +0200
    Re: x and virtual consoles Ed Neville <ed-debian@s5h.net> - 2019-08-05 08:30 +0200
  Re: x and virtual consoles Curt <curty@free.fr> - 2019-08-05 12:00 +0200
    Re: x and virtual consoles Ed <ed-debian@s5h.net> - 2019-08-05 23:00 +0200
  Re: x and virtual consoles deloptes <deloptes@gmail.com> - 2019-08-05 13:20 +0200
    Re: x and virtual consoles Ed <ed-debian@s5h.net> - 2019-08-05 23:00 +0200
      Re: x and virtual consoles David Wright <deblis@lionunicorn.co.uk> - 2019-08-06 00:10 +0200
        Re: x and virtual consoles Ed <ed-debian@s5h.net> - 2019-08-06 08:20 +0200
          Re: x and virtual consoles David Wright <deblis@lionunicorn.co.uk> - 2019-08-06 16:20 +0200
      Re: x and virtual consoles Andrei POPESCU <andreimpopescu@gmail.com> - 2019-08-06 08:10 +0200
        Re: x and virtual consoles Ed <ed-debian@s5h.net> - 2019-08-06 08:20 +0200
          Re: x and virtual consoles Curt <curty@free.fr> - 2019-08-06 09:40 +0200
            Re: x and virtual consoles deloptes <deloptes@gmail.com> - 2019-08-06 14:50 +0200
              Re: x and virtual consoles Curt <curty@free.fr> - 2019-08-06 15:30 +0200
                Re: x and virtual consoles Curt <curty@free.fr> - 2019-08-06 15:50 +0200
                Re: x and virtual consoles Gene Heskett <gheskett@shentel.net> - 2019-08-06 16:40 +0200
                Re: x and virtual consoles Ed Neville <ed-debian@s5h.net> - 2019-08-06 21:00 +0200
            Re: x and virtual consoles Marc Shapiro <marcnshap@gmail.com> - 2019-09-10 08:40 +0200
  Re: x and virtual consoles Curt <curty@free.fr> - 2019-08-05 13:40 +0200
    Re: x and virtual consoles Felix Miata <mrmazda@earthlink.net> - 2019-08-05 17:20 +0200
      Re: x and virtual consoles Ed <ed-debian@s5h.net> - 2019-08-05 19:20 +0200
      Re: x and virtual consoles Curt <curty@free.fr> - 2019-08-05 20:30 +0200

csiph-web