DEV Community

miheer vaidya
miheer vaidya

Posted on

5 2

x2x definitive guide

So you want to share your clipboard across the machines? x2x is free software to do that over x server protocol.

  1. Install x server and x2x on both machines. On windows/wsl use these instructions.

  2. On remote system, if you use gdm, edit /etc/gdm3/custom.conf to add:

    [security]
    DisallowTCP=false
    

    and restart gdm sudo service gdm3 restart.

  3. Find out on which display X server is running on remote machine.

    # on remote machine,
    $ echo $DISPLAY # This command assumes that you are logged in using some GUI method, vnc/rdp/nomachine etc.
    # Let's say it was 0.0
    
  4. On local machine issue below command:

 # on local machine:

 $ ssh -XC remoteMachine x2x -east -to :0.0
Enter fullscreen mode Exit fullscreen mode

References

  1. Ubuntu wiki x2xHowTo

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs