Advertisement
sorahx0

Telegram-Installer

Jun 16th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.07 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "              Iniciando Instalacao "
  4. echo "
  5. [ ] Instalando Bibliotecas"
  6. apt-get install git libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make build-essential -y > /dev/nul
  7. echo "
  8. [OK] Instalado"
  9. sleep 1
  10. cd /tmp/
  11. echo "
  12. [ ] Cloando Diretorio"
  13. git clone --recursive https://github.com/vysheng/tg.git > /dev/nul
  14. echo "
  15. [OK] Feito "
  16. cd tg
  17. echo "
  18. [ ] Configurar "
  19. ./configure
  20. make
  21. clear
  22. echo "
  23. [OK] Configurado"
  24. echo "  Instalando Telegram "
  25. echo "
  26. [ ] Instalando.."
  27. mkdir /opt/telegram
  28. cp bin/telegram-cli /opt/telegram
  29. cp tg-server.pub /opt/telegram
  30. cd /opt/telegram
  31. wget pastebin.com/raw/SUTsRbZ9 -O /opt/telegram/telegram.config
  32. dos2unix /opt/telegram/telegram.config
  33. wget pastebin.com/raw/tTSAJ3ye -O /opt/telegram/telegram-cmd
  34. dos2unix /opt/telegram/telegram-cmd
  35. chmod  777 /opt/telegram/telegram-cmd
  36. ln -s /opt/telegram/telegram-cmd /usr/bin/telegram-cmd
  37. echo "
  38. [OK] Instalado "
  39. echo "              Configure com seu numero de telefone "
  40. ./telegram-cli --rsa-key tg-server.pub --config telegram.config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement