LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2020, 08:33 AM   #1
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Rep: Reputation: 2
x2x fails with error


I am trying to connect a RaspberryPi with monitor to a Laptop, both running Debian, and x2x.
I can connect from the Pi to the laptop but not the other way round.
SSH is working both ways.
I type: $ ssh -X <user>@pi x2x -west -to :0 &, and the error is "bash: x2x: command not found"
$ which x2x, reports /usr/bin/x2x.
Can anyone help troubleshoot this problem?
 
Old 11-08-2020, 08:59 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Quote:
Originally Posted by Duglas View Post
I type: $ ssh -X <user>@pi x2x -west -to :0 &, and the error is "bash: x2x: command not found"
If you are on the laptop and want to control the keyboard input and mouse movement on the Raspberry Pi from it, x2x has to be installed on the Raspberry Pi. Is it?

Then put SSH into the background before x2x is started, then try it like this and use the -f option:

Code:
ssh -f -X user@pi 'x2x -west -to :0'
Or like this to put the SSH session into the background after x2x is started:

Code:
ssh -X user@pi 'x2x -west -to :0' &
However, with the client in the background using the first method there is no easy way to kill it from the laptop. You'd have to quit or kill x2x over on the Raspberry Pi or else hunt for the specific SSH client session on the laptop and see which one is using x2x:

Code:
for p in $(pgrep -x ssh); do ps -h -p $p -o user,pid,args; done

for p in $(pgrep -x ssh); do ps -h -p $p -o user,pid,args; done | grep -w x2x
The second method, however, prints the Process ID of the client since it is the shell itself which has put the process into the background.

See 'man ssh' about the -f option.
 
Old 11-09-2020, 04:28 AM   #3
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 2
Thanks but the first method did not work, and the 2nd method is the one I had been using, and still not working.
 
Old 11-09-2020, 04:56 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Which version of x2x do you have on the Raspberry Pi?

Code:
apt-cache policy x2x | head -n 2
If it is not present, it needs to be installed there, first.
 
Old 11-09-2020, 03:41 PM   #5
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 2
Damm I just found the real problem.
I installed several packages with one apt command and none of them actually went in.
I fixed it, thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
x2x on laptop, no second display? mpapet Linux - Desktop 2 03-20-2010 11:25 AM
LXer: x2x is a software alternative to a KVM switch LXer Syndicated Linux News 0 10-01-2008 02:10 AM
Cannot slide mouse off of "from" display in x2x, x2vnc BWebb Linux - Software 3 09-20-2005 02:15 PM
loosing alt key function with x2x mritch Linux - Networking 0 09-24-2004 10:06 AM
DHCP fails, IP fails, packet framing errors? alonsomosely Fedora 2 09-17-2004 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration