linux x11 ?

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
Sam111
Member
Member
Posts: 385
Joined: Mon Nov 03, 2008 6:06 pm

linux x11 ?

Post by Sam111 »

I have been playing around with x11 linux stuff.
I know ctrl+ alt+f1 ,2,.... etc get you to different console screens and f7- f12 allow you to have 6 different xsessions in theory so you can have 6 different desktops running per linux machine.

I have create a .xinitrc file and started a gui program with no windows manager then with one so you can move the windows around...etc

Tried many different windows managers / desktops gnome , kde ,..etc on X11 and much more

But I am wondering how I can start multiple xsession on a linux machine.
When ever I go to another console and try to start another x11 session with xinit I get

Code: Select all


Fatal server error:
Server is already active for display 0
	If this server is no longer running, remove /tmp/.X0-lock
	and start again.


Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 

 ddxSigGiveUp: Closing log

I have tried to change the display but that doesn't seem to work DISPLAY=0:1 2,3...etc
but nothing...

I am probably miss typing something or not setting something.
If anybody knows how to start multiple xsession with multiple different desktops like gnome on one , kde on another ,...etc

Please let me know
User avatar
turdus
Member
Member
Posts: 496
Joined: Tue Feb 08, 2011 1:58 pm

Re: linux x11 ?

Post by turdus »

xinit (as well as startx) is just a wrapper around the real server, X. See manual, eg. http://www.xfree86.org/4.2.0/X.7.html
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: linux x11 ?

Post by Brynet-Inc »

Seriously? Linux X11? It's just X. It runs anywhere.
turdus wrote:xinit (as well as startx) is just a wrapper around the real server, X. See manual, eg. http://www.xfree86.org/4.2.0/X.7.html
..and nobody uses the XFree86 implementation anymore.

http://www.x.org/releases/X11R7.6/doc/index.html
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Jezze
Member
Member
Posts: 395
Joined: Thu Jul 26, 2007 1:53 am
Libera.chat IRC: jfu
Contact:

Re: linux x11 ?

Post by Jezze »

Do you mean something like:

xinit ./mywm -display :1 -- :1 vt5

That should start your window manager (in this case called mywm) on tty5 and display 1
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
User avatar
Sam111
Member
Member
Posts: 385
Joined: Mon Nov 03, 2008 6:06 pm

Re: linux x11 ?

Post by Sam111 »

yup , thanks thats what I needed.
Also
startx -- :2 (,3,4...) work
User avatar
turdus
Member
Member
Posts: 496
Joined: Tue Feb 08, 2011 1:58 pm

Re: linux x11 ?

Post by turdus »

Brynet-Inc wrote:..and nobody uses the XFree86 implementation anymore.
Who cares? X specification is the same. That was the first result for googling "X server man".
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: linux x11 ?

Post by Brynet-Inc »

turdus wrote:
Brynet-Inc wrote:..and nobody uses the XFree86 implementation anymore.
Who cares? X specification is the same. That was the first result for googling "X server man".
Look harder next time.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
turdus
Member
Member
Posts: 496
Joined: Tue Feb 08, 2011 1:58 pm

Re: linux x11 ?

Post by turdus »

Brynet-Inc wrote:Look harder next time.
F*ckin' troll... YOU LOOK HARDER next time, before you write and make fool of yourself. X11 standard is a standard you know.

Tell me the difference between these manuals save default file path:
http://www.xfree86.org/current/Xserver.1.html
http://www.x.org/archive/X11R6.8.1/doc/Xserver.1.html

I help: nothing.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: linux x11 ?

Post by Brynet-Inc »

Again, you linked to outdated information for X11R6 instead of X11R7, the modular Xorg release.

There have been changes in both implementation and protocol (..which isn't relevant, as the protocol does not define the command-line arguments to the X server).
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: linux x11 ?

Post by Combuster »

turdus wrote:X11 standard is a standard you know.
X11 is a standardized protocol. Each of the many implementations is not a standard. Giving a Xfree86 manual to an X.org user is like telling a Mac user to use DOS instead.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
turdus
Member
Member
Posts: 496
Joined: Tue Feb 08, 2011 1:58 pm

Re: linux x11 ?

Post by turdus »

Brynet-Inc wrote:Again, you linked to outdated information
Really? Let me see.

http://www.x.org/archive/X11R6.8.1/doc/Xserver.1.html

Code: Select all

Options
Many X servers have device-specific command line options. See the manual pages for the individual servers for more details; a list of server-specific manual pages is provided in the SEE ALSO section below.

All of the X servers accept the command line options described below. Some X servers may have alternative ways of providing the parameters described here, but the values provided via the command line options should override values specified via other mechanisms.

:displaynumber
    The X server runs as the given displaynumber, which by default is 0. If multiple X servers are to run simultaneously on a host, each must have a unique display number. See the DISPLAY NAMES section of the X(7) manual page to learn how to specify which display number clients should try to use. 
http://www.x.org/releases/X11R7.6/doc/m ... er.1.xhtml

Code: Select all

OPTIONS
Many X servers have device-specific command line options. See the manual pages for the individual servers for more details; a list of server-specific manual pages is provided in the SEE ALSO section below.

All of the X servers accept the command line options described below. Some X servers may have alternative ways of providing the parameters described here, but the values provided via the command line options should override values specified via other mechanisms. 

:displaynumber
  The X server runs as the given displaynumber, which by default is 0. If multiple X servers are to run simultaneously on a host, each must have a unique display number. See the DISPLAY NAMES section of the X(7) manual page to learn how to specify which display number clients should try to use.

sarcasm
Oh my God, they're totally different!!! They do not match word by word at all !!!
/sarcasm
User avatar
turdus
Member
Member
Posts: 496
Joined: Tue Feb 08, 2011 1:58 pm

Re: linux x11 ?

Post by turdus »

berkus wrote:Looks like turdus have never used X, neither old nor the new modular xorg. He would've spotted the differences right away.
Mistaken, I'm using X for over a decade now on many different systems. I've used it even on VMS. That's why I'm sure as far as only display number concerned, no matter which revision or implementation is used. X11's display specification is standard, and in full form goes like this:
(host):(display number).(screen number)
That's why Xfree86, Xorg, Cygwin/X etc, R6 and R7 accept it in the same way. This hasn't changed since 1987. The correct information was in the link, and yes, I did not checked the url's version part, I checked what it says about display number which was appropriate, and not outdated. I would have checked the version if the question was about something more specific, but it was not. Period.

Cheers.
Post Reply