Welcome to Gaia! ::

The Official Linux Users of Gaia

Back to Guilds

A Guild for Linux, BSD, Mac, Solaris, and other Unix like operating systems. 

Tags: Computer Help, Linux, BSD (Berkeley Software Distrobution), Mac (Macintosh), Unix 

Reply Tech Support
Before posting here, READ THIS!

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

vendion Gear
Captain

PostPosted: Sun Feb 18, 2007 9:16 am


Before posting here I ask the you check our How-To subforum, you never know an answer to your problem by be posted there with a way to fix it. If you know for a fact that it is not there then go ahead and post your problem here and we will help you take care of it.
PostPosted: Tue Jul 01, 2008 8:41 pm


Just added (for helpful reasons) if you are asked or feel the need to post information on your system you may want to consider using this BASH script:

#/bin/sh

#simple script to give a summary of system information

# Author:
# http://www.pixelbeat.org/
# Notes:
# Unless you run as root, disk info can't be shown
# Changes:
# V0.1, 16 Nov 2005, Initial release
# V0.s, 22 Oct 2007, Tweak to ensure cdrom info shown.
# Comment out partition info as a bit noisy.


find_sbin_cmd() {
for base in / /usr/ /usr/local; do
if [ -e $base/sbin/$1 ] then
echo $base/sbin/$1
exit
fi
done
}
FDISK=`which fdisk 2>/dev/null`
LSUSB=`which lsusb 2>/dev/null`
LSPCI=`which lspci 2>/dev/null`
[ -z "$FDISK" ] && FDISK=`find_sbin_cmd fdisk`
[ -z "$LSUSB" ] && LSUSB=`find_sbin_cmd lsusb`
[ -z "$LSPCI" ] && LSPCI=`find_sbin_cmd lspci`

echo "============= Drives ============="
(
sed -n 's/.* ([hs]d[a-f]$)/1/p' < /proc/partitions
[ -e /dev/cdrom ] && readlink -f /dev/cdrom | cut -d/ -f3
) |
sort | uniq |
while read disk; do
echo -n "/dev/$disk: "
if [ ! -r /dev/$disk ] then
echo "permission denied" #could parse /proc for all but
else
size=`$FDISK -l /dev/$disk | grep Disk | cut -d' ' -f3-4 | tr -d ,`
rest=`/sbin/hdparm -i /dev/$disk 2>/dev/null | grep Model`
rest=`echo $rest` #strip spaces
echo -n "$rest"
if [ ! -z "$size" ] then
echo ", Size=$size"
else
echo
fi
fi
done

#if [ `id -u` == "0" ] then
#echo "========== Partitions =========="
#$FDISK -l 2>/dev/null
#fi

echo "============= CPUs ============="
grep "model name" /proc/cpuinfo #show CPU(s) info

echo "============= MEM ============="
KiB=`grep MemTotal /proc/meminfo | tr -s ' ' | cut -d' ' -f2`
MiB=`expr $KiB / 1024`
#note various mem not accounted for, so round to appropriate size
#on my 384MiB system over 8MiB was unaccounted for
#on my 1024MiB system over 20MiB was unaccounted for so round to next highest power of 2
round=32
echo "`expr ( ( $MiB / $round ) + 1 ) * $round` MiB"

echo "============= PCI ============="
$LSPCI -tv

echo "============= USB ============="
$LSUSB


This script when ran as root prints the following
sysinfo
============= Drives =============
/dev/sda: Model=Hitachi HTS541612J9SA00 , FwRev=SBDOC70P, SerialNo= SB2D41E4CMURWE,Size=120.0 GB
0x000e7771
/dev/sr0: Model=PIONEER DVD-RW DVR-K17RS , FwRev=1.00 , SerialNo=
============= CPUs =============
model name : AMD Turion(tm) 64 X2 Mobile Technology TL-56
model name : AMD Turion(tm) 64 X2 Mobile Technology TL-56
============= MEM =============
768 MiB
============= PCI =============
-[0000:00]-+-00.0 ATI Technologies Inc RS480 Host Bridge
+-01.0-[0000:01]----05.0 ATI Technologies Inc RS485 [Radeon Xpress 1100IGP]
+-04.0-[0000:02-03]----00.0 Broadcom Corporation BCM94311MCG wlan mini-PCI
+-05.0-[0000:04-05]--
+-12.0 ATI Technologies Inc IXP SB400 Serial ATA Controller
+-13.0 ATI Technologies Inc IXP SB400 USB Host Controller
+-13.1 ATI Technologies Inc IXP SB400 USB Host Controller
+-13.2 ATI Technologies Inc IXP SB400 USB2 Host Controller
+-14.0 ATI Technologies Inc IXP SB400 SMBus Controller
+-14.1 ATI Technologies Inc IXP SB400 IDE Controller
+-14.2 ATI Technologies Inc IXP SB4x0 High Definition Audio Controller
+-14.3 ATI Technologies Inc IXP SB400 PCI-ISA Bridge
+-14.4-[0000:06-08]--+-01.0 Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
| +-04.0 ENE Technology Inc CB-712/4 Cardbus Controller
| +-04.1 ENE Technology Inc ENE PCI Memory Stick Card Reader Controller
| +-04.2 ENE Technology Inc ENE PCI Secure Digital Card Reader Controller
| +-04.3 ENE Technology Inc FLASH memory: ENE Technology Inc:
| -04.4 ENE Technology Inc SD/MMC Card Reader Controller
+-18.0 Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
+-18.1 Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
+-18.2 Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
-18.3 Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] MiscellaneousControl
============= USB =============
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 047d:1048 Kensington
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 5986:0100 Acer, Inc
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

vendion Gear
Captain

Reply
Tech Support

 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum