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

Re: 2 xservers/display managers



On 20/05/14 10:05, Javier Barroso wrote:
> 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.

Interesting - gdmflexiserver (which I assume is what you meant) does odd
things - it pops up a new thing that looks like gdm, which requires me
to type my password to get back to where I was ... except that I don't
need to at all; I just hit ctrl-alt-f<n> and there I am.

Anyway, it seems I need to be logged in already to use that; I'd rather
have something that offers me multiple servers, perhaps by running
multiple gdms, before I've logged in.

> 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

Right, I think I've seen that working from gnome, which is fine if all
my sessions will always run gnome. I'm currently running XFCE, however,
and don't have that option on my logout/restart dialog.

Richard



Reply to: