blob: 78381915ad392051fa87d2323c80a2712ad785e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
#!/bin/sh
#requires the following
# free, hostname, grep, cut, awk, uname
HOSTNAME=`hostname -s`
IP_ADDRS=`ifconfig | grep 'inet addr' | grep -v '255.0.0.0' | cut -f2 -d':' | awk '{print $1}'`
IP_ADDRS=`echo $IP_ADDRS | sed 's/\n//g'`
#memory
MEMORY=`free | grep Mem | awk '{print $2}'`
#cpu info
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=`uname -p`
OS_NAME=`uname -s`
OS_OS=`uname -o`
OS_KERNEL=`uname -r`
OS_RELEASE=`cat /etc/rogentos-release`
OS_EDITION=`cat /etc/rogentos-edition`
ESELECT_KERNEL=`eselect --no-color kernel list`
ESELECT_OPENGL=`eselect --no-color opengl list`
ESELECT_JAVA=`eselect --no-color java-vm list`
ESELECT_JAVAP=`eselect --no-color java-nsplugin list`
EQUO=`equo --version`
PORTAGE=`emerge --version`
UPTIME=`uptime`
MEM=`free -t -m`
SPACE=`df -TH`
PCIINFO=`lspci | cut -f3 -d':'`
#Another way to do it
#PCIINFO=`lspci | cut -f3 -d':'`
LSUSB=`lsusb`
LSMOD=`lsmod`
#print it out
echo "$HOSTNAME"
echo "--------------------------------------------------------------------"
echo "Hostname : $HOSTNAME"
echo "Host Address : $IP_ADDRS"
echo "Main Memory : $MEMORY"
echo "Number of CPUs : $CPUS"
echo "CPU Type : $CPU_TYPE2 $CPU_TYPE3 $CPU_MHZ MHz"
echo "OS Release : $OS_RELEASE"
echo "OS Edition : $OS_EDITION"
echo "Kernel Name : $OS_NAME $OS_OS"
echo "Kernel Version : $OS_KERNEL"
echo "Uptime : $UPTIME"
echo "--------------------------------------------------------------------"
echo
echo "Entropy Version"
echo "$EQUO"
echo
echo "Portage Version"
echo "$PORTAGE"
echo "--------------------------------------------------------------------"
echo
echo "Kernel List"
echo "$ESELECT_KERNEL"
echo "Your Kernel Should Be Set To:"
echo "$OS_KERNEL"
echo "Use eselect kernel set #"
echo "--------------------------------------------------------------------"
echo
echo "OpenGL List"
echo "$ESELECT_OPENGL"
echo "The above should be set to your video card, see lspci"
echo "Use eselect opengl set #"
echo "--------------------------------------------------------------------"
echo
echo "Java VM List"
echo "$ESELECT_JAVA"
echo "Use java-config --set-system-vm #"
echo "--------------------------------------------------------------------"
echo
echo "Java-nsplugin List"
echo "$ESELECT_JAVAP"
echo "Use eselect java-nsplugin set #"
echo "--------------------------------------------------------------------"
echo
echo "Devices - lspci"
echo "--------------------------------------------------------------------"
echo "$PCIINFO"
echo "--------------------------------------------------------------------"
echo
echo "Devices - lsmod"
echo "--------------------------------------------------------------------"
echo "$LSMOD"
echo "--------------------------------------------------------------------"
echo
echo "Devices - lsusb"
echo "--------------------------------------------------------------------"
echo "$LSUSB"
echo "--------------------------------------------------------------------"
echo
echo "Memory"
echo "--------------------------------------------------------------------"
echo "$MEM"
echo "--------------------------------------------------------------------"
echo
echo "Disk Space"
echo "--------------------------------------------------------------------"
echo "$SPACE"
echo "--------------------------------------------------------------------"
echo
|