apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev make git -y
cd /usr/src
git clone --recursive https://github.com/vysheng/tg.git
#!/usr/bin/env bash | |
# This script will try to find the adb remote debugging port in the specified | |
# IP address and then tell adb to try to connect to it. | |
# It is useful for connecting to an android device without opening the | |
# "Wireless debugging" screen to get the IP and the random port, which is | |
# cumbersome. | |
for line in $(avahi-browse --terminate --resolve --parsable --no-db-lookup _adb-tls-connect._tcp); do | |
if [[ $line != =* ]]; then |