X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=README.md;h=54a45ab2b9280a1eb29344e7e83f0d0a3fadbec1;hb=f1b399b817ca4cadf792c5fa65e7ccfc48a07a35;hp=e14e5cd96f4b68dcded24a2ca744bd46d53389a0;hpb=9d947e8731d6e2e2fd27f7fbf6cc8ba81d86ee56;p=remote-debug.git diff --git a/README.md b/README.md index e14e5cd..54a45ab 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,13 @@ - run `./add-user.sh` to create a user, used for remote ssh, named debug, and its password is suanzikeji - run `./install.sh` to install the daemon and service file +- On local machine + - Linux, run `apt-get install sshpass` + - Mac OSX, sshpass is not in brew. To install this, + - `brew create https://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz --force` + - `brew install sshpass` + - run `pip install paho-mqtt` + ## Usage ### list all connected device @@ -31,6 +38,21 @@ timeout The output + +``` +debian@[~/project/remote-ssh]>> ./sztool list +Mac: 080027a6f8dc + +Found 3 connected devices: +Connected with result code 0 + + Device ID Data +------------------------------ +00044b8d6310 OK +502b73d42c31 OK +b0f1ec7a62ce OK +``` + ``` debian@[~/project/remote-ssh]>> ./sztool connect 2acdeb93b285 Mac: 080027a6f8dc