Enviado em 05/10/2019 - 15:47h
Fala galera, tudo bem?#!/bin/bash
####################################################################
# Simples script para listar informacoes do sistema #
#Lista informacoes de: Data, Disco, Usuario, Memoria e Processador#
####################################################################
#Sistema para mostrar dados do sistema
#Aqui o sistema faz o requerimento de permissão para apresentar os dados e #testa a resposta do usuário
VELOCIDADEINTERNET="$(speedtest-cli | grep Download:)"
echo -e "Digite seu nome: \n"
read -r nome;
echo /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo .::.::.:: Data Atual ::.::.::. >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
date >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo =============================== >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo .::.::.:: Uso de Disco ::.::.::. >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
df -h | grep /sda >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo =============================== >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo .::.::.:: Usuário ::.::.::. >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
w >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo =============================== >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo .::.::.:: Memória ::.::.::. >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
free -m >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo =============================== >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo .::.::.:: Processador ::.::. >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
cat /proc/cpuinfo | grep "model name" | sed 's/model name : //' | sed -n '1p' >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo ============================== >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo .:.:.:.:.:.:.:.: Velocidade Internet .:.:.:.:.:.:.:.: >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo $VELOCIDADEINTERNET >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
echo ============================== >> /run/user/1000/gvfs/smb-share:server=192.168.10.252,share=programas/ProgramasEScripts/ConfigPc/Relatorios/Maquina_${nome}_$HOSTNAME.txt
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Meu Fork do Plugin de Integração do CVS para o KDevelop
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Compartilhamento de Rede com samba em modo Público/Anônimo de forma simples, rápido e fácil
Cups: Mapear/listar todas as impressoras de outro Servidor CUPS de forma rápida e fácil
Criando uma VPC na AWS via CLI
Impressora Bematech MP4200TH rorando com a distribuição Zorin OS (0)
como fazer overclock na ram? (7)
Existe algum problema de atualizar uma versão lts para uma versão não ... (3)