-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
elefante-borneu-yul{01,02,03} (#45): instalado vnstat; apontado subdo…
…minios
- Loading branch information
Showing
3 changed files
with
171 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,35 @@ exit | |
# | ||
# IPv4: 149.56.130.19 | ||
# IPv6: 2607:5300:0201:3100:0000:0000:0000:2f58 | ||
# | ||
# Domain: | ||
# Full: elefante-borneu-yul-01.etica.ai (TTL: 15 min) | ||
# Short: ebyul01.etica.ai (TTL: 15 min) | ||
# | ||
# Domain, extras: | ||
# lb-ebyul.etica.ai (TTL: 2 min) | ||
# lb-eb.etica.ai (TTL: 2 min) | ||
# | ||
# Login: | ||
# ssh [email protected] | ||
# mosh [email protected] (TODO: install Mosh) | ||
# ssh [email protected] | ||
# mosh [email protected] (TODO: install Mosh) | ||
# | ||
# -----------------------------------------------------------------------------# | ||
# LICENSE: Public Domain | ||
# Except where otherwise noted, content on this server configuration and to | ||
# the extent possible under law, Emerson Rocha has waived all copyright and | ||
# related or neighboring rights to this work to Public Domain | ||
# | ||
# MAINTAINER: Emerson Rocha <rocha(at)ieee.org> | ||
# Keep in mind that several people help with suggestions, bugfixes and | ||
# inspiration and inspire without get names noted in places that software | ||
# developers look. I'm saying this in special for people who help over | ||
# Facebook discussions. Even the ones without a personal computer yet. | ||
# SECURITY: | ||
# Reporting a Vulnerability: | ||
# Send e-mail to Emerson Rocha: rocha(at)ieee.org. | ||
################################################################################ | ||
|
||
#------------------------------------------------------------------------------# | ||
|
@@ -70,4 +99,31 @@ cat /proc/sys/vm/vfs_cache_pressure | |
# 100, vamos alterar para 50 | ||
|
||
vim /etc/sysctl.conf | ||
# Adciona 'vm.vfs_cache_pressure=50' (sem aspas) no final do arquivo | ||
# Adciona 'vm.vfs_cache_pressure=50' (sem aspas) no final do arquivo | ||
|
||
##### VNstat [configuração inicial] ____________________________________________ | ||
# VNstat é uma ferramenta super eficiente que permite monitorar uso de rede | ||
# ao longo do mês | ||
# @see https://www.howtoforge.com/tutorial/vnstat-network-monitoring-ubuntu/ | ||
|
||
sudo apt install vnstat vnstati | ||
|
||
# O comando a seguir deve ser usado para decidir qual a interface a monitorar | ||
ifconfig | ||
# Escolha a network para iniciar monitoramento. Neste caso é ens3 | ||
|
||
vnstat -u -i ens3 | ||
|
||
## vnstat --iflist | ||
# Available interfaces: ens3 lo | ||
|
||
# O arquivo /etc/vnstat.conf deve estar marcado para nossa interface desejada | ||
sudo vim /etc/vnstat.conf | ||
# trocar eth0 pela network especifica | ||
# default interface | ||
# Interface "ens3" | ||
# Para ver em tempo real o uso de rede | ||
|
||
# Vamos iniciar vnstat para rodar imediatamente, e também iniciar com sistema | ||
sudo systemctl start vnstat | ||
sudo systemctl enable vnstat |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,35 @@ exit | |
# | ||
# IPv4: 149.56.130.66 | ||
# IPv6: 2607:5300:0201:3100:0000:0000:0000:6dd8 | ||
# | ||
# Domain: | ||
# Full: elefante-borneu-yul-02.etica.ai (TTL: 15 min) | ||
# Short: ebyul02.etica.ai (TTL: 15 min) | ||
# | ||
# Domain, extras: | ||
# lb-ebyul.etica.ai (TTL: 2 min) | ||
# lb-eb.etica.ai (TTL: 2 min) | ||
# | ||
# Login: | ||
# ssh [email protected] | ||
# mosh [email protected] (TODO: install Mosh) | ||
# ssh [email protected] | ||
# mosh [email protected] (TODO: install Mosh) | ||
# | ||
# -----------------------------------------------------------------------------# | ||
# LICENSE: Public Domain | ||
# Except where otherwise noted, content on this server configuration and to | ||
# the extent possible under law, Emerson Rocha has waived all copyright and | ||
# related or neighboring rights to this work to Public Domain | ||
# | ||
# MAINTAINER: Emerson Rocha <rocha(at)ieee.org> | ||
# Keep in mind that several people help with suggestions, bugfixes and | ||
# inspiration and inspire without get names noted in places that software | ||
# developers look. I'm saying this in special for people who help over | ||
# Facebook discussions. Even the ones without a personal computer yet. | ||
# SECURITY: | ||
# Reporting a Vulnerability: | ||
# Send e-mail to Emerson Rocha: rocha(at)ieee.org. | ||
################################################################################ | ||
|
||
#------------------------------------------------------------------------------# | ||
|
@@ -20,15 +49,9 @@ exit | |
#------------------------------------------------------------------------------# | ||
|
||
### Primeiro login______________________________________________________________ | ||
# Você, seja por usuario + senha, ou por Chave SSH, normlamente terá que acessar | ||
# diretamente como root. Excessões a esta regra (como VMs na AWS) geralmente | ||
# implicam em logar em um usuario não-root e executar como sudo. Mas nesta da | ||
# é por root mesmo nesse momento. | ||
ssh [email protected] | ||
|
||
### Atualizar o sistema operacional_____________________________________________ | ||
# O sistema operacional (neste caso, Ubuntu) normalmente não vai estar 100% | ||
# atualizado. Os comandos abaixo são uma boa prática pra fazer imediatamente | ||
sudo apt update -y | ||
sudo apt upgrade -y | ||
sudo apt autoremove -y | ||
|
@@ -82,4 +105,31 @@ cat /proc/sys/vm/vfs_cache_pressure | |
# 100, vamos alterar para 50 | ||
|
||
vim /etc/sysctl.conf | ||
# Adciona 'vm.vfs_cache_pressure=50' (sem aspas) no final do arquivo | ||
# Adciona 'vm.vfs_cache_pressure=50' (sem aspas) no final do arquivo | ||
|
||
##### VNstat [configuração inicial] ____________________________________________ | ||
# VNstat é uma ferramenta super eficiente que permite monitorar uso de rede | ||
# ao longo do mês | ||
# @see https://www.howtoforge.com/tutorial/vnstat-network-monitoring-ubuntu/ | ||
|
||
sudo apt install vnstat vnstati | ||
|
||
# O comando a seguir deve ser usado para decidir qual a interface a monitorar | ||
ifconfig | ||
# Escolha a network para iniciar monitoramento. Neste caso é ens3 | ||
|
||
vnstat -u -i ens3 | ||
|
||
## vnstat --iflist | ||
# Available interfaces: ens3 lo | ||
|
||
# O arquivo /etc/vnstat.conf deve estar marcado para nossa interface desejada | ||
sudo vim /etc/vnstat.conf | ||
# trocar eth0 pela network especifica | ||
# default interface | ||
# Interface "ens3" | ||
# Para ver em tempo real o uso de rede | ||
|
||
# Vamos iniciar vnstat para rodar imediatamente, e também iniciar com sistema | ||
sudo systemctl start vnstat | ||
sudo systemctl enable vnstat |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,35 @@ exit | |
# | ||
# IPv4: 149.56.130.178 | ||
# IPv6: 2607:5300:0201:3100:0000:0000:0000:6df7 | ||
# | ||
# Domain: | ||
# Full: elefante-borneu-yul-03.etica.ai (TTL: 15 min) | ||
# Short: ebyul03.etica.ai (TTL: 15 min) | ||
# | ||
# Domain, extras: | ||
# lb-ebyul.etica.ai (TTL: 2 min) | ||
# lb-eb.etica.ai (TTL: 2 min) | ||
# | ||
# Login: | ||
# ssh [email protected] | ||
# mosh [email protected] (TODO: install Mosh) | ||
# ssh [email protected] | ||
# mosh [email protected] (TODO: install Mosh) | ||
# | ||
# -----------------------------------------------------------------------------# | ||
# LICENSE: Public Domain | ||
# Except where otherwise noted, content on this server configuration and to | ||
# the extent possible under law, Emerson Rocha has waived all copyright and | ||
# related or neighboring rights to this work to Public Domain | ||
# | ||
# MAINTAINER: Emerson Rocha <rocha(at)ieee.org> | ||
# Keep in mind that several people help with suggestions, bugfixes and | ||
# inspiration and inspire without get names noted in places that software | ||
# developers look. I'm saying this in special for people who help over | ||
# Facebook discussions. Even the ones without a personal computer yet. | ||
# SECURITY: | ||
# Reporting a Vulnerability: | ||
# Send e-mail to Emerson Rocha: rocha(at)ieee.org. | ||
################################################################################ | ||
|
||
#------------------------------------------------------------------------------# | ||
|
@@ -70,4 +99,31 @@ cat /proc/sys/vm/vfs_cache_pressure | |
# 100, vamos alterar para 50 | ||
|
||
vim /etc/sysctl.conf | ||
# Adciona 'vm.vfs_cache_pressure=50' (sem aspas) no final do arquivo | ||
# Adciona 'vm.vfs_cache_pressure=50' (sem aspas) no final do arquivo | ||
|
||
##### VNstat [configuração inicial] ____________________________________________ | ||
# VNstat é uma ferramenta super eficiente que permite monitorar uso de rede | ||
# ao longo do mês | ||
# @see https://www.howtoforge.com/tutorial/vnstat-network-monitoring-ubuntu/ | ||
|
||
sudo apt install vnstat vnstati | ||
|
||
# O comando a seguir deve ser usado para decidir qual a interface a monitorar | ||
ifconfig | ||
# Escolha a network para iniciar monitoramento. Neste caso é ens3 | ||
|
||
vnstat -u -i ens3 | ||
|
||
## vnstat --iflist | ||
# Available interfaces: ens3 lo | ||
|
||
# O arquivo /etc/vnstat.conf deve estar marcado para nossa interface desejada | ||
sudo vim /etc/vnstat.conf | ||
# trocar eth0 pela network especifica | ||
# default interface | ||
# Interface "ens3" | ||
# Para ver em tempo real o uso de rede | ||
|
||
# Vamos iniciar vnstat para rodar imediatamente, e também iniciar com sistema | ||
sudo systemctl start vnstat | ||
sudo systemctl enable vnstat |