Find the answer to your Linux question:
Results 1 to 4 of 4
Has anyone tried installing x2x on Fedora 3? I've tried it but don't know how to configure it, the man pages doesn't help me very much. How do I select ...
  1. #1
    Linux Newbie rat007's Avatar
    Join Date
    Jul 2004
    Location
    Brno
    Posts
    230

    x2x configuration

    Has anyone tried installing x2x on Fedora 3? I've tried it but don't know how to configure it, the man pages doesn't help me very much. How do I select a display? How do I configure the server side?

  2. #2
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,814
    /IMHO
    //got nothin'
    ///this use to look better

  3. #3
    Linux Newbie rat007's Avatar
    Join Date
    Jul 2004
    Location
    Brno
    Posts
    230
    Thanks, but I didn't get much futher. When running x2x I'm getting the following error message

    $ x2x -to 192.168.0.2:0.0 -east
    Xlib: connection to "192.168.0.2:0.0" refused by server
    Xlib: No protocol specified

    x2x - error: can not open display 192.168.0.2:0.0

    I've added on the other computer xhost +192.168.0.1 but it seems that it;s looking for a deamon or service which is not running ..

  4. #4
    Just Joined!
    Join Date
    Sep 2008
    Posts
    1

    Exclamation Making x2x work in Fedora

    I'm not sure if anyone reads this thread any more, but I found it via google and have some suggestions as to how to get this working..

    First off, since at least Fedora 6 (and possibly earlier, judging by OP asking about FC3), the X server has disabled listening on TCP/IP sockets by default.

    It's easy to fix however..

    If you use the standard GDM greeter (the default on install), you need edit:

    Code:
    /etc/gdm/gdm.conf
    and change DisAllowTCP to False.

    If you use KDE as your greeter (i.e.: /etc/sysconfig/desktop has DISPLAYMANAGER="KDE" set inside), you edit:

    Code:
    /etc/kde/kdm/kdmrc
    Find the line that says ServerArgs and delete the string '-nolisten TCP'

    At this point, either rebooting, restarting the X server (ctrl-alt-backspace if DontZap isn't enabled in xorg.conf, or do it from the greeter), or switching from init 5 to init 3 and then back to 5 should do the trick.

    You can verify that it's working by typing the following as root:

    Code:
    lsof -i TCP
    And you should see a couple of lines that look like this:

    Code:
    X       3548   root    1u  IPv6  16717       TCP *:x11 (LISTEN)
    X       3548   root    3u  IPv4  16718       TCP *:x11 (LISTEN)
    Now x2x should work over ssh!

    Here are some URL's I found helpful...

    Musings of a Graduate Student - Pradeep's blog: x2x - a cool X hack
    Keunwoo Lee : About x2x: Sharing input devices between X11 servers in software
    Share mouse and keyboard using x2x and ssh

    For reference:

    Essentially, I just SSH into the box I want to control, and type:

    x2x -east -to 0:

    That's it! Everything's secured over SSH, and no mucking around with xhost.

    enjoy!

    --edit:

    I use my .ssh/config file for everything. My host entry looks something like this:

    Code:
    host potato
       hostname potato.localdomain
       ForwardX11  yes
       ForwardX11Trusted yes
    Note also that /etc/ssh/sshd_config needs to have AllowTCPForwarding set to 'yes' and X11Forwarding set to 'yes' for any of this to work. By default, AllowTCPForwarding is enabled, but X11Forwarding is NOT.
    Last edited by potato; 09-05-2008 at 06:58 PM. Reason: added note about 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
  •  
...