Find the answer to your Linux question:
Results 1 to 6 of 6
Hi everyone, I use KDE desktop (3.5.10) on my Gentoo computer. I'd like to run remote applications on my computer. For clarity, lets say the box that I want to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie ursusca's Avatar
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    116

    [SOLVED] How to export the display


    Hi everyone,

    I use KDE desktop (3.5.10) on my Gentoo computer. I'd like to run remote applications on my computer.

    For clarity, lets say the box that I want to export X from is named A(CentOS) and the one want it to go to is named B(Gentoo).

    B:
    mike@gentoobear ~ $ xhost +192.168.1.2
    192.168.1.2 being added to access control list
    mike@gentoobear ~ $ ssh 192.168.1.2
    A:
    [mike@bearcentos ~]$ DISPLAY=192.168.1.7:0.0; export DISPLAY
    [mike@bearcentos ~]$ echo $DISPLAY
    192.168.1.7:0.0
    [mike@bearcentos ~]$ xterm
    xterm Xt error: Can't open display: 192.168.1.7:0.0

    why this is happening...

    What elese do I need to do?

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Try
    Code:
    export DISPLAY 192.168.1.2:0.0
    EDIT: maybe I'm confused to which IP you want, you might want 192.168.1.7:0.0 instead. Try different variations if it doesn't work right.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Linux Newbie ursusca's Avatar
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    116
    Quote Originally Posted by MikeTbob View Post
    Try
    Code:
    export DISPLAY 192.168.1.2:0.0
    EDIT: maybe I'm confused to which IP you want, you might want 192.168.1.7:0.0 instead. Try different variations if it doesn't work right.

    I want export display from my centos computer (192.168.1.2) to my gentoo computer (192.168.1.7). I've tried from gentoo to centos ang it's OK. But I need to export display from centos to gentoo.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    I generally tunnel over ssh. I connect to the remote box using ssh -X and then any applications I launch from that ssh session - including an entire desktop session - will open on my local machine. Is that any help to you?

  6. #5
    Linux Newbie ursusca's Avatar
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    116
    I am trying to do it over xdmcp. Not over X11 forwading.

  7. #6
    Linux Newbie ursusca's Avatar
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    116
    I've tried to do it over X11 forwarding.

    I've checked the following line in my /etc/ssh/sshd_config file:

    X11Forwarding yes


    B:
    mike@gentoobear ~ $ xhost +
    access control disabled, clients can connect from any host
    mike@gentoobear ~ $ ssh -X 192.168.1.2
    mike@192.168.1.2's password:
    Warning: untrusted X11 forwarding setup failed: xauth key data not generated
    Warning: No xauth data; using fake authentication data for X11 forwarding.
    Last login: Sun Jun 28 18:39:29 2009 from beargentoo

    A:
    [mike@bearcentos ~]$ xterm &
    [1] 5077
    [mike@bearcentos ~]$ firefox &
    [2] 5111
    [1] Done xterm
    [mike@bearcentos ~]$

    It works for me but can anybody explain me what dies it mean:
    Warning: untrusted X11 forwarding setup failed: xauth key data not generated
    Warning: No xauth data; using fake authentication data for X11 forwarding.

    ???

Posting Permissions

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