Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-22 Thread yudi v
I just realized that I have been launching X session as root, how to
launch a new X session without using elevated privileges.


-- 
Kind regards,
Yudi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CACo--msao5=go5kgjqbvfcbmqlkvwe1o63gcsig9emiabss...@mail.gmail.com



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-22 Thread Tony Baldwin
On Wed, Feb 22, 2012 at 07:00:28PM +1000, yudi v wrote:
 I just realized that I have been launching X session as root, how to
 launch a new X session without using elevated privileges.

Don't login to your shell as root, just as $user,
then it's the same:
startx

./tony
-- 
http://www.tonybaldwin.me
all tony, all the time!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20120222151813.ga28...@deathstar.hsd1.ct.comcast.net



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-22 Thread Wayne Topa

On 02/21/2012 09:05 PM, yudi v wrote:

The OP didn't, I think, specify that he wants two X sessions with the
same user.


Yes that is exactly right, I an trying to use two X sessions under one user.



You might want something like this...

In my .bashrcx()

x()
{
  D=x
  for i in `seq 0 4`;do if [ ! -f /tmp/.X${i}-lock ]; then D=$i; 
break; fi; done

  if [ ${D} = x ]; then
echo No free virtual terminal
  else
if [ $# -lt 1 ];
  then /usr/bin/startx -- :${D} -depth 24 -dpi 96 2 ~/.X.err  
~/.X.out  
  else /usr/bin/startx -- :${D} -depth $1 -dpi 96  2 ~/.X.err 
 ~/.X.out  

fi;
  fi
}

Modify to suit your needs.

WT



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f45083b.1080...@gmail.com



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-22 Thread yudi v

 Don't login to your shell as root, just as $user,
 then it's the same:
 startx

Ok I cannot launch X session from tty7, default console, as the normal
user. But if I change the allowed_users value in
/etc/X11/Xwrapper.config file from console to anybody, I can
launch it from tty7.

From what  I understand this is a security risk to have anybody launch
X, therefore left it as console.

the only way I can launch a separate X session is to first log into
another console first and then launch X. This works without any issue.

I am guessing the default tty is signed into as root. Can someone confirm this?

-
Kind regards,
Yudi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CACo--mvjULQeVQ=8+=g+wpgdys1+z7wjy+c2h4m6b9e4gf7...@mail.gmail.com



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-22 Thread Marc Shapiro

On 02/22/12 19:15, yudi v wrote:


Don't login to your shell as root, just as $user,
then it's the same:
startx


Ok I cannot launch X session from tty7, default console, as the normal
user. But if I change the allowed_users value in
/etc/X11/Xwrapper.config file from console to anybody, I can
launch it from tty7.


From what  I understand this is a security risk to have anybody launch

X, therefore left it as console.

the only way I can launch a separate X session is to first log into
another console first and then launch X. This works without any issue.


This is what you want it to do.  Normally, you log in to a terminal 
(probably vt1) and then you run startx.  This starts X in vt7.  If you 
then log into terminal 2 and run startx -- :1 you will get a new session 
in vt8.  You can use ctl-alt-F7 and ctl-alt-F8 to switch between them. 
As I undertand it, you do not want to be in vt7 (or anything higher than 
vt6) when you run the startx command.


Marc


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f45e802.7020...@gmail.com



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread Marc Shapiro

On 02/20/12 21:33, yudi v wrote:

Hi all,

I am trying to get gnome (default in tty7) and xfce (in tty1) to run
at the sametime.
I got as far as launching another x server session and xfce4 with the
following command:

startx startxfce4 -- :1

There are couple of issues I am trying to resolve:

1. when I switch back to tty7 X server session in tty1 terminates. How
to fix this?


The command that you are using is not starting the new xserver in tty1. 
 It is almost certainly in tty8, the next available tty session.  The 
:1 is display 1, not tty1.  I use aliases of startx such as:


startx -- :0 vt07
startx -- :1 vt08
startx -- :2 vt09

to start three separate x session on tty7, tty8 and tty9, respectively. 
 Note that these explicitly request a tty (vt) as well as a display 
session.  These are completely separate, started by separate users 
(myself, my wife and my daughter).  We all have our own startup programs 
and configurations (in our .xinitrc files).  These three sessions, and, 
recently, a fourth session on vt10 for testing purposes are all running 
simultanously.  This way, a simply ctl-alt-F7|F8|F9F10 gets any of us to 
our own session just as we left it.



2. all the start-up applications under Gnome also start in xfce, how
can I completely separate the environments. I would like to keep them
as independent as possible.





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f434fe4.4080...@gmail.com



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread Andrei POPESCU
On Ma, 21 feb 12, 15:33:15, yudi v wrote:
 
 1. when I switch back to tty7 X server session in tty1 terminates. How
 to fix this?

Marc already answered this.
 
 2. all the start-up applications under Gnome also start in xfce, how
 can I completely separate the environments. I would like to keep them
 as independent as possible.

Both environments look at ~/.config/autostart/ but at least Xfce 
(probably Gnome as well) has the possibility to configure which items 
should be started.

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread hvw59601

yudi v wrote:

Hi all,

I am trying to get gnome (default in tty7) and xfce (in tty1) to run
at the sametime.
I got as far as launching another x server session and xfce4 with the
following command:

startx startxfce4 -- :1

There are couple of issues I am trying to resolve:

1. when I switch back to tty7 X server session in tty1 terminates. How
to fix this?

2. all the start-up applications under Gnome also start in xfce, how
can I completely separate the environments. I would like to keep them
as independent as possible.




I used to do that for a multiseat setup but I did it with gdm and adding 
a second server:


...
snip
[server-Standard]
name=Standard server
command=/usr/bin/X1 :0 -layout X1 -dpi 110 -isolateDevice PCI:1:0:0 vt7
flexible=true

# Definition of the second X server.
[server-2nd]
name=2nd server
command=/usr/bin/X0 :1 -layout X0 -dpi 110 -isolateDevice PCI:0:8:0 vt51
flexible=true
...

Where X0 and X1 were softlinks to X.

Hugo



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/ji066d$o0u$1...@dough.gmane.org



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread Tony Baldwin
On Tue, Feb 21, 2012 at 07:28:44AM -0600, hvw59601 wrote:
 yudi v wrote:
 Hi all,
 
 I am trying to get gnome (default in tty7) and xfce (in tty1) to run
 at the sametime.
 I got as far as launching another x server session and xfce4 with the
 following command:
 
 startx startxfce4 -- :1
 
 There are couple of issues I am trying to resolve:
 
 1. when I switch back to tty7 X server session in tty1 terminates. How
 to fix this?
 
 2. all the start-up applications under Gnome also start in xfce, how
 can I completely separate the environments. I would like to keep them
 as independent as possible.

I'm just curious, after looking at this thread (but haven't tried).
Could one not start a first X session in one tty, 
then go to another (ctrol-alt-#) and login as another user and start a
different X session?
You know, gnu/linux being a multi-user OS and all.
Isn't that kind of how a terminal server works, sort of?
The OP didn't, I think, specify that he wants two X sessions with the
same user.

./tony
-- 
http://www.tonybaldwin.me
all tony, all the time!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20120221175409.gb3...@deathstar.hsd1.ct.comcast.net



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread Nate Bargmann
* On 2012 21 Feb 11:56 -0600, Tony Baldwin wrote:
 I'm just curious, after looking at this thread (but haven't tried).
 Could one not start a first X session in one tty, 
 then go to another (ctrol-alt-#) and login as another user and start a
 different X session?

Yes.  I've done it with KDE 3.5 and XFCE as switch user in each which
will spawn a new ?DM and allow another login.  The desktops can be
switched by using clt-alt-# (most often 7 and 8, but does move around
with some DMs such as gdm).

