Skip to content

Commit

Permalink
elefante-borneu-yul{01,02,03} (#45): instalado vnstat; apontado subdo…
Browse files Browse the repository at this point in the history
…minios
  • Loading branch information
fititnt committed May 26, 2019
1 parent 51a143b commit 787a800
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 9 deletions.
58 changes: 57 additions & 1 deletion logbook/elefante-borneu-yul-01.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
################################################################################

#------------------------------------------------------------------------------#
Expand Down Expand Up @@ -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
64 changes: 57 additions & 7 deletions logbook/elefante-borneu-yul-02.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
################################################################################

#------------------------------------------------------------------------------#
Expand All @@ -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
Expand Down Expand Up @@ -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
58 changes: 57 additions & 1 deletion logbook/elefante-borneu-yul-03.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
################################################################################

#------------------------------------------------------------------------------#
Expand Down Expand Up @@ -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

0 comments on commit 787a800

Please sign in to comment.