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

===============================
Glances - An eye on your system
===============================

A
Alessio Sergi 已提交
7
.. image:: https://api.flattr.com/button/flattr-badge-large.png
A
Alessio Sergi 已提交
8 9 10
        :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 已提交
11
.. image:: https://badge.fury.io/py/Glances.png
12
        :target: http://badge.fury.io/py/Glances
N
Nicolas Hennion 已提交
13 14 15
.. image:: https://pypip.in/d/Glances/badge.png
        :target: https://pypi.python.org/pypi/Glances/
        :alt: Downloads
N
Nicolas Hennion 已提交
16 17
.. image:: https://d2weczhvl823v0.cloudfront.net/nicolargo/glances/trend.png
        :target: https://bitdeli.com/nicolargo 
A
Alessio Sergi 已提交
18
.. image:: https://raw.github.com/nicolargo/glances/master/docs/images/glances-white-256.png
A
Alessio Sergi 已提交
19
        :width: 128
N
Nicolas Hennion 已提交
20
        :align: center
A
Alessio Sergi 已提交
21 22 23 24 25

**Glances** is a cross-platform curses-based monitoring tool written in Python.

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 31

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

- ``python >= 2.6`` (tested with version 2.6, 2.7, 3.2, 3.3)
N
Nicolas Hennion 已提交
32
- ``psutil >= 0.5.1`` (recommended version >= 1.2.1)
A
Alessio Sergi 已提交
33
- ``jinja`` (optional for HTML output)
A
Alessio Sergi 已提交
34
- ``pysensors`` (optional for HW monitoring support) [Linux-only]
A
Alessio Sergi 已提交
35
- ``hddtemp`` (optional for HDD temperature monitoring support)
A
Alessio Sergi 已提交
36
- ``batinfo`` (optional for battery monitoring support) [Linux-only]
A
Alessio Sergi 已提交
37 38 39 40 41
- ``setuptools``

Installation
============

A
Alessio Sergi 已提交
42
PyPI: The simple way
N
Nicolas Hennion 已提交
43 44
--------------------

A
Alessio Sergi 已提交
45 46 47 48 49
Glances is on `PyPI`_. To install, simply use `pip`_:

.. code-block:: console

    pip install Glances
N
Nicolas Hennion 已提交
50

N
Nicolas Hennion 已提交
51 52 53 54 55 56
To upgrade Glances to the latest version:

.. code-block:: console

    pip install --upgrade Glances

A
Alessio Sergi 已提交
57 58 59
Linux
-----

A
Alessio Sergi 已提交
60
At the moment, packages exist for Arch Linux, Gentoo, Fedora/CentOS/RHEL,
A
Alessio Sergi 已提交
61
Debian (Sid/Testing) and Ubuntu (13.04+), so you should be able to
A
Alessio Sergi 已提交
62 63
install it using your favorite package manager.

A
Alessio Sergi 已提交
64 65 66 67
FreeBSD
-------

To install the precompiled binary package:
A
Alessio Sergi 已提交
68 69 70

.. code-block:: console

A
Alessio Sergi 已提交
71 72 73 74 75
    # pkg_add -r py27-glances

To install Glances from ports:

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

A
Alessio Sergi 已提交
77 78
    # cd /usr/ports/sysutils/py-glances/
    # make install clean
N
Nicolas Hennion 已提交
79

A
Alessio Sergi 已提交
80 81 82 83 84 85 86 87 88 89
OS X
----

OS X users can also install Glances using `Homebrew`_ or `MacPorts`_.

Homebrew
````````

.. code-block:: console

90 91
    $ brew install python
    $ pip install Glances
A
Alessio Sergi 已提交
92 93 94 95 96 97 98 99 100 101 102

MacPorts
````````

.. code-block:: console

    $ sudo port install glances

Windows
-------

N
Nicolas Hennion 已提交
103
Glances proposes a Windows client based on the `colorconsole`_ Python library.
F
fraoustin 已提交
104

A
Alessio Sergi 已提交
105
Glances < 1.7.2 only works in server mode. It will run in server mode automatically.
A
Alessio Sergi 已提交
106

A
Alessio Sergi 已提交
107
Thanks to Nicolas Bourges, Glances can be easily installed using a Windows installer:
A
Alessio Sergi 已提交
108

109
Glances-1.7.2-win32.msi_ (32-bit, MD5: dba4f6cc9f47b6806ffaeb665c093270)
A
Alessio Sergi 已提交
110 111 112

Otherwise, you have to follow these steps:

A
Alessio Sergi 已提交
113
- Install Python for Windows: http://www.python.org/getit/
114
- Install the psutil library: https://pypi.python.org/pypi?:action=display&name=psutil#downloads
F
fraoustin 已提交
115
- Install the colorconsole library: http://code.google.com/p/colorconsole/downloads/list
A
Alessio Sergi 已提交
116
- Download Glances from here: http://nicolargo.github.io/glances/
A
Alessio Sergi 已提交
117 118 119 120 121 122 123 124 125 126 127 128 129

Source
------

To install Glances from source:

.. code-block:: console

    $ curl -L https://github.com/nicolargo/glances/archive/vX.X.tar.gz -o glances-X.X.tar.gz
    $ tar -zxvf glances-*.tar.gz
    $ cd glances-*
    # python setup.py install

A
Alessio Sergi 已提交
130
*Note*: Python headers are required to install psutil. For example, you need to install first:
A
Alessio Sergi 已提交
131

A
Alessio Sergi 已提交
132 133 134
* On Debian/Ubuntu, the *python-dev* package
* On CentOS/Fedora, the *python-devel* package (from the EPEL repository)
* On openSUSE/SLES/SLED, the *python-devel* package (from Oss repository)
135

A
Alessio Sergi 已提交
136 137 138 139 140 141 142 143 144 145 146 147
Puppet
------

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

Usage
=====

Just run:

.. code-block:: console

148
    $ glances
A
Alessio Sergi 已提交
149

A
Alessio Sergi 已提交
150
and RTFM, always.
N
Nicolas Hennion 已提交
151

A
Alessio Sergi 已提交
152 153 154
Documentation
=============

A
Alessio Sergi 已提交
155
For complete documentation see `glances-doc`_.
A
Alessio Sergi 已提交
156 157 158 159 160 161 162 163 164 165 166 167

Author
======

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

License
=======

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

.. _psutil: https://code.google.com/p/psutil/
A
Alessio Sergi 已提交
168 169
.. _@nicolargo: https://twitter.com/nicolargo
.. _@glances_system: https://twitter.com/glances_system
A
Alessio Sergi 已提交
170 171
.. _PyPI: https://pypi.python.org/pypi
.. _pip: http://www.pip-installer.org/
A
Alessio Sergi 已提交
172
.. _Homebrew: http://brew.sh/
A
Alessio Sergi 已提交
173
.. _MacPorts: https://www.macports.org/
174
.. _Glances-1.7.2-win32.msi: http://glances.s3.amazonaws.com/Glances-1.7.2-win32.msi
F
fraoustin 已提交
175
.. _colorconsole: https://pypi.python.org/pypi/colorconsole
A
Alessio Sergi 已提交
176
.. _Puppet: https://puppetlabs.com/puppet/what-is-puppet/
A
Alessio Sergi 已提交
177
.. _glances-doc: https://github.com/nicolargo/glances/blob/master/docs/glances-doc.rst