LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-27-2007, 09:55 AM   #1
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
Enlightenment: switch users like KDE?


Okay, first the question, then the story behind the question, in case you're pressed for time:

Is there a way to switch users in Enlightenment DR17, like the "Lock session and start new" option in KDE?

Story behind the question:

I usually use DR17 on Slackware at work. I'm going to transition our family's home computer from PCLinuxOS to Slackware and one of the things that we do all the time is switch users. My wife will be using the computer, I'll come along, switch users and then we can switch back: it's "wicked convenient" as they might say here in New England. Since I would prefer to be using DR17, there has to be a way for us to switch back in order for that to be feasible.

Just because Entrance gave me some trouble, I've decided to try out KDE for a while on my computer at work: I've tried out every other window manager for at least a day...time to go download DR16...

Talk to you soon,
Joel
 
Old 04-27-2007, 10:06 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8098Reputation: 8098Reputation: 8098Reputation: 8098Reputation: 8098Reputation: 8098Reputation: 8098Reputation: 8098Reputation: 8098Reputation: 8098Reputation: 8098
You have to be aware that every new concurrent X session gets a new virtual terminal. So when you "switch user" what happens is that the new session appears at "vt8" while the original session remains at "vt7" - and the next person to do a "switch user" gets the "vt9".

Without a menu entry to switch back and forth like KDE has, all you need to do is just press <CTRL><ALT>F7 to get back to virtual terminal 7. The same goes for all the other X sessions - try <CTRL><ALT>F9 or any other function key (numbers counting upward from 7) to find other running X sessions.

Eric
 
Old 04-27-2007, 12:12 PM   #3
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Alien Bob

Without a menu entry to switch back and forth like KDE has, all you need to do is just press <CTRL><ALT>F7 to get back to virtual terminal 7.

Eric
Thanks for your reply.

The question is how do I start that new session? If I'm in a session in E17, and I press CTL-ALT-F8, I just get a blank screen (of course), because there's no X session running on VT8. I thought I could solve this by adding another "x" row to the end of inittab, but I was mistaken -- that's not how it works.

Thanks,
Joel
 
Old 04-27-2007, 01:16 PM   #4
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
poking my head in here.. Im curious

I just tried from XFCE4.4:

ctrl-alt-F2
login
chvt8 # gives me a black screen
killall -SIGHUP xinit
startxfce4 vt8

I also triedd
startxfce4 vt7 -sharevts

