πΎ Archived View for tilde.team βΊ ~rami βΊ infoscript.gmi captured on 2023-07-10 at 15:44:21. Gemini links have been rewritten to link to archived content
β¬ οΈ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Χ¨ΧΧ
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
Π‘ΠΊΡΠΈΠΏΡ Π΄Π»Ρ 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
# # 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
π― Rami Rosenfeld, 2022. GNU FDL 1.3.
π― Rami Rosenfeld, 2022. GNU GPL 3.