This Bash script provides a quick overview of system information, including CPU load, memory usage, disk information, external IP addresses, and more. The script is designed to be run in a terminal environment.
-
lm-sensors: Install using:
# Debian apt-get install lm-sensors # RHEL yum install lm_sensors
-
lsb_release: Install using:
# Debian apt-get install lsb-core # RHEL yum install redhat-lsb-core
- Fail2ban: The script checks for the existence and readability of Fail2ban logs.
-
SSH Configuration:
vim /etc/ssh/sshd_config
Set
PrintMotd no
. -
Edit the Login Configuration:
vim /etc/pam.d/login
Comment out the line
# session optional pam_motd.so
. -
Add to Profile:
vim /etc/profile
Add
/path/to/script.sh
at the bottom. -
Drop the Script: Drop the script file at
/path/to/script.sh
.
Simply execute the script in a terminal:
bash /path/to/script.sh
- The script provides information on CPU load, memory usage, disk utilization, external IP addresses, and more.
- It includes a timeout feature to avoid long hangs during SSH login.
This script is provided as-is and may require adjustments based on your system configuration. Use it at your own risk.