Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 01 Jul 2015, 08:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
ssh and x2x (software kvm switch over local network)
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count_1  
Author Message

Joined: 16 Sep 2009
Posts: 2395
Location: UK

PostPosted: Mon 09 Sep 2013, 14:25    Post_subject:  ssh and x2x (software kvm switch over local network)
Sub_title: control other x11 screens over network with kb+mouse

x2x is like a software kvm switch ..

you can control the kb+mouse of another pc (server) over a network..

I've used this to control my 'server', which is a puppy pc hooked up to my TV.. i use ssh+x2x to control the server using my netbook, from my comfy sofa Wink

Note x2x, OpenSSH with X11 forwarding must be installed and working on the PC that you wanna ssh into and control (the server)..

Using ssh and X11 forwarding, you can control the mouse/kb of another pc on your network, just by scrolling off the screen..

.. on the server, get openSSH and x2x installed, then add to end of /etc/ssh/sshd_config
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
XAuthLocation /usr/bin/xauth

Now start the SSH server on the server:

/etc/init.d/sshd start

Now you're ready to run x2s from the client...

Example command to run in the terminal on your client PC (the pc you wanna use to control the other[s]):

ssh -Y user@server_ip x2x -west -to :0

with the above command, you can scroll off the left of your screen to control the mouse and keyboard of the other pc..

note: change user to the user you wanna login as, server_ip to the ip of the server (the computer you will control remotely).. and change :0 to the screen used on the server..


To get rid of any errors about xauth, you can do the following :

In the terminal, on the client pc, run these commands:

touch ~/.Xauthorty
xauth add :0 . `mcookie`

If you dont have mcookie (see below), you could try this:

dd if=/dev/random count=1 | openssl md5 | sed -e 's/^/add :0 . /' | xauth -

to test it worked:

xauth list

If you're missing the file 'mcookie', get it from http://ftp.de.debian.org/debian/pool/main/u/util-linux/util-linux_2.20.1-5.5_i386.deb

EDIT2: ROX doesn't work right with x11 forwarding, it runs as if locally - and not showing the filesystem of the server, unlike spacefm and others... any ideas?

EDIT3: ROX does work fine, my mistake..
Description  install on the 'server' you want to control remotely over ssh

Filename  x2x.tar.gz 
Filesize  30 KB 
Downloaded  217 Time(s) 

Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0499s ][ Queries: 12 (0.0068s) ][ GZIP on ]