[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2 xservers/display managers



Hello,

On Mon, May 19, 2014 at 8:11 PM, Richard Hector <richard@walnut.gen.nz> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 20/05/14 04:13, Ralph Katz wrote:
>> On 05/19/2014 08:20 AM, Richard Hector wrote:
>>> Hey all,
>>
>>> I'm wondering if it would help me to have 2 potentially
>>> simultaneous logins on my computer, one for private use and one
>>> for work (I'm working from home). That would give me 2 home
>>> directories, 2 icedove profiles etc etc.
>>
>>> To that end, does anyone know if it's possible to have 2
>>> instances of gdm (or whatever display manager) start at boot, so
>>> I can log in to them independently? Actually, I can't think of
>>> any reason it wouldn't be possible, so does anyone have any tips
>>> on how?
>>
>> Hi -- I can confirm this works on stable with xfce and lightdm to
>> do exactly that:
>>
>> ~$ sudo adduser richard-work
>>
>> Then ctrl-alt-F1 [F2, etc]; login as richard-work; Then ~$
>> DISPLAY=:1 startx -- :1    # launches your 2nd display manager
>> session
>>
>> Switch between X sessions with ctrl-alt-F7 / F8 keys (for me).
>
> startx does indeed do it, thanks - though I don't need to specify the
> DISPLAY variable; it just works if I run startx as my other user.
>
> So that proves that it is possible to get 2 X servers running.
>
> Next step, ideally, is to also have 2 display managers running -
> ideally gdm3, since that's what I've been using, but anything will do.
> Preference for something that will let me choose my DE without mucking
> around with a .xsession file.
>
> Any suggestions?

Login into your session. Run gdmflexibleserver, and then search at
other virtual terminals (control-alt-Fx) to find your new gdm3
instance.

I'm not sure how it works (one user launching an greeter, which is
running as root)

Alternatively you can choose "change user from gnome menu" and you
will be in the same circunstances

Hope that helps

Regards,


Reply to: