Created
February 3, 2019 11:53
-
-
Save lucascebertin/ff408d49b7f71279a6a8cca3d752c9cf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # RASPBERRY PI2, PIVPN + PIHOLE (FALTANDO DNSCRYPT) | |
| # atualizando pihole (serviço, DNS e frontend) | |
| pihole -up | |
| # atualizando lista de ad services | |
| pihole -g | |
| # verificando tempo de execução | |
| uptime | |
| # verificando usuários conectados | |
| w | |
| # verificando um usuário específico | |
| w pi | |
| # verificando status do crontab (caso nunca tenha sido utilizado, será solicitado um editor de texto padrão, exibido em uma listagem) | |
| crontab -e | |
| # definindo atualizações às 00:00 diariamente | |
| 0 0 * * * /caminho/para/seu/script.sh #pode ser utilizado um comando no lugar do script. ***MUITO CUIDADO PARA NÃO PERMITIR EDIÇÃO DO .SH COM QUALQUER USUÁRIO QUE NÃO SEJA ROOT*** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment