Terminal: Hardware Specs to .HTML File

Interactive data visualization falls apart pretty quickly if the machine’s specs are not up to par. The last thing you want is your visualization to be slow and clunky.

So when planning the graceful degradation of a visualization across a variety of systems, it is important to put some careful thought into testing things such as the creation, deletion and user-interaction of the visual elements you will be using.

This helps to define on which systems to scale back on visual complexity and maintain the user-experience, allowing your users to retain the kind of seamless control over data that will lead to deeper insights into the pattens contained within the data.

I found this really cool terminal tip online that exports your machine specs to an .html file and thought it was well-worth repeating for all the web-devs out there:

machine-specs-to-html.sh

The output looks something like this: (except uglier, I un-styled this a little)

id:
aqua
description: Desktop Computer
product: P5K
vendor: System manufacturer
version: System Version
serial: System Serial Number
width: 32 bits
capabilities: smbios-2.4 dmi-2.4 smp-1.4 smp
configuration:
boot=normal
chassis=desktop
cpus=4
uuid=4030D2C7-8DFE-D511-952F-001E8CBE1A42
id:
core
description: Motherboard
product: P5K
vendor: ASUSTeK Computer INC.
physical id:
0
version: Rev 1.xx
serial: MS6C81B31612608
slot: To Be Filled By O.E.M.

<

table class=”blog-comparison” summary=”attributes of firmware”> id:

firmware

description: BIOS vendor: American Megatrends Inc. physical id:

0
version: 1006 (03/05/2008) size: 64KiB capacity: 960KiB capabilities: isa pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 <dfn title=”3.5″ 2.88MB floppy”>int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification

id:
cpu:0
description: CPU
product: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz
vendor: Intel Corp.
physical id:
4
bus info:
cpu@0
version: 6.7.7
serial: 0001-0677-0000-0000-0000-0000
slot: LGA775
size: 1998MHz
capacity: 3800MHz
width: 64 bits
clock: 333MHz
capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx x86-64 constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm tpr_shadow vnmi flexpriority cpufreq
configuration:
id=1
id:
cache:0
description: L1 cache
physical id:
5
slot: L1-Cache
size: 128KiB
capacity: 128KiB
capabilities: internal write-back data
id:
cache:1
description: L2 cache
physical id:
6
slot: L2-Cache
size: 6MiB
capacity: 6MiB
capabilities: internal write-back instruction

id:
logicalcpu:0
description: Logical CPU
physical id:
1.1
width: 64 bits
capabilities: logical

id:
logicalcpu:1
description: Logical CPU
physical id:
1.2
width: 64 bits
capabilities: logical
id:
logicalcpu:2
description: Logical CPU
physical id:
1.3
width: 64 bits
capabilities: logical
id:
logicalcpu:3
description: Logical CPU
physical id:
1.4
width: 64 bits
capabilities: logical
id:
memory
description: System Memory
physical id:
3a
slot: System board or motherboard
size: 2GiB
capacity: 2GiB
id:
bank:0
description: DIMM DDR2 Synchronous 800 MHz (1.2 ns)
product: PartNum0
vendor: Manufacturer0
physical id:
0
serial: SerNum0
slot: DIMM0
size: 1GiB
width: 64 bits
clock: 800MHz (1.2ns)
id:
bank:1
description: DIMM [empty]
product: PartNum1
vendor: Manufacturer1
physical id:
1
serial: SerNum1
slot: DIMM1
id:
bank:2
description: DIMM DDR2 Synchronous 800 MHz (1.2 ns)
product: PartNum2
vendor: Manufacturer2
physical id:
2
serial: SerNum2
slot: DIMM2
size: 1GiB
width: 64 bits
clock: 800MHz (1.2ns)
id:
bank:3
description: DIMM [empty]
product: PartNum3
vendor: Manufacturer3
physical id:
3
serial: SerNum3
slot: DIMM3
id:
cpu:1
physical id:
1
bus info:
cpu@1
version: 6.7.7
serial: 0001-0677-0000-0000-0000-0000
size: 1998MHz
capacity: 1998MHz
capabilities: vmx ht cpufreq
configuration:
id=1
id:
logicalcpu:0
description: Logical CPU
physical id:
1.1
capabilities: logical
id:
logicalcpu:1
description: Logical CPU
physical id:
1.2
capabilities: logical
id:
logicalcpu:2
description: Logical CPU
physical id:
1.3
capabilities: logical
id:
logicalcpu:3
description: Logical CPU
physical id:
1.4
capabilities: logical
id:
cpu:2
physical id:
2
bus info:
cpu@2
version: 6.7.7
serial: 0001-0677-0000-0000-0000-0000
size: 1998MHz
capacity: 1998MHz
capabilities: vmx ht cpufreq
configuration:
id=0
id:
logicalcpu:0
description: Logical CPU
physical id:
0.1
capabilities: logical
id:
logicalcpu:1
description: Logical CPU
physical id:
0.2
capabilities: logical
id:
logicalcpu:2
description: Logical CPU
physical id:
0.3
capabilities: logical
id:
logicalcpu:3
description: Logical CPU
physical id:
0.4
capabilities: logical
id:
cpu:3
physical id:
3
bus info:
cpu@3
version: 6.7.7
serial: 0001-0677-0000-0000-0000-0000
size: 1998MHz
capacity: 1998MHz
capabilities: vmx ht cpufreq
configuration:
id=0
id:
logicalcpu:0
description: Logical CPU
physical id:
0.1
capabilities: logical
id:
logicalcpu:1
description: Logical CPU
physical id:
0.2
capabilities: logical
id:
logicalcpu:2
description: Logical CPU
physical id:
0.3
capabilities: logical
id:
logicalcpu:3
description: Logical CPU
physical id:
0.4
capabilities: logical
id:
pci
description: Host bridge
product: 82G33/G31/P35/P31 Express DRAM Controller
vendor: Intel Corporation
physical id:
100
bus info:
pci@0000:00:00.0
version: 02
width: 32 bits
clock: 33MHz
id:
pci:0
description: PCI bridge
product: 82G33/G31/P35/P31 Express PCI Express Root Port
vendor: Intel Corporation
physical id:
1
bus info:
pci@0000:00:01.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: pci pm msi pciexpress bus_master cap_list
configuration:
driver=pcieport
resources:
irq:24
ioport:c000(size=4096)
memory:fa000000-fe8fffff
ioport:d0000000(size=268435456)
id:
display
description: VGA compatible controller
product: G92 [GeForce 8800 GT]
vendor: nVidia Corporation
physical id:
0
bus info:
pci@0000:01:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom
configuration:
driver=nvidia
latency=0
resources:
irq:16
memory:fd000000-fdffffff
memory:d0000000-dfffffff(prefetchable)
memory:fa000000-fbffffff
ioport:cc00(size=128)
memory:fe8e0000-fe8fffff(prefetchable)
id:
usb:0
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #4
vendor: Intel Corporation
physical id:
1a
bus info:
pci@0000:00:1a.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration:
driver=uhci_hcd
latency=0
resources:
irq:16
ioport:b800(size=32)
id:
usb:1
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #5
vendor: Intel Corporation
physical id:
1a.1
bus info:
pci@0000:00:1a.1
version: 02
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration:
driver=uhci_hcd
latency=0
resources:
irq:21
ioport:b880(size=32)
id:
usb:2
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #6
vendor: Intel Corporation
physical id:
1a.2
bus info:
pci@0000:00:1a.2
version: 02
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration:
driver=uhci_hcd
latency=0
resources:
irq:18
ioport:bc00(size=32)
id:
usb:3
description: USB Controller
product: 82801I (ICH9 Family) USB2 EHCI Controller #2
vendor: Intel Corporation
physical id:
1a.7
bus info:
pci@0000:00:1a.7
version: 02
width: 32 bits
clock: 33MHz
capabilities: pm debug bus_master cap_list
configuration:
driver=ehci_hcd
latency=0
resources:
irq:18
memory:f9fffc00-f9ffffff
id:
multimedia
description: Audio device
product: 82801I (ICH9 Family) HD Audio Controller
vendor: Intel Corporation
physical id:
1b
bus info:
pci@0000:00:1b.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration:
driver=HDA Intel
latency=0
resources:
irq:22
memory:f9ff8000-f9ffbfff
id:
pci:1
description: PCI bridge
product: 82801I (ICH9 Family) PCI Express Port 1
vendor: Intel Corporation
physical id:
1c
bus info:
pci@0000:00:1c.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm bus_master cap_list
configuration:
driver=pcieport
resources:
irq:25
ioport:1000(size=4096)
memory:80000000-803fffff
ioport:f8f00000(size=1048576)
id:
pci:2
description: PCI bridge
product: 82801I (ICH9 Family) PCI Express Port 5
vendor: Intel Corporation
physical id:
1c.4
bus info:
pci@0000:00:1c.4
version: 02
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm bus_master cap_list
configuration:
driver=pcieport
resources:
irq:26
ioport:d000(size=4096)
memory:fea00000-feafffff
memory:80400000-805fffff(prefetchable)
id:
storage
description: SATA controller
product: JMB362/JMB363 Serial ATA Controller
vendor: JMicron Technology Corp.
physical id:
0
bus info:
pci@0000:03:00.0
version: 03
width: 32 bits
clock: 33MHz
capabilities: storage pm pciexpress bus_master cap_list rom
configuration:
driver=ahci
latency=0
resources:
irq:16
memory:feafe000-feafffff
memory:feae0000-feaeffff(prefetchable)
id:
ide
description: IDE interface
product: JMB362/JMB363 Serial ATA Controller
vendor: JMicron Technology Corp.
physical id:
0.1
bus info:
pci@0000:03:00.1
logical name:
scsi6
version: 03
width: 32 bits
clock: 33MHz
capabilities: ide pm bus_master cap_list emulated
configuration:
driver=pata_jmicron
latency=0
resources:
irq:17
ioport:dc00(size=8)
ioport:d880(size=4)
ioport:d800(size=8)
ioport:d480(size=4)
ioport:d400(size=16)
id:
cdrom
description: DVD-RAM writer
product: DVR-113NP
vendor: PIONEER
physical id:
0.0.0
bus info:
scsi@6:0.0.0
logical name:
/dev/cdrom
logical name:
/dev/cdrw
logical name:
/dev/dvd
logical name:
/dev/dvdrw
logical name:
/dev/scd0
logical name:
/dev/sr0
version: 1.00
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration:
ansiversion=5
status=nodisc
id:
pci:3
description: PCI bridge
product: 82801I (ICH9 Family) PCI Express Port 6
vendor: Intel Corporation
physical id:
1c.5
bus info:
pci@0000:00:1c.5
version: 02
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm bus_master cap_list
configuration:
driver=pcieport
resources:
irq:27
ioport:2000(size=4096)
memory:fe900000-fe9fffff
memory:80600000-807fffff(prefetchable)
id:
network
description: Ethernet interface
product: L1 Gigabit Ethernet Adapter
vendor: Atheros Communications
physical id:
0
bus info:
pci@0000:02:00.0
logical name:
eth0
version: b0
serial: 00:1e:8c:be:1a:42
size: 100MB/s
capacity: 1GB/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration:
autonegotiation=on
broadcast=yes
driver=atl1
driverversion=2.1.3
duplex=full
firmware=N/A
ip=192.168.1.122
latency=0
link=yes
multicast=yes
port=twisted pair
speed=100MB/s
resources:
irq:28
memory:fe9c0000-fe9fffff
memory:fe9a0000-fe9bffff(prefetchable)
id:
usb:4
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #1
vendor: Intel Corporation
physical id:
1d
bus info:
pci@0000:00:1d.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration:
driver=uhci_hcd
latency=0
resources:
irq:23
ioport:b080(size=32)
id:
usb:5
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #2
vendor: Intel Corporation
physical id:
1d.1
bus info:
pci@0000:00:1d.1
version: 02
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration:
driver=uhci_hcd
latency=0
resources:
irq:19
ioport:b400(size=32)
id:
usb:6
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #3
vendor: Intel Corporation
physical id:
1d.2
bus info:
pci@0000:00:1d.2
version: 02
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration:
driver=uhci_hcd
latency=0
resources:
irq:18
ioport:b480(size=32)
id:
usb:7
description: USB Controller
product: 82801I (ICH9 Family) USB2 EHCI Controller #1
vendor: Intel Corporation
physical id:
1d.7
bus info:
pci@0000:00:1d.7
version: 02
width: 32 bits
clock: 33MHz
capabilities: pm debug bus_master cap_list
configuration:
driver=ehci_hcd
latency=0
resources:
irq:23
memory:f9fff800-f9fffbff
id:
pci:4
description: PCI bridge
product: 82801 PCI Bridge
vendor: Intel Corporation
physical id:
1e
bus info:
pci@0000:00:1e.0
version: 92
width: 32 bits
clock: 33MHz
capabilities: pci bus_master cap_list
resources:
ioport:e000(size=4096)
memory:feb00000-febfffff
id:
multimedia
description: Multimedia audio controller
product: SB Live! EMU10k1
vendor: Creative Labs
physical id:
1
bus info:
pci@0000:05:01.0
version: 07
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration:
driver=EMU10K1_Audigy
latency=64
maxlatency=20
mingnt=2
resources:
irq:17
ioport:e880(size=32)
id:
input
description: Input device controller
product: SB Live! Game Port
vendor: Creative Labs
physical id:
1.1
bus info:
pci@0000:05:01.1
version: 07
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration:
driver=Emu10k1_gameport
latency=64
resources:
irq:0
ioport:ec00(size=8)
id:
firewire:0
description: FireWire (IEEE 1394)
product: VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller
vendor: VIA Technologies, Inc.
physical id:
2
bus info:
pci@0000:05:02.0
version: 46
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration:
driver=ohci1394
latency=64
maxlatency=61
mingnt=5
resources:
irq:18
memory:febff800-febfffff
ioport:e800(size=128)
id:
firewire:1
description: FireWire (IEEE 1394)
product: VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller
vendor: VIA Technologies, Inc.
physical id:
3
bus info:
pci@0000:05:03.0
version: c0
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration:
driver=ohci1394
latency=64
maxlatency=32
resources:
irq:16
memory:febff000-febff7ff
ioport:e480(size=128)
id:
isa
description: ISA bridge
product: 82801IB (ICH9) LPC Interface Controller
vendor: Intel Corporation
physical id:
1f
bus info:
pci@0000:00:1f.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: isa bus_master cap_list
configuration:
latency=0
id:
ide:0
description: IDE interface
product: 82801IB (ICH9) 2 port SATA IDE Controller
vendor: Intel Corporation
physical id:
1f.2
bus info:
pci@0000:00:1f.2
version: 02
width: 32 bits
clock: 66MHz
capabilities: ide pm bus_master cap_list
configuration:
driver=ata_piix
latency=0
resources:
irq:22
ioport:a000(size=8)
ioport:9c00(size=4)
ioport:9880(size=8)
ioport:9800(size=4)
ioport:9480(size=16)
ioport:9400(size=16)
id:
serial
description: SMBus
product: 82801I (ICH9 Family) SMBus Controller
vendor: Intel Corporation
physical id:
1f.3
bus info:
pci@0000:00:1f.3
version: 02
width: 64 bits
clock: 33MHz
configuration:
latency=0
resources:
memory:f9fff400-f9fff4ff
ioport:400(size=32)
id:
ide:1
description: IDE interface
product: 82801I (ICH9 Family) 2 port SATA IDE Controller
vendor: Intel Corporation
physical id:
1f.5
bus info:
pci@0000:00:1f.5
logical name:
scsi2
version: 02
width: 32 bits
clock: 66MHz
capabilities: ide pm bus_master cap_list emulated
configuration:
driver=ata_piix
latency=0
resources:
irq:22
ioport:b000(size=8)
ioport:ac00(size=4)
ioport:a880(size=8)
ioport:a800(size=4)
ioport:a480(size=16)
ioport:a400(size=16)
id:
disk
description: ATA Disk
product: Hitachi HDP72504
vendor: Hitachi
physical id:
0.0.0
bus info:
scsi@2:0.0.0
logical name:
/dev/sda
version: GMDO
serial: GEB430RE0KD13B
size: 372GiB (400GB)
capabilities: partitioned partitioned:dos
configuration:
ansiversion=5
signature=0ed25b93
id:
volume:0
description: Windows NTFS volume
physical id:
1
bus info:
scsi@2:0.0.0,1
logical name:
/dev/sda1
version: 3.1
serial: 2203bc0c-a2d5-4048-b8e7-a895d885fba8
size: 204GiB
capacity: 204GiB
capabilities: primary bootable ntfs initialized
configuration:
clustersize=4096
created=2002-01-01 03:24:18
filesystem=ntfs
state=clean
id:
volume:1
description: Extended partition
physical id:
2
bus info:
scsi@2:0.0.0,2
logical name:
/dev/sda2
size: 168GiB
capacity: 168GiB
capabilities: primary extended partitioned partitioned:extended
id:
logicalvolume:0
description: Linux filesystem partition
physical id:
5
logical name:
/dev/sda5
logical name:
/
capacity: 162GiB
configuration:
mount.fstype=ext4
mount.options=rw,relatime,errors=remount-ro,barrier=1,data=ordered
state=mounted
id:
logicalvolume:1
description: Linux swap / Solaris partition
physical id:
6
logical name:
/dev/sda6
capacity: 5898MiB
capabilities: nofs
id:
scsi
physical id:
5
bus info:
firewire@0010b92100a5152c
logical name:
scsi8
id:
disk
description: SCSI Disk
physical id:
0.1.0
bus info:
scsi@8:0.1.0
logical name:
/dev/sdb
size: 931GiB (1TB)
capabilities: partitioned partitioned:dos
configuration:
signature=48fe2c00
id:
volume
description: Windows NTFS volume
physical id:
1
bus info:
scsi@8:0.1.0,1
logical name:
/dev/sdb1
logical name:
/media/HyperDrive_
version: 3.1
serial: a8c243a6-5f32-7248-8543-419c25f0fba0
size: 931GiB
capacity: 931GiB
capabilities: primary ntfs initialized
configuration:
clustersize=4096
created=2008-02-09 16:32:36
filesystem=ntfs
label=HyperDrive
mount.fstype=fuseblk
mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
state=mounted
id:
network
description: Ethernet interface
physical id:
1
logical name:
vboxnet0
serial: 0a:00:27:00:00:00
capabilities: ethernet physical
configuration:
broadcast=yes
multicast=yes

Big thanks to Carthik for the original post!

Posted by
on

Comments

Contact Us

We'd love to hear from you. Get in touch!

Phone

+1 617-379-2752

Mail

P.O. Box 961436
Boston, MA 02196