You are not logged in.

#1 2008-06-27 16:49:47

Berticus
Member
Registered: 2008-06-11
Posts: 731

Switching users (xmonad)

As the title states, I'll be using xmonad. Most people aren't quite accustomed to the interface - especially if they're coming from Ubuntu or Windows. So when people are over, I need a way for them to use my computer without me having to log out. I'm going to have LXDE with compiz-fusion so it looks all pretty and may possibly be able to convert Windows/Mac users as it has done in the past. I'll be setting up a guest account and everything for them.

But I don't want them to log me out or anything. So how would I let them switch users? I was thinking about using Xnest, but I thought that didn't allow accelerated graphics (id est compiz-fusion won't be able to do its "pretty" little thing). It doesn't necessarily need to be within a window, I just need to be able to switch back to my session.

Edit
Found this: http://bbs.archlinux.org/viewtopic.php?id=38184
So I guess it won't work with SLiM?

Last edited by Berticus (2008-06-27 17:12:24)

Offline

#2 2008-06-27 17:12:06

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Switching users (xmonad)

Start another Xorg on vc/8.
Maybe something like

su ___
Xorg :1 & (sleep 1; DISPLAY=:1 aterm) &

That second line I use often, it's very convenient.

Offline

#3 2008-06-27 17:14:16

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: Switching users (xmonad)

Oops, edit right after you posted...

Thanks, I'll give a go. I can change aterm to rxvt, xterm or whatever, right? Or is it something else I don't know?

Last edited by Berticus (2008-06-27 17:14:52)

Offline

#4 2008-06-27 18:30:50

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Switching users (xmonad)

You can go to VC2, login as the WIMP user, then "startx -- :1" or whatever display number is unused (it uses display 0 by default). Then you can switch between VC7 and VC8 (or however you have it set up) to switch between the comfy environment and the WIMP one.

Offline

#5 2008-06-27 23:24:56

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: Switching users (xmonad)

How would you go about switching? I was originally thinking about doing that, and ditching a display manager altogether. I'm actually not quite sure why I have a display manager, come to think of it. But anyway, I thought it would be a good idea to do startx in one vc, and then do Alt+F[1-9] and startx in another vc. Then all I would have to do is Alt+F[1-9] to any of the vc's and get the other desktop environment or window manager. The only issue would be if the wm/de took up Alt+F[1-9] keybindings, in which case I'd just change them. I thought it would work because it did with X's default window manager. However, I just tried it out with xmonad, and it didn't work out so swimmingly. Could be that I didn't set it to a different display (thought you needed a second monitor to do that).

Offline

#6 2008-06-27 23:51:35

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Switching users (xmonad)

hmm to switch VCs I use ctrl+alt+F#. That's the default setting on my install. I don't use a display manager though.

Offline

#7 2008-07-01 02:11:07

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: Switching users (xmonad)

so, peets' method works wonderfully. I have no doubt in my mind Procyon's method will work too. One question: if I use either xlock or xlockmore, will it lock only VC7 and allow users to use VC8? Or does it lock everything down?

Offline

#8 2008-07-01 05:02:28

jofa
Member
Registered: 2006-10-27
Posts: 32

Re: Switching users (xmonad)

pretty sure it'll only lock the X session you start it from.

Offline

#9 2008-07-01 23:59:26

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Switching users (xmonad)

If you want something a tiny bit more "automated" then take a look at qingy. It's an agetty replacement with login manager function, and it works per tty.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2008-07-02 01:53:25

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: Switching users (xmonad)

I don't remember, but there was something I didn't really like aboug qingy. Automation isn't really something I need. But I suppose I can take another look at it.

Offline

Board footer

Powered by FluxBB