trouble is that Xserver is already running, so the real question is how to add an Xserver client (for user#2) on the local machine, while allowing user#1's WM to retain the user#1's workspace...

so I tried:

startx&
then ctrl+alt+F1, and startx& again.. no good

sorry not an answer.. but I think the solution lies in some sequence of ctrl+alts, vi xinit and chvt..

Last edited by bioe007; 04-27-2007 at 01:44 PM.
 
Old 04-27-2007, 01:49 PM   #5
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Original Poster
Rep: Reputation: 31
Thanks for your reply.

I know this is possible by poking around with CLI (which I prefer), I think I'm looking for a "quick-and-dirty" as in "Is it there already?"

Thanks,
Joel
 
Old 04-27-2007, 03:02 PM   #6
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
Code:
 2498 ?        Ss     0:00 /usr/bin/kdm -nodaemon
 2510 tty7     SLs+   2:57  \_ /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/run/xauth/A
 2513 ?        S      0:00  \_ -:0
 5430 tty8     SLs+   0:01  \_ /usr/bin/X -br -nolisten tcp :1 vt8 -auth /var/run/xauth/A
 5431 ?        S      0:00  \_ -:1
 5435 ?        S      0:00      \_ /usr/bin/kdm_greet
this is the ps output, when i start a new seesion from kde's menu....
 
Old 04-27-2007, 03:10 PM   #7
chefkoch
LQ Newbie
 
Registered: Mar 2007
Posts: 19

Rep: Reputation: 0
startx :1 is usually enough.
 
Old 04-29-2007, 09:48 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I usually do CTL-ALT-F6 and then login and use 'startx -- :1', but this is still not exactly what you want. The question is what, if any, display manager are you using?
 
Old 04-29-2007, 02:20 PM   #9
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
Quote:
I know this is possible by poking around with CLI (which I prefer), I think I'm looking for a "quick-and-dirty" as in "Is it there already?"
so I guess with the answers above if enlightenment doesnt have it already then there is likely no quick&dirty way to do it. But it seems like you should be able to do it with some sort of script. I don't use enlightenment, but have you looked for a plugin or applet that has the capability?

another thought would be to look at the KDE source for managing sessions, if its all dependent on KDM? kde's login manager then maybe you could just use the KDM for runlevel 4 startup and make something from elightenment call it to switch users.

another nearly worthless 2c

 
Old 04-30-2007, 01:05 AM   #10
Nailbar
LQ Newbie
 
Registered: Apr 2007
Location: Finland
Distribution: Linux MINT 6
Posts: 12
Blog Entries: 1

Rep: Reputation: 0
If You are running runlevel 4, have You tried "kdmctl reserve" ?

I'm not entirely sure if that's the command but that's what I'm using to start a new session from Blackbox. Should pop you to a KDM login screen.
 
Old 04-30-2007, 09:08 AM   #11
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Original Poster
Rep: Reputation: 31
Hello Forum,

Thanks for the great suggestions: you're all very helpful.

I will try these.

Another thing I'm also trying is KDE itself I'm learning to enjoy it. I have it installed but have never really tried it out until now. I think I will be satisfied using KDE at home for at least a while.

To answer your questions:
1. I'm using KDM because I was using Entrance and it gave me some trouble.
2. There very well might be an applet to do this in enlightenment; it's hard to tell where they are taking it because making it "just like KDE" or "GNOME-esque" is not a goal of theirs -- I think that's cool, however it would be nice to have this feature...
3. Which I would definitely program myself; they'd probably do a better job, so I think I will just make the suggestion.

Thanks everybody,
Joel
 
Old 04-30-2007, 02:36 PM   #12
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
Does anyone know of a way to do this with XDM? I've been looking and can't find anything
 
Old 05-01-2007, 09:06 AM   #13
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Original Poster
Rep: Reputation: 31
I did

Code:
startx -- :1
and that worked just fine. I could probably code that up.

Joel
 
Old 05-01-2007, 10:46 AM   #14
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by trashbird1240
My wife will be using the computer, I'll come along, switch users and then we can switch back: it's "wicked convenient" as they might say here in New England.
Assuming that there are no privacy issues, why is switching users preferable to each user having their own virtual desktop(s)? Then you avoid the overhead of multiple X sessions.

Brian
 
Old 05-02-2007, 08:27 AM   #15
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Original Poster
Rep: Reputation: 31
Why switch users at all?

Quote:
Originally Posted by BCarey
Assuming that there are no privacy issues, why is switching users preferable to each user having their own virtual desktop(s)? Then you avoid the overhead of multiple X sessions.

Brian
Good Question Brian,

For a few reasons, it's better to have things divided up, all of them adding up to a big part of the beauty of a multi-tasking, multi-user system:
  1. I have different aesthetics about the desktop and how it affects the functionality of the computer. I mainly run terminal emulators and my favorite editor, XEmacs, in transparent windows or without scrollbars and frame borders.
  2. We both use KDE, but my KDE looks more like Afterstep and hers looks more like that other desktop we used to use. Her background is a rotating slideshow of pictures of our son, whereas mine is a neutral color background. I have gkrellm running -- it would just distract her.
  3. Applications behave differently under different users, and this is something we want. For example, our family's accounting spreadsheet has a particular color-code that my wife uses to keep track of things; I find it hard to look at. Another example is Firefox: my bookmarks and history stay on my side, and her bookmarks and history stay on her side.
  4. I tend to run lots of things on different desktops already.

Furthermore, I think she would find Enlightenment or even Fluxbox to be prohibitively confusing and she would rather spend her time getting stuff done than learning how to use the computer; I prefer a healthy mix of the two At the times when I want to use Fluxbox, Enlightenment, Afterstep or whatever I feel like that day, she might find it annoying.

Joel
 
  


Reply

Tags
kde, slackware, switch, users


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stuck in Enlightenment, cant switch over!! XeoNoX Linux - Newbie 10 08-26-2004 11:30 AM
Enlightenment as wm for KDE - does it possible? Bogdan Linux - Software 11 06-09-2003 04:17 PM
Switch Users in X ? CRego3D Linux - General 12 01-27-2003 06:14 AM
switch users within a script kilobravo Linux - General 4 01-14-2003 03:39 PM
Enlightenment in KDE Colonel Panic Linux - General 4 08-31-2001 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration