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 Tue 02 Sep 2014, 23: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 [1 Post]  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Mon 09 Sep 2013, 14:25    Post subject:  ssh and x2x (software kvm switch over local network)
Subject description: 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
Code:
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
XAuthLocation /usr/bin/xauth


Now start the SSH server on the server:

Code:
/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]):

THE IMPORTANT BIT:
Code:
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..

EDIT:

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

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

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


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

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

to test it worked:

Code:
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..
x2x.tar.gz
Description  install on the 'server' you want to control remotely over ssh
gz

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

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
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 post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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