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