Myhard - Informações sobre seu hardware

Publicado por Fernando T. Da Silva (última atualização em 01/06/2016)

[ Hits: 3.340 ]

Homepage: http://meumundotux.blogspot.com.br/

Download myhard.sh




Simples script em bash para exibir algumas informações do seu hardware, com os comandos padrão da distro.

  



Esconder código-fonte

# Símples script em bash para obter informações básicas do sistema
echo "Myhard 1.0 por nandosilva - 2016" >> hardinfo.log
echo  >> hardinfo.log
echo "*** Sistema ***" >> hardinfo.log
echo >> hardinfo.log
cat /etc/os-release >> hardinfo.log
echo >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Data da instalação ***" >> hardinfo.log 
echo >> hardinfo.log 
ls -lct /etc | tail -1 | awk '{print $6, $7, $8}' >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Processador ***" >> hardinfo.log 
echo >> hardinfo.log 
head -n 29 /proc/cpuinfo >> hardinfo.log 
echo >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Memória RAM e SWAP (em MB) ***" >> hardinfo.log 
echo >> hardinfo.log 
free -m  >> hardinfo.log 
echo >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Mídias ***" >> hardinfo.log 
echo  >> hardinfo.log 
lsblk >> hardinfo.log 
echo  >> hardinfo.log 
echo ======================================================================== >> hardinfo.log 
echo "*** Unidades montadas ***"  >> hardinfo.log 
echo  >> hardinfo.log 
df -hT >> hardinfo.log 
echo  >> hardinfo.log 
echo ======================================================================== >> hardinfo.log 
echo "*** lspci ***" >> hardinfo.log 
echo  >> hardinfo.log 
lspci  >> hardinfo.log 
echo  >> hardinfo.log 
echo ======================================================================== >> hardinfo.log 
echo "*** lsusb ***" >> hardinfo.log 
echo  >> hardinfo.log 
lsusb  >> hardinfo.log 
echo  >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Uname ***" >> hardinfo.log 
echo >> hardinfo.log 
uname -a >> hardinfo.log
echo  >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Rede ***" >> hardinfo.log 
echo  >> hardinfo.log
echo       ifconfig >> hardinfo.log
echo  >> hardinfo.log
ifconfig -a  >> hardinfo.log
echo  >> hardinfo.log
echo  Route >>  hardinfo.log
echo >>  hardinfo.log
route >>  hardinfo.log
echo >>  hardinfo.log
echo "Nome do computador (Hostname)" >>  hardinfo.log
echo >>  hardinfo.log
hostname >>  hardinfo.log
echo  >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Resolução de telas suportadas ***" >>  hardinfo.log
echo >>  hardinfo.log
xrandr >>  hardinfo.log
echo  >> hardinfo.log
echo ======================================================================== >> hardinfo.log
echo "*** Driver utilizado pelo X para sua placa de vídeo ***"  >> hardinfo.log
echo  >> hardinfo.log
grep -B1 "/drivers" /var/log/Xorg.0.log | head -n 2 >>  hardinfo.log
echo  >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Placa de som ***"  >> hardinfo.log 
echo >> hardinfo.log 
aplay -l  >> hardinfo.log 
echo >> hardinfo.log 
echo ------------------------------------------------ >> hardinfo.log 
echo  >> hardinfo.log
echo "*** Dispositivo de gravação (arecord -l) ***"  >> hardinfo.log 
echo >> hardinfo.log 
arecord -l  >> hardinfo.log 
echo >> hardinfo.log 
echo ------------------------------------------------ >> hardinfo.log
echo >> hardinfo.log 
echo "*** Cards (cat /proc/asound/cards) ***" >> hardinfo.log 
echo  >> hardinfo.log 
cat /proc/asound/cards >> hardinfo.log 
echo  >> hardinfo.log 
echo  ----------------------------------------------- >> hardinfo.log 
echo  >> hardinfo.log
echo "*** Módulos do áudio (cat /proc/asound/modules) ***" >> hardinfo.log
echo  >> hardinfo.log 
cat /proc/asound/modules >> hardinfo.log
echo  >> hardinfo.log 
echo  -----------------------------------------------  >> hardinfo.log 
echo  >> hardinfo.log
echo "Audio (lspci -v | grep -A7 -i "audio")" >> hardinfo.log 
echo >> hardinfo.log 
lspci -v | grep -A7 -i "audio" >> hardinfo.log 
echo  >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Webcam - v4l2-ctl ***" >> hardinfo.log 
echo  >> hardinfo.log
v4l2-ctl --info >> hardinfo.log
echo  >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo "*** Idioma do sistema - locale ***"  >> hardinfo.log 
echo >> hardinfo.log 
locale >> hardinfo.log 
echo ======================================================================== >> hardinfo.log
echo
echo
echo "Relatório criado em:"  >> hardinfo.log
date  >> hardinfo.log 
echo Concluído




Scripts recomendados

Proxy

Criador de VirtualHosts Apache no Ubuntu e Debian

Instalado novas interfaces no Ubuntu 12.04

Wine System Font 1.0

Tocar listas de músicas usando mpg123 e kdialog ou Xdialog


  

Comentários

Nenhum comentário foi encontrado.


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts