Re: Two X sessions on one machine???

2003-09-05 Thread Shantanu Mahajan
+-- KroNiC~BSD [freebsd] [04-09-03 09:36 IST]:
| Is it possible to have more that one X session running on the same
| machine? The problem is if i want to create a remote X connection to my
| linux machine via my Freebsd machine i have to kill the current running
| LOCAL X session first.then i can "from the freebsd machine" # X
| -query 192.168.0.6
| and get a X session on the linux machine.
| 
| On my Freebsd box, with a local X session , i would like to open a
| terminal ...aterm or xterm and then somehow in that terminal create a X
| session to the linux machine.
| 
| I have tried this but get the following error:
| 
| freeebsd# X -query 192.168.0.62
| 
| Fatal server error:
| Server is already active for display 0
| If this server is no longer running, remove /tmp/.X0-lock
| and start again.
| 
| 
| When reporting a problem related to a server crash, please send
| the full server output, not just the last messages.
| Please report problems to [EMAIL PROTECTED]
| 
| 
| 
| i assume the error is local because my current running local X session is
| on display 0 .
| 
| is it possible for me to do this as i would like to remotly connect to 3
| machines via X but still have use of my local machine
| 
| 
| Thanks in advance.
| -- 
|   KroNiC~BSD
|   [EMAIL PROTECTED]

startx -- :1

-- 
Regards,
Shantanu Mahajan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Two X sessions on one machine???

2003-09-05 Thread Peder Blom
On Thu, 4 Sep 2003 12:44:20 -0400
Louis LeBlanc <[EMAIL PROTECTED]> wrote:

 
> There are a hundred other questions, like how do you get an xsession
> to start different WMs or even different configurations of the same WM
> based on the display?
> 

I have a number of .xinitrc versions to start different WMs, like
.xinitrc_fluxbox, .xinitrc_gnome and so on. To switch WM I symlink
.xinitrc to the version I want, and then do a startx from the command
line.

I guess this approach can be extended to symlink WM (and other) config
files to different configurations depending on the value of $DISPLAY.

BTW, an alternativ way to start up an xsession on screen N using
terminal xx is:

startx -- :N vtxx


Personally I don't see much use in starting several WMs at the same
time, but it comes in handy when having to deal with "FreeBSD is not
ready for the desktop"-people. Can you do this on windows? :-)


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Two X sessions on one machine???

2003-09-04 Thread Joshua Oreman
On Thu, Sep 04, 2003 at 12:44:20PM -0400 or thereabouts, Louis LeBlanc wrote:
> On 09/04/03 04:50 PM, Markie sat at the `puter and typed:
> > > 
> > 
> > http://linux.about.com/library/bl/open/newbie/blnewbie4.3.6.htm
> > 
> > Looks about right, I remember doing this a long time ago but couldn't
> > remember how. Thanks for making me get some motivation to make myself look
> > it up :o)
> > 
> 
> 
> 
> There are a hundred other questions, like how do you get an xsession
> to start different WMs or even different configurations of the same WM
> based on the display?

Test the variable $DISPLAY or $display (not sure) in your .xsession; it is
a shell script, after all.

Not sure .xinitrc is a shell script, but it may be. If so, that stuff will
work there too.

-- Josh
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Two X sessions on one machine???

2003-09-04 Thread Louis LeBlanc
On 09/04/03 04:50 PM, Markie sat at the `puter and typed:
> > 
> 
> http://linux.about.com/library/bl/open/newbie/blnewbie4.3.6.htm
> 
> Looks about right, I remember doing this a long time ago but couldn't
> remember how. Thanks for making me get some motivation to make myself look
> it up :o)
> 

This is very cool.  I've always wondered if it was possible.  Reading
some of these FAQs lead me to the following:

Is it possible to have xdm start two separate login sessions at
startup?

I'm thinking about the following:

First, create /usr/X11R6/lib/X11/xdm/Xservers.1 which contains:

:1 local /usr/X11R6/bin/X 

Then, comment out the DisplayManager.servers setting in xdm.config and
set the following in /etc/ttys:

ttyv8   "/usr/X11R6/bin/xdm -nodaemon -server /usr/X11R6/lib/X11/xdm/Xservers"  xterm  
 on  secure
ttyv9   "/usr/X11R6/bin/xdm -nodaemon -server /usr/X11R6/lib/X11/xdm/Xservers.1"  
xterm   on  secure

Anyone know if this is a pipe dream?

There are a hundred other questions, like how do you get an xsession
to start different WMs or even different configurations of the same WM
based on the display?

Hmm.  Might be getting off topic there.

I'd be real interested if anyone has a link to some real detailed
how-tos regarding this kind of creative X setup.  One day I'm gonna
try a dual head setup - but not now (no time or extra monitor :).

Thanks
Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

Cynic, n.:
  One who looks through rose-colored glasses with a jaundiced eye.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Two X sessions on one machine???

2003-09-04 Thread Markie
- Original Message -
From: "KroNiC~BSD" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 5:06 AM
Subject: Two X sessions on one machine???


> Is it possible to have more that one X session running on the same
> machine? The problem is if i want to create a remote X connection to my
> linux machine via my Freebsd machine i have to kill the current running
> LOCAL X session first.then i can "from the freebsd machine" # X
> -query 192.168.0.6
> and get a X session on the linux machine.
>
> On my Freebsd box, with a local X session , i would like to open a
> terminal ...aterm or xterm and then somehow in that terminal create a X
> session to the linux machine.
>
> I have tried this but get the following error:
>
> freeebsd# X -query 192.168.0.62
>
> Fatal server error:
> Server is already active for display 0
> If this server is no longer running, remove /tmp/.X0-lock
> and start again.
>
>
> When reporting a problem related to a server crash, please send
> the full server output, not just the last messages.
> Please report problems to [EMAIL PROTECTED]
>
>
>
> i assume the error is local because my current running local X session is
> on display 0 .
>
> is it possible for me to do this as i would like to remotly connect to 3
> machines via X but still have use of my local machine
>
>
> Thanks in advance.
> --
>   KroNiC~BSD
>   [EMAIL PROTECTED]
>
> --
> http://www.fastmail.fm - mmm... Fastmail...

http://linux.about.com/library/bl/open/newbie/blnewbie4.3.6.htm

Looks about right, I remember doing this a long time ago but couldn't
remember how. Thanks for making me get some motivation to make myself look
it up :o)

> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Two X sessions on one machine???

2003-09-04 Thread Adam McLaurin
On Thu, 2003-09-04 at 00:06, KroNiC~BSD wrote:
> Is it possible to have more that one X session running on the same
> machine? 

Yes, it is possible. From the console, type: 
display=:1 startx

This will open up an X session on F10 (you can switch back to the old
one with CTRL+ALT+F9).

-- 
Adam McLaurin <[EMAIL PROTECTED]>


signature.asc
Description: This is a digitally signed message part


Two X sessions on one machine???

2003-09-04 Thread KroNiC~BSD
Is it possible to have more that one X session running on the same
machine? The problem is if i want to create a remote X connection to my
linux machine via my Freebsd machine i have to kill the current running
LOCAL X session first.then i can "from the freebsd machine" # X
-query 192.168.0.6
and get a X session on the linux machine.

On my Freebsd box, with a local X session , i would like to open a
terminal ...aterm or xterm and then somehow in that terminal create a X
session to the linux machine.

I have tried this but get the following error:

freeebsd# X -query 192.168.0.62

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


When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to [EMAIL PROTECTED]



i assume the error is local because my current running local X session is
on display 0 .

is it possible for me to do this as i would like to remotly connect to 3
machines via X but still have use of my local machine


Thanks in advance.
-- 
  KroNiC~BSD
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - mmm... Fastmail...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"