You are not logged in.

#1 2009-03-08 01:19:01

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

[SOLVED] multiple instances of X

is it possible to run more than one instance of X, like on VC8, VC9, etc?  what im trying to do is run kde in one, gnome in another, LXDE in the next etc.  dont ask why, i just want to lol.  so is that possible or not?

Last edited by grimrider (2009-03-08 02:08:34)

Offline

#2 2009-03-08 01:26:51

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

Re: [SOLVED] multiple instances of X

Xorg :1 & (sleep 4; DISPLAY=:1 xterm) &
Xorg :2 & (sleep 4; DISPLAY=:2 xterm) &
Xorg :3 & (sleep 4; DISPLAY=:3 xterm) &

And then in the xterm launch whatever starts the WM.

Offline

#3 2009-03-08 01:30:19

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: [SOLVED] multiple instances of X

Procyon wrote:

Xorg :1 & (sleep 4; DISPLAY=:1 xterm) &
Xorg :2 & (sleep 4; DISPLAY=:2 xterm) &
Xorg :3 & (sleep 4; DISPLAY=:3 xterm) &

And then in the xterm launch whatever starts the WM.

so would i launch this from VC1 when the system boots?  thnx for the quick reply btw

Offline

#4 2009-03-08 01:41:03

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

Re: [SOLVED] multiple instances of X

You can do that from within the first X, which is :0, by the way.

If you want to launch a bunch at start up, then you should start with
Xorg :0 & (sleep 4; DISPLAY=:0 xterm) &

And do replace xterm with whatever launches the WM too if you will do it often (when I start a new X/WM I prefer having a terminal first)

Note that you will skip stuff like xinitrc, but the DE takes care of that right.

Offline

#5 2009-03-08 01:45:18

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: [SOLVED] multiple instances of X

ok, so i wanted 4 different DE, at boot up i would do

Xorg :0 & (sleep 4; DISPLAY=:0 startkde) &
Xorg :1 & (sleep 4; DISPLAY=:1 <w/e for gnome>) &
Xorg :2 & (sleep 4; DISPLAY=:2 startlxde) &
Xorg :3 & (sleep 4; DISPLAY=:3 startxfce4) &

?

Offline

#6 2009-03-08 01:55:04

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

Re: [SOLVED] multiple instances of X

Looks good to me.

Can you try one out?

Offline

#7 2009-03-08 01:55:43

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: [SOLVED] multiple instances of X

yep, workin on it right now.  brb w/ results

Offline

#8 2009-03-08 02:06:14

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: [SOLVED] multiple instances of X

grimrider wrote:

yep, workin on it right now.  brb w/ results

works like a charm.  started them up in a wierd order, like kde in vc7, lxde in vc8, then gnome in vc9 and xfce in vc10, but i can live w/ that.  thanks for the help everyone.

Last edited by grimrider (2009-03-08 02:08:00)

Offline

#9 2009-03-08 02:11:22

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

Re: [SOLVED] multiple instances of X

Maybe you can put another sleep 1 in between to fix the order issue.

Offline

#10 2009-03-08 02:57:06

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: [SOLVED] multiple instances of X

haha u got 666 posts lol.  neways, like between the 2, or after the startkde?

Offline

Board footer

Powered by FluxBB