-
-
Save Pipeliner/ef95cb12a38fc115f1933f36ae54b9c0 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