Skip to content

Instantly share code, notes, and snippets.

@zzSandyzz
Last active August 20, 2018 14:07
Show Gist options
  • Save zzSandyzz/36a656cc719c8eb2de8e178e1ab8c053 to your computer and use it in GitHub Desktop.
Save zzSandyzz/36a656cc719c8eb2de8e178e1ab8c053 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