Quote:
Originally Posted by Duglas
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.