README.rst 5.3 KB
Newer Older
N
Nicolas Hennion 已提交
1 2
Follow Glances on Twitter: `@nicolargo`_ or `@glances_system`_

N
Nicolas Hennion 已提交
3 4
Give Glances some Bitcoin: `18Nbs6kg9UCqtX4RPDM3qMkeKwjDxBFYrW`_

N
Nicolas Hennion 已提交
5 6 7 8
===============================
Glances - An eye on your system
===============================

A
Alessio Sergi 已提交
9
.. image:: https://api.flattr.com/button/flattr-badge-large.png
A
Alessio Sergi 已提交
10 11 12
        :target: https://flattr.com/thing/484466/nicolargoglances-on-GitHub
.. image:: https://travis-ci.org/nicolargo/glances.png?branch=master
        :target: https://travis-ci.org/nicolargo/glances
N
Nicolas Hennion 已提交
13
.. image:: https://badge.fury.io/py/Glances.png
14
        :target: http://badge.fury.io/py/Glances
N
Nicolas Hennion 已提交
15 16 17
.. image:: https://pypip.in/d/Glances/badge.png
        :target: https://pypi.python.org/pypi/Glances/
        :alt: Downloads
N
Nicolas Hennion 已提交
18
.. image:: https://d2weczhvl823v0.cloudfront.net/nicolargo/glances/trend.png
A
Alessio Sergi 已提交
19
        :target: https://bitdeli.com/nicolargo
A
Alessio Sergi 已提交
20

A
Alessio Sergi 已提交
21 22
**Glances** is a cross-platform curses-based system monitoring tool
written in Python.
A
Alessio Sergi 已提交
23 24 25

It uses the `psutil`_ library to get information from your system.

A
Alessio Sergi 已提交
26
.. image:: https://raw.github.com/nicolargo/glances/master/docs/images/screenshot-wide.png
A
Alessio Sergi 已提交
27 28 29 30

Requirements
============

31
- ``python >= 2.6`` (tested with version 2.6, 2.7, 3.3, 3.4)
A
Alessio Sergi 已提交
32
- ``psutil >= 2.0.0``
A
Alessio Sergi 已提交
33 34
- ``setuptools``

A
Alessio Sergi 已提交
35 36
Optional dependencies:

A
Alessio Sergi 已提交
37
- ``bottle`` (for Web server mode)
N
Nicolargo 已提交
38
- ``py3sensors`` (for hardware monitoring support) [Linux-only]
A
Alessio Sergi 已提交
39
- ``hddtemp`` (for HDD temperature monitoring support) [Linux-only]
A
Alessio Sergi 已提交
40
- ``batinfo`` (for battery monitoring support) [Linux-only]
A
Alessio Sergi 已提交
41
- ``pysnmp`` (for SNMP support)
A
Alessio Sergi 已提交
42

A
Alessio Sergi 已提交
43 44 45
Installation
============

N
Nicolargo 已提交
46 47 48 49 50 51 52 53 54 55 56 57
Glances Auto Install script
---------------------------

Just enter the following command line:

.. code-block:: console

    curl -L http://bit.ly/glances | /bin/bash

*Note*: Only supported on some GNU/Linux distributions.
If you want to support others distribs, please contribute to `glancesautoinstall`_.

A
Alessio Sergi 已提交
58
PyPI: The simple way
N
Nicolas Hennion 已提交
59 60
--------------------

A
Alessio Sergi 已提交
61 62
Glances is on `PyPI`_. By using PyPI, you are sure to have the latest
stable version.
N
Nicolargo 已提交
63 64

To install, simply use `pip`_:
A
Alessio Sergi 已提交
65 66 67 68

.. code-block:: console

    pip install Glances
N
Nicolas Hennion 已提交
69

A
Alessio Sergi 已提交
70
*Note*: Python headers are required to install psutil. For example,
A
Alessio Sergi 已提交
71
on Debian/Ubuntu you need to install first the *python-dev* package.
A
Alessio Sergi 已提交
72

N
Nicolas Hennion 已提交
73 74 75 76 77 78
To upgrade Glances to the latest version:

.. code-block:: console

    pip install --upgrade Glances

N
Nicolargo 已提交
79 80
GNU/Linux
---------
A
Alessio Sergi 已提交
81

N
Nicolargo 已提交
82
At the moment, packages exist for the following GNU/Linux distributions:
A
Alessio Sergi 已提交
83 84 85 86 87

- Arch Linux
- Debian (Testing/Sid)
- Fedora/CentOS/RHEL
- Gentoo
A
Alessio Sergi 已提交
88
- Slackware
A
Alessio Sergi 已提交
89 90 91 92
- Ubuntu (13.04+)
- Void Linux

So you should be able to install it using your favorite package manager.
A
Alessio Sergi 已提交
93

A
Alessio Sergi 已提交
94 95 96
FreeBSD
-------

A
Alessio Sergi 已提交
97
To install the binary package:
A
Alessio Sergi 已提交
98 99 100

.. code-block:: console

A
Alessio Sergi 已提交
101 102
    # pkg_add -r py27-glances

A
Alessio Sergi 已提交
103 104 105 106 107 108
Using pkgng:

.. code-block:: console

    # pkg install py27-glances

A
Alessio Sergi 已提交
109 110 111
To install Glances from ports:

.. code-block:: console
A
Alessio Sergi 已提交
112

A
Alessio Sergi 已提交
113 114
    # cd /usr/ports/sysutils/py-glances/
    # make install clean
N
Nicolas Hennion 已提交
115

A
Alessio Sergi 已提交
116 117 118
OS X
----

N
Nicolargo 已提交
119
OS X users can install Glances using `Homebrew`_ or `MacPorts`_.
A
Alessio Sergi 已提交
120 121 122 123 124 125

Homebrew
````````

.. code-block:: console

126 127
    $ brew install python
    $ pip install Glances
A
Alessio Sergi 已提交
128 129 130 131 132 133 134 135 136 137 138

MacPorts
````````

.. code-block:: console

    $ sudo port install glances

Windows
-------

A
Alessio Sergi 已提交
139
- Install Python for Windows: http://www.python.org/getit/
140
- Install the psutil library: https://pypi.python.org/pypi?:action=display&name=psutil#downloads
F
fraoustin 已提交
141
- Install the colorconsole library: http://code.google.com/p/colorconsole/downloads/list
A
Alessio Sergi 已提交
142
- Download Glances from here: http://nicolargo.github.io/glances/
A
Alessio Sergi 已提交
143 144 145 146

Source
------

N
Nicolargo 已提交
147
To install Glances version X.Y from source:
A
Alessio Sergi 已提交
148 149 150

.. code-block:: console

N
Nicolargo 已提交
151
    $ curl -L https://github.com/nicolargo/glances/archive/vX.Y.tar.gz -o glances-X.Y.tar.gz
A
Alessio Sergi 已提交
152 153 154 155
    $ tar -zxvf glances-*.tar.gz
    $ cd glances-*
    # python setup.py install

A
Alessio Sergi 已提交
156 157
*Note*: Python headers are required to install psutil. For example,
on Debian/Ubuntu you need to install first the *python-dev* package.
158

A
Alessio Sergi 已提交
159 160 161 162 163 164 165 166
Puppet
------

You can install Glances using `Puppet`_: https://github.com/rverchere/puppet-glances

Usage
=====

N
Nicolargo 已提交
167
For the standalone mode, just run:
A
Alessio Sergi 已提交
168 169 170

.. code-block:: console

171
    $ glances
A
Alessio Sergi 已提交
172

N
Nicolargo 已提交
173 174 175 176 177 178 179

For the Web server mode, run:

.. code-block:: console

    $ glances -w

A
Alessio Sergi 已提交
180
and enter the URL ``http://<ip>:61208`` in your favorite web browser.
N
Nicolargo 已提交
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196

For the client/server mode, run:

.. code-block:: console

    $ glances -s

on the server side and run:

.. code-block:: console

    $ glances -c <ip>

on the client one.

And RTFM, always.
N
Nicolas Hennion 已提交
197

A
Alessio Sergi 已提交
198 199 200
Documentation
=============

A
Alessio Sergi 已提交
201
For complete documentation see `glances-doc`_.
A
Alessio Sergi 已提交
202

N
Nicolargo 已提交
203 204
If you have any question (after RTFM !), please post it on the official Q&A `forum`_.

A
Alessio Sergi 已提交
205 206 207 208 209 210 211 212 213 214 215
Author
======

Nicolas Hennion (@nicolargo) <nicolas@nicolargo.com>

License
=======

LGPL. See ``COPYING`` for more details.

.. _psutil: https://code.google.com/p/psutil/
N
Nicolargo 已提交
216
.. _glancesautoinstall: https://github.com/nicolargo/glancesautoinstall
A
Alessio Sergi 已提交
217 218
.. _@nicolargo: https://twitter.com/nicolargo
.. _@glances_system: https://twitter.com/glances_system
N
Nicolas Hennion 已提交
219
.. _18Nbs6kg9UCqtX4RPDM3qMkeKwjDxBFYrW: bitcoin:18Nbs6kg9UCqtX4RPDM3qMkeKwjDxBFYrW?amount=1X8&label=Glances
A
Alessio Sergi 已提交
220 221
.. _PyPI: https://pypi.python.org/pypi
.. _pip: http://www.pip-installer.org/
A
Alessio Sergi 已提交
222
.. _Homebrew: http://brew.sh/
A
Alessio Sergi 已提交
223
.. _MacPorts: https://www.macports.org/
F
fraoustin 已提交
224
.. _colorconsole: https://pypi.python.org/pypi/colorconsole
A
Alessio Sergi 已提交
225
.. _Puppet: https://puppetlabs.com/puppet/what-is-puppet/
A
Alessio Sergi 已提交
226
.. _glances-doc: https://github.com/nicolargo/glances/blob/master/docs/glances-doc.rst
N
Nicolargo 已提交
227
.. _forum: https://groups.google.com/forum/?hl=en#!forum/glances-users