Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 49

Thread: How to Xephyr ~ AKA Multiple, nested X sessions

  1. #11
    Join Date
    Mar 2005
    Beans
    19

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    On a more popular level, can Xephyr be used to watch ABC.com TV programs, as some have tried to use Xnest to do? See http://ubuntuforums.org/showpost.php...3&postcount=12

  2. #12
    Join Date
    Jan 2007
    Location
    Newcastle upon Tyne
    Beans
    148
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    Quote Originally Posted by

    5. Desktop:

    Start Xephyr

    [code
    Xephyr -ac -screen 1280x1024 -br -reset -terminate 2> /dev/null :2 &[/code]

    2. ssh into the chroot/server

    Code:
    ssh -XfC -c blowfish user@server xfce4-session
    • Substitute your window manager for "xfce4-session"



    =========================

    I am using kde 3.5.10 on Ubuntu 8.10.
    I am stuck with what to substitute "xfce4-session" with. I have tried kwm-session but I get command not found error.
    Thanks in advance for any help, Kenneth.

  3. #13
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    I am a little rusty, but I think KDE usually starts with either

    startx or startkde

    You can alternately start the kicker (which is what I have done in the past).
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #14
    Join Date
    Sep 2006
    Location
    Allentown, PA; USA
    Beans
    511
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    I am a bit obtuse... I want to run fluxbox as my nested session on top of kde4:

    How do I do this?

    brian@brian-laptop:~$ Xephyr -ac -screen 1024x768 -br -reset -terminate 2> /dev/null :1 &
    [1] 2439
    brian@brian-laptop:~$ DISPLAY=:1.0
    brian@brian-laptop:~$ ssh -XfC -c blowfish brian@brian-laptop xterm
    ssh: connect to host brian-laptop port 22: Connection refused
    brian@brian-laptop:~$ DISPLAY=0.0 Not sure about this line?
    brian@brian-laptop:~$ ssh -XfC -c blowfish brian@brian-laptop xterm
    ssh: connect to host brian-laptop port 22: Connection refused
    brian@brian-laptop:~$
    Last edited by maestrobwh1; November 17th, 2008 at 11:19 PM.

  5. #15
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    Quote Originally Posted by maestrobwh1 View Post
    I am a bit obtuse... I want to run fluxbox as my nested session on top of kde4:

    How do I do this?

    brian@brian-laptop:~$ Xephyr -ac -screen 1024x768 -br -reset -terminate 2> /dev/null :1 &
    [1] 2439
    brian@brian-laptop:~$ DISPLAY=:1.0
    brian@brian-laptop:~$ ssh -XfC -c blowfish brian@brian-laptop xterm
    ssh: connect to host brian-laptop port 22: Connection refused
    brian@brian-laptop:~$ DISPLAY=0.0 Not sure about this line?
    brian@brian-laptop:~$ ssh -XfC -c blowfish brian@brian-laptop xterm
    ssh: connect to host brian-laptop port 22: Connection refused
    brian@brian-laptop:~$
    Looks like your ssh connection is blocked. Do you have openssh-server installed ? firewall ?

    DISPLAY refers to your X session. Your default session is :0. Xephyr is :1 (or whatever you name it). (you do need a colon : before the number).

    HTH.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  6. #16
    Join Date
    Sep 2006
    Location
    Allentown, PA; USA
    Beans
    511
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    I installed openssh-server and got further

    brian@brian-laptop:~$ ssh -XfC -c blowfish brian@brian-laptop xterm
    brian@brian-laptop's password:
    brian@brian-laptop:~$ Xephyr -ac -screen 1152x864 -br -reset -terminate 2> /dev/null :1 &
    [1] 22216
    brian@brian-laptop:~$ DISPLAY=:1.0
    brian@brian-laptop:~$ ssh -XfC -c blowfish brian@brian-laptop xterm
    brian@brian-laptop's password:
    brian@brian-laptop:~$ Warning: No xauth data; using fake authentication data for X11 forwarding.
    connect /tmp/.X11-unix/X1: No such file or directory
    Can't open display localhost:10.0
    connect /tmp/.X11-unix/X1: No such file or directory
    xterm Xt error: Can't open display: localhost:10.0
    Last edited by maestrobwh1; November 18th, 2008 at 02:48 AM.

  7. #17
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    Is X installed on the machine you are trying to ssh into ?
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  8. #18
    Join Date
    Sep 2006
    Location
    Allentown, PA; USA
    Beans
    511
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    Yes, it is a full blown version of 8.04 Kubuntu. I am launching this from the desktop. I get bits and pieces but I just can't seem to get something to work. The only errors I see is what I pasted here.

    I am trying to launch fluxbox, but I can't even get xterm to run.

    I don't even think I need to use "ssh" in the command exactly?

    If I am in KDE, what would be the code to run fluxbox, preferably in one line, in Xephyr with a 1024x768 screen (my desktop is 1280x1024)?

    I did this when kde 4 came out a long time ago, and I remember Xephyr being somewhat more cooperative. It was on a different verision of Ubuntu, and on a different machine.

    I found this post
    http://wiki.debian.org/XStrikeForce/FAQ#howtoxnest and it mentions something about
    "Some people find that they can start Xephyr (e.g., with Xephyr :1), but cannot start any clients inside it (e.g., with DISPLAY=:1 xterm or xterm -display :1), because the client connections are rejected by the X server's security mechanism, resulting in error messages like this:" The output error listed in the post is similar to mine, but not exactly that same... mine says a directory doesn't exist.

    Anyway, the script suggested to run before Xephyr is

    #!/bin/sh

    MCOOKIE=$(mcookie)
    xauth add $(hostname)/unix$1 . $MCOOKIE
    xauth add localhost/unix$1 . $MCOOKIE
    Xephyr "$@"
    xauth remove $(hostname)/unix$1 localhost/unix$1

    exit 0
    But I don't know what to put in for (mcookie), and (hostname) if anything or if this is what the script should look like.
    Last edited by maestrobwh1; November 18th, 2008 at 03:36 PM.

  9. #19
    Join Date
    Jan 2007
    Location
    Newcastle upon Tyne
    Beans
    148
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    Quote Originally Posted by maestrobwh1 View Post
    I installed openssh-server and got further

    brian@brian-laptop:~$ ssh -XfC -c blowfish brian@brian-laptop xterm
    brian@brian-laptop's password:
    brian@brian-laptop:~$ Xephyr -ac -screen 1152x864 -br -reset -terminate 2> /dev/null :1 &
    [1] 22216
    brian@brian-laptop:~$ DISPLAY=:1.0
    brian@brian-laptop:~$ ssh -XfC -c blowfish brian@brian-laptop xterm
    brian@brian-laptop's password:
    brian@brian-laptop:~$ Warning: No xauth data; using fake authentication data for X11 forwarding.
    connect /tmp/.X11-unix/X1: No such file or directory
    Can't open display localhost:10.0
    connect /tmp/.X11-unix/X1: No such file or directory
    xterm Xt error: Can't open display: localhost:10.0
    Should the DISPLAY not be DISPLAY=:0,1

  10. #20
    Join Date
    Sep 2006
    Location
    Allentown, PA; USA
    Beans
    511
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: How to Xephyr ~ AKA Multiple, nested X sessions

    brian@brian-laptop:~$ DISPLAY=:1.0

    should be

    brian@brian-laptop:~$ DISPLAY=:1,0

    ??

    I also see posts that use some "export" synatax.

Page 2 of 5 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •