Linux – Ubuntu – GUI – 远程鼠标和键盘从1主从10奴隶

是否有可能将鼠标和键盘操作复制到多个设备? 例如在ubuntu 1上侦听,然后将确切的鼠标和键盘操作复制到ubuntu 2,ubuntu 3,ubuntu 4等等。

我曾尝试过使用xdotool和ssh,但是为了简单起见,我失败了。 例如

sshpass -p 'password' ssh -t -X user@host DISPLAY=:0.0 'bash -a' < ./start.sh while true do xje=$(xdotool getmouselocation | cut -c 3-5) yje=$(xdotool getmouselocation | cut -c 9-12) echo "$xje" "$yje" xdotool mousemove "$xje" "$yje" done 

但也许你们有一个完全不同的解决scheme? 因为我真的卡住了!