hardware.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 17 Sep 2015 11:21:55 +0300
changeset 1745 a37bc3e0f1db
parent 1744 b45f0cb91d7e
child 1773 d281eb86f8f6
permissions -rw-r--r--
hardinfo, lshw-gtk
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     1
.. -*- coding: utf-8; -*-
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     2
.. include:: HEADER.rst
112
1a657a8f1fe5 Added hardware listner.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     4
================
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     5
 List hardware.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     6
================
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     7
.. contents::
112
1a657a8f1fe5 Added hardware listner.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
1640
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
     9
List hardware under Linux.
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    10
==========================
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
    11
1745
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    12
Command line:
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    13
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    14
  ``dmesg``
1745
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    15
    Messages about detecting new hardware.
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    16
  ``lshal -m``
1745
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    17
    monitor for hardware changes
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    18
  ``lspci``
1722
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    19
    All PCI devices.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    20
  ``lspci -vvv``
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    21
    All PCI devices. Very verbose output.
1737
2d88e8614cd3 lspci -vvvnn
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1736
diff changeset
    22
  ``sudo lspci -vvvnn``
1736
6b52afb7e457 lspci -vvvnn
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1727
diff changeset
    23
    All PCI devices. Very verbose output with vendor and device codes as both numbers and names.
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    24
  ``hwinfo --short``
1745
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    25
    Overview of all hardware, as well as more detailed info.
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    26
  ``lshw``
1745
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    27
    Another program for listing hardware.
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    28
  ``lshw -html | w3m -T text/html``
1745
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    29
    Lists hardware with HTML output in the w3m web browser.
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    30
  ``uptime``
1745
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    31
    Current time elapsed since last reboot, users, and load average.
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    32
  ``lsusb``
1722
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    33
    USB buses and attached devices.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    34
  ``lsusb -vvv``
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    35
    USB buses and attached devices. Very verbose output.
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
    36
1745
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    37
GUI: ``hardinfo``, ``lshw-gtk``.
a37bc3e0f1db hardinfo, lshw-gtk
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1744
diff changeset
    38
1640
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    39
List hardware under Windows.
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    40
============================
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    41
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    42
  ``%WINDIR%\system32\msinfo32.exe``
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    43
    msinfo32
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    44
  http://www.cpuid.com/softwares/cpu-z.html
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    45
    cpu-z
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    46
  ``%WINDIR%\system32\dxdiag.exe``
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    47
    DirectX Diagnostic Tool
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    48
  ``%WINDIR%\system32\devmgmt.msc /s``
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    49
    Device Manager
07075b81fdfc List hardware under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1515
diff changeset
    50
1724
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    51
List processors.
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    52
================
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    53
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    54
  ``cat /proc/cpuinfo``
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    55
    All processors, clock speeds, flags, and more.
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    56
  ``watch -d grep MHz /proc/cpuinfo``
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    57
    CPU MHz speed monitor.
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    58
  ``cat /proc/loadavg``
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    59
    Processor load average for the last 1, 5, and 15 minutes.
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    60
  ``top``
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    61
    Press C key to sort processes by CPU usage.
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    62
  ``sudo powertop``
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    63
    CPU usage by processes, idle/freq/dev stats
89141f4db935 List processors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1723
diff changeset
    64
1722
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    65
List memory.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    66
============
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    67
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    68
  ``free``
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    69
    Total, used, and free memory.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    70
  ``free -m``
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    71
    Total, used, and free memory shown in MB.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    72
  ``cat /proc/meminfo``
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    73
    Amount of RAM and swap, and how much is being used for what.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    74
  ``top``
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    75
    Real-time memory consumption. Press M key to sort processes by memory usage.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    76
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    77
::
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    78
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    79
  $ cat /proc/meminfo
1723
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
    80
  $ sudo lshw -class memory
1722
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    81
  $ sudo lshw -short -C memory
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    82
  $ sudo dmidecode --type memory
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    83
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    84
  $ sudo apt-get install i2c-tools
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    85
  $ sudo modprobe eeprom
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    86
  $ sudo decode-dimms
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    87
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    88
  $ read-edid
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
    89
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    90
Graphics card.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    91
==============
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
    92
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    93
  ``glxinfo``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    94
                Details about OpenGL, the Xserver, and your graphics card.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    95
  ``glxinfo | grep direct``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    96
                Do you have direct 3d rendering?
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    97
  ``glxinfo | grep vendor``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    98
                Graphics card vendor.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    99
  ``lspci | grep VGA``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   100
                Specific graphics card model.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   101
  ``glxgears``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   102
                A simple 3d benchmark, prints frame rate to the terminal.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   103
  ``xrandr``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   104
                Supported display resolutions.
1722
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   105
  ``xdpyinfo``
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   106
    Utility for displaying information about an X server.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   107
  ``xvinfo``
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   108
    Print out X-Video extension adaptor information.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   109
  ``xdriinfo``
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   110
    Query configuration information of DRI drivers.
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
   111
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   112
Audio.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   113
======
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
   114
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   115
  ``lspci | grep Audio``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   116
                Audio controller.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   117
  ``aplay --list-devices``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   118
                More audio device information.
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
   119
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   120
Software versions.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   121
==================
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
   122
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   123
  ``cat /etc/issue``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   124
                Current distribution and version.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   125
  ``apt-cache showpkg packagename``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   126
                Packagename’s version and dependencies.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   127
  ``uname -r``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   128
                Linux kernel version.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   129
  ``uname -a``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   130
                All kernel details.
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
   131
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   132
Networking.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   133
===========
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
   134
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   135
  ``lspci | grep Ethernet``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   136
                Ethernet controllers.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   137
  ``ip addr show``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   138
                List of netword devices, assigned IP addresses and MAC addresses.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   139
  ``ifconfig``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   140
                Networking interfaces, IP addresses, and more.
130
3f6dc062af4b Added hardware listner utils from http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 112
diff changeset
   141
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   142
Hard disks.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   143
===========
112
1a657a8f1fe5 Added hardware listner.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   144
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   145
  ``df -H``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   146
                Partitions, as well as their mount-points and usage in GB.
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   147
  ``sudo fdisk -l``
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   148
                All partitions, their device names, and positions on disk.
1388
4639edd57c1a Show S.M.A.R.T. reports about disk heals.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1387
diff changeset
   149
  ``hwinfo --disk`` or  ``lshw -class disk``
4639edd57c1a Show S.M.A.R.T. reports about disk heals.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1387
diff changeset
   150
                Disk hardware info.
4639edd57c1a Show S.M.A.R.T. reports about disk heals.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1387
diff changeset
   151
  ``smartctl``
4639edd57c1a Show S.M.A.R.T. reports about disk heals.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1387
diff changeset
   152
                Show S.M.A.R.T. reports about disk heals.
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   153
1744
b45f0cb91d7e /sys/class/hwmon
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1737
diff changeset
   154
Fan/temperature/voltage.
b45f0cb91d7e /sys/class/hwmon
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1737
diff changeset
   155
========================
1723
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   156
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   157
Detect available sensors::
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   158
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   159
  $ sudo apt-get install lm-sensors
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   160
  $ sudo sensors-detect
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   161
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   162
Load corresponding kernel module, like::
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   163
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   164
  $ sudo modprobe coretemp
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   165
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   166
Check output::
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   167
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   168
  $ sudo sensors
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   169
1744
b45f0cb91d7e /sys/class/hwmon
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1737
diff changeset
   170
``sensors`` uses ``/sys/class/hwmon/*`` hierarchy.
b45f0cb91d7e /sys/class/hwmon
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1737
diff changeset
   171
1723
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   172
HDD temperature through SMART::
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   173
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   174
  $ sudo hddtemp /dev/sd?
b5bf778c7457 Fan/temperature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1722
diff changeset
   175
1722
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   176
BIOS info.
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   177
==========
1387
7ec89ebc4498 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
   178
1722
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   179
Human readable string with BIOS.motheboard names::
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   180
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   181
  $ dd if=/dev/mem bs=64k skip=15 count=1 | strings
9e8504efe1ef Join articles about hardware.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1640
diff changeset
   182
1726
08aabcbe9491 Find out virtualization type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1724
diff changeset
   183
Find out virtualization type.
08aabcbe9491 Find out virtualization type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1724
diff changeset
   184
=============================
08aabcbe9491 Find out virtualization type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1724
diff changeset
   185
::
08aabcbe9491 Find out virtualization type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1724
diff changeset
   186
08aabcbe9491 Find out virtualization type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1724
diff changeset
   187
  $ sudo apt-get install virt-what
08aabcbe9491 Find out virtualization type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1724
diff changeset
   188
  $ virt-what
08aabcbe9491 Find out virtualization type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1724
diff changeset
   189
1727
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1726
diff changeset
   190
  $ sudo apt-get install imvirt
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1726
diff changeset
   191
  $ imvirt
1726
08aabcbe9491 Find out virtualization type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1724
diff changeset
   192