You are not logged in.

#1 2011-02-05 01:21:03

fwin
Member
Registered: 2011-02-05
Posts: 14

[SOLVED]running multiple X sessions

Hi everyone,

I am trying to run multiple x sessions and I am using the command:


startx -- :(whatever screen)

After starting two sessions, one in screen 0 and the otherone in screen 1, the programs that I try to run on screen 1 are executed in screen 0. I tried using screens 1 and 2 or 2 and 3 and the same thing happens.   I would really appreciate any help with this issue.

Thanks in advance!!

Last edited by fwin (2011-02-08 22:17:34)

Offline

#2 2011-02-05 04:57:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]running multiple X sessions

fwin wrote:

the programs that I try to run on screen 1 are executed in screen 0

How exactly do you execute the programs?
https://wiki.archlinux.org/index.php/Ga … e_X_server

Offline

#3 2011-02-05 06:44:40

fwin
Member
Registered: 2011-02-05
Posts: 14

Re: [SOLVED]running multiple X sessions

Thanks for replying karol,

I am using fluxbox, so to execute the programs I just open the menu on screen 1 and I click on it. After that the program is opened in screen 0.  I think I have another issue going on because I just did another test where I just open one screen, any screen and it automatically opens screen 0.

In other words if I do this:

startx -- :3

and then:

ctrl+alt+f10


there is nothing in screen 3, only in screen 0 (which is ctrl+alt+f7)

I don't know what is happening I am going to have to read the beginers guide again I may have missed something. By the way is it possible to open different x sessions with the same user? or does it have to be a different user for each x session?

Last edited by fwin (2011-02-05 06:46:03)

Offline

#4 2011-02-05 06:59:14

Dannny
Member
From: New Jersey
Registered: 2009-12-28
Posts: 20

Re: [SOLVED]running multiple X sessions

Is your xinitrc correctly configured?
Try executing a program in the new x session

$ startx /usr/bin/xterm -- :1

Dannny


Please put your pants back on, man, I feel weird having to ask twice.

Offline

#5 2011-02-05 06:59:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]running multiple X sessions

'startx -- :3' means a separate X session, not necessarily 'ctrl+alt+f10'. It depends on how many console logins do you have - I have 3 instead of the default 6

c1:2345:respawn:/sbin/mingetty --autologin karol tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
#c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
#c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
#c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

and on my computer 'startx' goes to ctrl+alt+f4 because it's the first one free (as I have F1-F3 occupied by the consoles).

If you do 'startx -- :3' it will show on the first empty "slot", whether it will be F2 or F10 depends on your setup.

Offline

#6 2011-02-05 07:07:13

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [SOLVED]running multiple X sessions


You're just jealous because the voices only talk to me.

Offline

#7 2011-02-05 07:21:46

fwin
Member
Registered: 2011-02-05
Posts: 14

Re: [SOLVED]running multiple X sessions

karol,


yes you are right it goes to the first free "ctrl+alt+f ", I just learned something new!


Danny,

yes i think the .xinitrc is correctly configured according to the beginners guide is supposed to have one line only, and that is:

exec startfluxbox

I also tried:

$ startx /usr/bin/xterm -- :1

and  yes only the xterm terminal is sent to screen 1, but what i want to do is send the whole window manager to screen 1 and be able to do different stuff there. For example watch a movie in screen 0 and then check email in screen 1.

moetunes,

i read your link and yes it appears to be the same issue, I also saw a comment there by you where you mention that this problem made you change window manager, what do you use now? If fluxbox has issues then I would like to try something else.

Last edited by fwin (2011-02-05 07:27:33)

Offline

#8 2011-02-05 12:01:59

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [SOLVED]running multiple X sessions

@fwin as the last post in that link says the git version of fluxbox has fixed the issue. Fluxbox is just very slow at making new stable releases so I moved on. I use dwm now as it is a little lighter on resources and during my search for a replacement wm I came to like the way dynamic tilers work.


You're just jealous because the voices only talk to me.

Offline

#9 2011-02-05 19:42:02

fwin
Member
Registered: 2011-02-05
Posts: 14

Re: [SOLVED]running multiple X sessions

moetunes,

I am going to install the git version, but I have the following questions:

1. will this reset all my menus, and customizations that I have done?

2. do i install the git version like this http://fluxbox-wiki.org/index.php/Git_-_using     


ARE THE STEPS SHOWN BELOW THE ONES I AM SUPPOSED TO FOLLOW BEFORE I BUILD FROM SOURCE? :

To get your very own copy of the whole fluxbox repository (including the complete history) you have to clone the repository:

$ git clone git://git.fluxbox.org/fluxbox.git fluxbox.git

After this step you can cut off the network, you can develop completely without any connection to the world. To keep in sync with the latest "official" code just do

$ cd fluxbox.git
$ git pull

Last edited by fwin (2011-02-05 19:58:14)

Offline

#10 2011-02-06 03:47:57

Dannny
Member
From: New Jersey
Registered: 2009-12-28
Posts: 20

Re: [SOLVED]running multiple X sessions

http://aur.archlinux.org/packages.php?ID=15047
It shouldn't overwrite customized configuration files, but you may want to back them up, just in case.

Dannny


Please put your pants back on, man, I feel weird having to ask twice.

Offline

#11 2011-02-06 06:27:31

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [SOLVED]running multiple X sessions

fwin
Go with what Danny says - I know nothing about the git version. It was just easier to find a better supported window manager in my opinion. More then two years between releases is a bit slack but they have their reasons apparently. Fluxbox has always been well written so I have faith the git version should be fine.


You're just jealous because the voices only talk to me.

Offline

#12 2011-02-07 08:19:32

fwin
Member
Registered: 2011-02-05
Posts: 14

Re: [SOLVED]running multiple X sessions

I solved the problem by just switching to OPENBOX this WM is great, I just finished customising it to my needs, now I can do several x sessions at a time.  The next step is to setup and configure the wireless card that I have, if I get stuck I will come back and post a new thread.  Thanks to everyone for the help!!



How do I mark this as SOLVED?

Last edited by fwin (2011-02-07 08:22:04)

Offline

#13 2011-02-07 08:39:31

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: [SOLVED]running multiple X sessions

fwin wrote:

I solved the problem by just switching to OPENBOX this WM is great, I just finished customising it to my needs, now I can do several x sessions at a time.  The next step is to setup and configure the wireless card that I have, if I get stuck I will come back and post a new thread.  Thanks to everyone for the help!!



How do I mark this as SOLVED?

Edit your first post and change the title.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB