Skip to content

Instantly share code, notes, and snippets.

@lucascebertin
Created February 3, 2019 11:53
Show Gist options
  • Select an option

  • Save lucascebertin/ff408d49b7f71279a6a8cca3d752c9cf to your computer and use it in GitHub Desktop.

Select an option

Save lucascebertin/ff408d49b7f71279a6a8cca3d752c9cf to your computer and use it in GitHub Desktop.
# 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