Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
- Show Distribution Name and Version
  • Loading branch information
ElfQrin authored Feb 16, 2019
1 parent 30f8afd commit 906a2fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions _bash_profile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ~/.bash_profile

# BASH Shell Start-up
# r2018-08-03 fr2016-10-18
# r2019-02-16 fr2016-10-18
# by Valerio Capello - http://labs.geody.com/ - License: GPL v3.0

# Config
Expand Down Expand Up @@ -53,14 +53,15 @@ fi
echo

# Software version
lsb_release -ds
uname -a
echo "Bash version: $BASH_VERSION"
# Webserver version
echo -n "$(/usr/sbin/apache2 -v|head --lines=1) "; echo "$(/usr/sbin/apache2 -v|tail --lines=1)";
php -v|head --lines=1
mysql -V
# echo
# echo -n "Installed Packages: "; dpkg --get-selections | wc -l;
echo -n "Installed Packages: "; dpkg --get-selections | wc -l;
# echo "Last installed packages:"; grep install /var/log/dpkg.log | tail --lines=5;
echo

Expand All @@ -69,7 +70,7 @@ echo
echo -n "Machine: "; echo "$(cat /sys/class/dmi/id/product_name)";
# echo -n "Machine Type: "; echo "$MACHTYPE";
# echo -n "Board: "; echo "$(cat /sys/class/dmi/id/board_vendor) $(cat /sys/class/dmi/id/board_name)";
# echo -n "BIOS: "; echo "$(cat /sys/class/dmi/id/bios_vendor) $(cat /sys/class/dmi/id/bios_version) $(cat /sys/class/dmi/id/bios_date)";
# echo -n "BIOS: "; echo "$(cat /sys/class/dmi/id/bios_vendor) $(cat /sys/class/dmi/id/bios_vendor) $(cat /sys/class/dmi/id/bios_version) $(cat /sys/class/dmi/id/bios_date)";
echo -n "CPU: "; echo -n "$(grep 'model name' /proc/cpuinfo | head -1). ";
echo -n "Cores: "; grep -c 'processor' /proc/cpuinfo
free -mh | xargs | awk '{print "Memory: Size: " $8 " Used: " $9 " Free: " $10}';
Expand Down
4 changes: 3 additions & 1 deletion systatus.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# BASH Systatus
# r2018-08-03 fr2016-10-18
# r2019-02-16 fr2016-10-18
# by Valerio Capello - http://labs.geody.com/ - License: GPL v3.0

# Config
Expand Down Expand Up @@ -40,10 +40,12 @@ fi
echo

# Software version
lsb_release -ds
uname -a
echo "Bash version: $BASH_VERSION"
# Webserver version
echo -n "$(/usr/sbin/apache2 -v|head --lines=1) "; echo "$(/usr/sbin/apache2 -v|tail --lines=1)";
openssl version -v
php -v|head --lines=1
mysql -V
echo
Expand Down

0 comments on commit 906a2fd

Please sign in to comment.