Skip to content

Instantly share code, notes, and snippets.

@Pipeliner
Forked from zzSandyzz/remoteandroid
Created August 20, 2018 14:07
Show Gist options
  • Save Pipeliner/ef95cb12a38fc115f1933f36ae54b9c0 to your computer and use it in GitHub Desktop.
Save Pipeliner/ef95cb12a38fc115f1933f36ae54b9c0 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -eu
set -x
LOCAL_ADB=/home/vadim/Android/Sdk/platform-tools/adb
REMOTE_ADB=/home/sasha/Android/Sdk/platform-tools/adb
sshfs google: ~/google-server || true
$LOCAL_ADB start-server
# kill old process-forwarding processes
ps aux | grep -- -fNT | awk '{print $2}' | xargs kill || true
ssh google $REMOTE_ADB kill-server
sleep 2
ssh google -fNT -R 5037:localhost:5037
sleep 3
x2goclient --session=google
~
~
~
~
~
~
~
~
~
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment