πŸ’Ύ Archived View for tilde.team β€Ί ~rami β€Ί infoscript.gmi captured on 2023-06-14 at 15:30:48. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

~Rami β‚ͺ MANUALS

Χ¨ΧžΧ™

SUBJECT: Global GNU/Linux System Summary

AUTHOR: Rami Rosenfeld

DATE: 21/07/22

TIME: 15.00

LANG: en, ru

LICENSE: GNU FDL 1.3. GNU GPL 3.

TAGS: gnu, software, opensource, linux, system, terminal, console, man, manual, bash, summary

GLOBAL GNU/LINUX SYSTEM SUMMARY

INTRO

Π‘ΠΊΡ€ΠΈΠΏΡ‚ для BASH. Π‘ ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ Π½Π°Π±ΠΎΡ€Π° стандартных ΠΊΠΎΠΌΠ°Π½Π΄ GNU/Linux быстро ΠΈ качСствСнно опрСдСляСт мноТСствСнныС ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρ‹ ОБ ΠΈ систСмного Π±Π»ΠΎΠΊΠ° (software and hardware):

GLOBAL

HARDWARE INFO

Π’ΠΠ–ΠΠž!

Π’Π½ΠΈΠΌΠ°Π½ΠΈΠ΅! Никогда Π½Π΅ запускайтС Ρ‡ΡƒΠΆΠΈΠ΅ скрипты Π±Π΅Π· ΠΏΡ€Π΅Π΄Π²Π°Ρ€ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠ³ΠΎ просмотра содСрТимого ΠΈ Π°Π½Π°Π»ΠΈΠ·Π° ΠΈΡ… бСзопасности.

Π”Π°Π½Π½Ρ‹ΠΉ скрипт ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅Ρ‚ ΠΈΡΠΊΠ»ΡŽΡ‡ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎ ΠΎΠ±Ρ‰Π΅ΡƒΠΏΠΎΡ‚Ρ€Π΅Π±ΠΈΠΌΡ‹Π΅ ΠΈ Ρ…ΠΎΡ€ΠΎΡˆΠΎ извСстныС ΠΊΠΎΠΌΠ°Π½Π΄Ρ‹ GNU/Linux; ΠΈΡΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅ составляСт ΡƒΡ‚ΠΈΠ»ΠΈΡ‚Π° xdpyinfo (Ρ€Π°Π·Ρ€Π΅ΡˆΠ΅Π½ΠΈΠ΅ экрана), Ρ‚Ρ€Π΅Π±ΡƒΡŽΡ‰Π°Ρ Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠΉ установки Π² Π½Π΅ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Ρ… ОБ.

ΠŸΡ€ΠΎΡˆΡƒ Ρ‚Π°ΠΊΠΆΠ΅ ΡƒΡ‡Π΅ΡΡ‚ΡŒ:

- ΠΈΠ·Π½Π°Ρ‡Π°Π»ΡŒΠ½ΠΎ скрипт создавался для RPM-дистрибутивов (RHEL, Fedora, CentOS, Oracle) ΠΈ, Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ (Π½ΠΎ Π½Π΅ ΠΎΠ±ΡΠ·Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎ!) Π² Π΄Ρ€ΡƒΠ³ΠΈΡ… ОБ Π½Π΅ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΎΠ½Π°Π» Π±ΡƒΠ΄Π΅Ρ‚ ΠΎΠ³Ρ€Π°Π½ΠΈΡ‡Π΅Π½;

- Ρ‡Ρ‚ΠΎΠ±Ρ‹ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ ΠΏΠΎΠ»Π½ΡƒΡŽ сводку ΠΎ систСмС, Π²Ρ‹ Π΄ΠΎΠ»ΠΆΠ½Ρ‹ Π·Π°ΠΏΡƒΡΡ‚ΠΈΡ‚ΡŒ Π΅Π³ΠΎ с административными ΠΏΡ€Π°Π²Π°ΠΌΠΈ, Ρ‚.Π΅. ΠΎΡ‚ root; Π²ΠΏΡ€ΠΎΡ‡Π΅ΠΌ, запуск ΠΎΡ‚ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ Ρ‚ΠΎΠΆΠ΅ Π²ΠΎΠ·ΠΌΠΎΠΆΠ΅Π½;

- информация ΠΎ Ρ‚Π΅ΠΊΡƒΡ‰Π΅ΠΌ IP, DNS-сСрвСрС, Π³Π΅ΠΎΠ»ΠΎΠΊΠ°Ρ†ΠΈΠΈ ΠΈ Ρ‚.ΠΏ. Π±ΡƒΠ΄Π΅Ρ‚ ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½Π° Ρ‚ΠΎΠ»ΡŒΠΊΠΎ Π² случаС, Ссли Π°ΠΊΡ‚ΠΈΠ²ΠΈΡ€ΠΎΠ²Π°Π½ΠΎ ΠΈΠ½Ρ‚Π΅Ρ€Π½Π΅Ρ‚-соСдинСниС.

Π˜Π‘ΠŸΠžΠ›Π¬Π—ΠžΠ’ΠΠΠ˜Π•

1. Π‘ΠΊΠΎΠΏΠΈΡ€ΡƒΠΉΡ‚Π΅ тСкст скрипта, ΠΏΡ€ΠΈΠ²Π΅Π΄Π΅Π½Π½Ρ‹ΠΉ Π½ΠΈΠΆΠ΅, начиная со Π·Π½Π°ΠΊΠ° "#" ΠΈ заканчивая послСднСй строкой "echo".

2. Π‘ΠΎΠ·Π΄Π°ΠΉΡ‚Π΅ Π² тСкстовом Ρ€Π΅Π΄Π°ΠΊΡ‚ΠΎΡ€Π΅ Π½ΠΎΠ²Ρ‹ΠΉ пустой Ρ„Π°ΠΉΠ», Π²ΡΡ‚Π°Π²ΡŒΡ‚Π΅ Π² Π½Π΅Π³ΠΎ содСрТимоС Π±ΡƒΡ„Π΅Ρ€Π° ΠΎΠ±ΠΌΠ΅Π½Π° ΠΈ сохранитС ΠΏΠΎΠ΄ ΠΈΠΌΠ΅Π½Π΅ΠΌ .info.sh (ΠΈΠ»ΠΈ ΠΏΠΎΠ΄ Π΄Ρ€ΡƒΠ³ΠΈΠΌ, Π½ΠΎ ΠΎΠ±ΡΠ·Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎ ΠΎΠΊΠ°Π½Ρ‡ΠΈΠ²Π°ΡŽΡ‰ΠΈΠΌΡΡ Π½Π° ".sh").

3. РазмСститС скрипт Π² любом ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³Π΅, Π½Π°ΠΏΡ€ΠΈΠΌΠ΅Ρ€ Π² ~/.

4. ЗапуститС Ρ‚Π΅Ρ€ΠΌΠΈΠ½Π°Π» (консоль), ΠΏΠ΅Ρ€Π΅ΠΉΠ΄ΠΈΡ‚Π΅ Π² ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³, содСрТащий скрипт, ΠΈ сдСлайтС Ρ„Π°ΠΉΠ» исполнимым: chmod 700 .info.sh

5. НС покидая ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³, запуститС скрипт ΠΊΠΎΠΌΠ°Π½Π΄ΠΎΠΉ: ./.info.sh

NOTE

#
# Global GNU/Linux System Summary: easy check your hardware.
# Version: 1.0.1
# Copyright: πŸ„― Rami Rosenfeld, 2022. https://rami.tilde.team
# GNU GPL, v. 3: https://www.gnu.org/licenses/gpl-3.0.html
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see https://www.gnu.org/licenses/.

#!/bin/sh
echo 
echo Global GNU/Linux System Summary: easy check your hardware.
echo 
echo ATTENTION!
echo For more correct results you would have to be root!
echo 

HOSTNAME=`hostname`
WHOAMI=`whoami`
W=`w`
DATE=`date`
UTIME=`date +%s`
MEMORY=`free | grep Mem | awk '{print $2}'`
CPUS=`cat /proc/cpuinfo | grep processor | wc -l | awk '{print $1}'`
CPU_MHZ=`cat /proc/cpuinfo | grep MHz | tail -n1 | awk '{print $4}'`
CPU_TYPE=`cat /proc/cpuinfo | grep vendor_id | tail -n 1 | awk '{print $3}'`
CPU_TYPE2=`uname -m`
CPU_TYPE3=`lscpu`
RESOLVER=`dig resolver.dnscrypt.info TXT +short`
IP=`dig +short myip.opendns.com @resolver1.opendns.com`
MEMORY_USAGE=`free -m | awk 'NR==2{printf "- CURRENT RAM USAGE: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'`
MEM_INFO_1=`cat /proc/meminfo`
MEM_INFO_2=`dmidecode -t 17`
OS_NAME=`uname -o`
ARC=`uname -m`
KERNEL=`uname -r`
RES=`xdpyinfo | awk '/dimensions/ {print $2}'`
HDD_1=`df -TH`
HDD_2=`lsblk -d -e 7 -o NAME,ROTA,DISC-MAX,MODEL`
HDD_3=`du -hs ~/`
PART=`lsblk -f`
PCIINFO=`lspci | cut -f3 -d':'`
IFCONFIG=`ifconfig`
LSUSB=`lsusb`
NETSTAT=`netstat -tupn`

echo
echo "================= SYSTEM SUMMARY ================="
echo
echo "- LOCAL DATE AND TIME: $DATE"
echo "- UNIX EPOCH TIME: $UTIME"
echo
echo "- HOSTNAME: $HOSTNAME"
echo "- CURRENT USER: $WHOAMI"
echo
echo "- OS NAME: $OS_NAME"
echo "- ARCHITECTURE (32/64): $ARC"
echo "- KERNEL RELEASE: $KERNEL"
echo
echo "- NUMBER OF CPUS: $CPUS"
echo "- CPU TYPE:" "$CPU_TYPE" 
echo "- CURRENT CPU FREQUENCY:" "$CPU_MHZ MHz"
echo "$MEMORY_USAGE"
echo "- RAM SIZE: $MEMORY"
echo "- HOME DIRECTORY USAGE: $HDD_3"
echo
echo "- CURRENT DNS SERVER: $RESOLVER"
echo "- CURRENT PUBLIC IP: $IP"
echo
echo "================== HARDWARE INFO =================="
echo
echo "- CPU:"
echo
echo "$CPU_TYPE3"
echo
echo "- RAM:"
echo
echo "$MEM_INFO_1"
echo
echo "$MEM_INFO_2"
echo
echo "- SCREEN RESOLUTION:"
echo
echo "$RES px"
echo
echo "- FILESYSTEMS:"
echo
echo "$HDD_1"
echo
echo "- DISKS:"
echo
echo "$HDD_2"
echo
echo  "- PARTITIONS:"
echo
echo "$PART"
echo
echo "- DEVICES:"
echo
echo "$PCIINFO"
echo
echo "- USB:"
echo
echo "$LSUSB"
echo
echo "- NETWORK INTERFACES:"
echo
echo "$IFCONFIG"
echo
echo "- NETWORK CONNECTIONS:"
echo
echo "$NETSTAT"
echo
echo "- UPTIME AND USERS ONLINE:"
echo
echo "$W"
echo
echo ====================== THE END! ======================
echo
echo Global GNU/Linux System Summary: easy check your hardware.
echo Copyright: πŸ„― Rami Rosenfeld, 2022. https://rami.tilde.team
echo GNU GPL, v. 3: https://www.gnu.org/licenses/gpl-3.0.html
echo

β‚ͺ Back to home β‚ͺ

πŸ„― Rami Rosenfeld, 2022. GNU FDL 1.3.

πŸ„― Rami Rosenfeld, 2022. GNU GPL 3.