Instalacao Ubuntu
Instalacao Ubuntu
-----Instalando python-----
https://github.com/instabot-py/instabot.py/wiki/Installing-Python-3.7-on-Raspberry-Pi
apt-get update -y
---Baixando o arquivo---
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
---Descompacta o arquivo---
tar xf Python-3.7.2.tar.xz
---Entra na pasta---
cd Python-3.7.2
---Configurar Python---
./configure
make -j 4
--Atualiza os pacotes---
sudo apt update
--Instala o python3
sudo apt install python3-pip
-----Instalando Instabot.py----
https://www.youtube.com/watch?v=n-MQ3XSfFXU
---Instala o Instabot.py---
pip3 install instabot.py/
wget https://raw.githubusercontent.com/NicolasBernaerts/debian-
scripts/master/telegram/telegram-notify-install.sh
sudo ./telegram-notify-install.sh
nano /etc/telegram-notify.conf
---Exemplo de mensagem---
sudo telegram-notify --success
--text "Action *sucessful* with
markdown *bold* example"
*Não reconfigurar o idioma, isso está quebrando uma pasta dentro do servidor.
update-locale LANG = en_US.UTF-8 LANGUAGE = en.UTF-8
-----Instalar Virtualenv---
sudo apt-get install -y python3-venv
mkdir ambientes
cd ambientes
https://blog.pythonanywhere.com/148/
https://core.telegram.org/bots#3-how-do-i-create-a-bot
https://github.com/instabot-py/instabot.py
https://github.com/NicolasBernaerts/debian-scripts/blob/master/telegram/telegram-notify
https://github.com/GabrielRF/Zabbix-Telegram-Notification
https://github.com/GabrielRF/telegram-id
http://www.bernaerts-nicolas.fr/linux/75-debian/351-debian-send-telegram-notification
http://blog.tiagopassos.com/2016/04/29/como-criar-script-linux/