Last active
August 20, 2018 14:07
-
-
Save zzSandyzz/36a656cc719c8eb2de8e178e1ab8c053 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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