- Nate 

-- 

The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true.

Ham radio, Linux, bikes, and more: http://www.n0nb.us


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120221180108.ga17...@n0nb.us



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread hvw59601

Tony Baldwin wrote:

On Tue, Feb 21, 2012 at 07:28:44AM -0600, hvw59601 wrote:

yudi v wrote:

Hi all,

I am trying to get gnome (default in tty7) and xfce (in tty1) to run
at the sametime.
I got as far as launching another x server session and xfce4 with the
following command:

startx startxfce4 -- :1

There are couple of issues I am trying to resolve:

1. when I switch back to tty7 X server session in tty1 terminates. How
to fix this?

2. all the start-up applications under Gnome also start in xfce, how
can I completely separate the environments. I would like to keep them
as independent as possible.


I'm just curious, after looking at this thread (but haven't tried).
Could one not start a first X session in one tty, 
then go to another (ctrol-alt-#) and login as another user and start a

different X session?
You know, gnu/linux being a multi-user OS and all.
Isn't that kind of how a terminal server works, sort of?
The OP didn't, I think, specify that he wants two X sessions with the
same user.



Works like a charm: one user VT7 other user VT8. If you get rid of 
consolekit those numbers don't change. But how much nicer it would be if 
Linux would be truly multiseat: each user his own monitor/keybd/mouse.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/ji0n1c$8td$1...@dough.gmane.org



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread yudi v

 The command that you are using is not starting the new xserver in tty1.  It
 is almost certainly in tty8, the next available tty session.  The :1 is
 display 1, not tty1.  I use aliases of startx such as:

I first log on to tty1 and then run the command: startx startxfce4 -- :1


-- 
Kind regards,
Yudi


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caco--munvkcbndvjtrj1uykrisgtsy_uruqtxztjxv3w8jt...@mail.gmail.com



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread yudi v
 The OP didn't, I think, specify that he wants two X sessions with the
 same user.

Yes that is exactly right, I an trying to use two X sessions under one user.

-- 
Kind regards,
Yudi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caco--mujdayacb-rjx8hez0vvwf63sntamjx9qesu9rqdns...@mail.gmail.com



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread Marc Shapiro

On 02/21/12 09:54, Tony Baldwin wrote:

On Tue, Feb 21, 2012 at 07:28:44AM -0600, hvw59601 wrote:

yudi v wrote:

Hi all,

I am trying to get gnome (default in tty7) and xfce (in tty1) to run
at the sametime.
I got as far as launching another x server session and xfce4 with the
following command:

startx startxfce4 -- :1

There are couple of issues I am trying to resolve:

1. when I switch back to tty7 X server session in tty1 terminates. How
to fix this?

2. all the start-up applications under Gnome also start in xfce, how
can I completely separate the environments. I would like to keep them
as independent as possible.


I'm just curious, after looking at this thread (but haven't tried).
Could one not start a first X session in one tty,
then go to another (ctrol-alt-#) and login as another user and start a
different X session?
You know, gnu/linux being a multi-user OS and all.
Isn't that kind of how a terminal server works, sort of?
The OP didn't, I think, specify that he wants two X sessions with the
same user.


Yes.  See my earlier post.  That is exactly what I do.  In each of the 
accounts on my box startx is aliased to one of the commands that I 
mentioned.  This starts up a new X session on the specified vt.  By 
specifying the vt in the startx command I know that my session is always 
on vt7, my wife's is always vt8, and my daughter's is always on vt9.  A 
quick ctl-alt-F7|F8|F9 gets whichever one of us is at the computer to 
our session, leaving the others intact with all programs running, 
browser tabs open, etc.


Marc


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f4454ed.1080...@gmail.com



Re: Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-21 Thread yudi v
 Yes.  See my earlier post.  That is exactly what I do.  In each of the
 accounts on my box startx is aliased to one of the commands that I
 mentioned.  This starts up a new X session on the specified vt.  By
 specifying the vt in the startx command I know that my session is always on
 vt7, my wife's is always vt8, and my daughter's is always on vt9.  A quick
 ctl-alt-F7|F8|F9 gets whichever one of us is at the computer to our session,
 leaving the others intact with all programs running, browser tabs open, etc.

Ok I figured out where I was making the mistake, instead of launching
X session from tty7 I was first logging in to tty1 and then launching
an X session.

Can you explain why it closes the session when  I return back to tty7
but it will not when I launch an X session from the console in tty7.

When using xfce, I cannot launch the Terminal due to an input/output error?
What might be causing this?

Thanks once again for posting the instructions.

-- 
Kind regards,
Yudi


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caco--mujfyx_sthvnl9trt-yb+rjt22hnetwtmg9jkkqjeo...@mail.gmail.com



Simultaneous desktop environments (Gnome and xfce) in two X server sessions.

2012-02-20 Thread yudi v
Hi all,

I am trying to get gnome (default in tty7) and xfce (in tty1) to run
at the sametime.
I got as far as launching another x server session and xfce4 with the
following command:

startx startxfce4 -- :1

There are couple of issues I am trying to resolve:

1. when I switch back to tty7 X server session in tty1 terminates. How
to fix this?

2. all the start-up applications under Gnome also start in xfce, how
can I completely separate the environments. I would like to keep them
as independent as possible.


-- 
Kind regards,
Yudi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caco--ms2zwfrzxczs4tn8wknyxh0jjjzo6rhqbyw7ykxrkn...@mail.gmail.com