hey fellow humans,
im trying to write a small application to do the following for ubuntu or other linux dists.
-collect hardware information like motherboard, RAM, display adapters, storage available and processor
-send the info toa webserver
the next step is not important now, i need to know if theres some kind of file on any distribution with the hardware information (even if theres no drivers installed for it). i tried the x-server conf file but most of the times ive tried it on other pc i get the default names like
anyone have any ideas?Code:Device "Configured Video Device"
That info is all in the /proc/ directory. You could examine each file/dir there. You could also use dmesg:
output:Code:less /var/log/dmesgdmesg | grep -i cpu
Outer examples:Code:[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] KERNEL supported cpus: [ 0.000000] Transmeta TransmetaCPU [ 0.000000] SMP: Allowing 4 CPUs, 2 hotplug CPUs [ 0.000000] PERCPU: Allocating 45056 bytes of per cpu data [ 0.000000] NR_CPUS: 64, nr_cpu_ids: 4, nr_node_ids 1 [ 0.000000] Initializing CPU#0 [ 0.004000] SLUB: Genslabs=12, HWalign=128, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.004000] HPET: 3 timers in total, 0 timers will be used for per-cpu timer [ 0.004000] Initializing cgroup subsys cpuacct [ 0.004000] CPU: Trace cache: 12K uops, L1 D cache: 16K [ 0.004000] CPU: L2 cache: 2048K [ 0.004000] CPU: Physical Processor ID: 0 [ 0.004000] CPU: Processor Core ID: 0 [ 0.485029] CPU0: Intel(R) Pentium(R) 4 CPU 3.00GHz stepping 03 [ 0.004000] Initializing CPU#1 [ 0.004000] CPU: Trace cache: 12K uops, L1 D cache: 16K [ 0.004000] CPU: L2 cache: 2048K [ 0.004000] CPU: Physical Processor ID: 0 [ 0.004000] CPU: Processor Core ID: 0 [ 0.572571] CPU1: Intel(R) Pentium(R) 4 CPU 3.00GHz stepping 03 [ 0.572596] checking TSC synchronization [CPU#0 -> CPU#1]: passed. [ 0.576051] Brought up 2 CPUs [ 0.576109] CPU0 attaching sched-domain: [ 0.576124] CPU1 attaching sched-domain: [ 1.364016] Switched to high resolution mode on CPU 0 [ 1.364658] Switched to high resolution mode on CPU 1 [ 2.054580] cpufreq: No nForce2 chipset. [ 2.129781] processor ACPI_CPU:00: registered as cooling_device0 [ 2.129830] processor ACPI_CPU:01: registered as cooling_device1 [ 5.068725] cpuidle: using governor ladder [ 5.068729] cpuidle: using governor menu [ 5.070952] processor ACPI_CPU:02: hash matches
for Video:Code:dmesg | grep -i cd dmesg | grep -i usb
Code:less /var/log/dmesg | grep -i Video
awesome.
just what i needed
thnx alooot
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks