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