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
.. image:: https://d2weczhvl823v0.cloudfront.net/nicolargo/glances/trend.png
A
Alessio Sergi 已提交
17
        :target: https://bitdeli.com/nicolargo
A
Alessio Sergi 已提交
18

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

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

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

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

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

A
Alessio Sergi 已提交
33 34
Optional dependencies:

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

A
Alessio Sergi 已提交
41 42 43
Installation
============

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

A
Alessio Sergi 已提交
47 48
Glances is on `PyPI`_. By using PyPI, you are sure to have the latest
stable version.
N
Nicolargo 已提交
49 50

To install, simply use `pip`_:
A
Alessio Sergi 已提交
51 52 53 54

.. code-block:: console

    pip install Glances
N
Nicolas Hennion 已提交
55

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

N
Nicolas Hennion 已提交
59 60 61 62 63 64
To upgrade Glances to the latest version:

.. code-block:: console

    pip install --upgrade Glances

N
Nicolargo 已提交
65 66
GNU/Linux
---------
A
Alessio Sergi 已提交
67

N
Nicolargo 已提交
68
At the moment, packages exist for the following GNU/Linux distributions:
A
Alessio Sergi 已提交
69 70 71 72 73

- Arch Linux
- Debian (Testing/Sid)
- Fedora/CentOS/RHEL
- Gentoo
A
Alessio Sergi 已提交
74
- Slackware
A
Alessio Sergi 已提交
75 76 77 78
- Ubuntu (13.04+)
- Void Linux

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

A
Alessio Sergi 已提交
80 81 82
FreeBSD
-------

A
Alessio Sergi 已提交
83
To install the binary package:
A
Alessio Sergi 已提交
84 85 86

.. code-block:: console

A
Alessio Sergi 已提交
87 88
    # pkg_add -r py27-glances

A
Alessio Sergi 已提交
89 90 91 92 93 94
Using pkgng:

.. code-block:: console

    # pkg install py27-glances

A
Alessio Sergi 已提交
95 96 97
To install Glances from ports:

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

A
Alessio Sergi 已提交
99 100
    # cd /usr/ports/sysutils/py-glances/
    # make install clean
N
Nicolas Hennion 已提交
101

A
Alessio Sergi 已提交
102 103 104
OS X
----

N
Nicolargo 已提交
105
OS X users can install Glances using `Homebrew`_ or `MacPorts`_.
A
Alessio Sergi 已提交
106 107 108 109 110 111

Homebrew
````````

.. code-block:: console

112 113
    $ brew install python
    $ pip install Glances
A
Alessio Sergi 已提交
114 115 116 117 118 119 120 121 122 123 124

MacPorts
````````

.. code-block:: console

    $ sudo port install glances

Windows
-------

A
Alessio Sergi 已提交
125
- Install Python for Windows: http://www.python.org/getit/
126
- Install the psutil library: https://pypi.python.org/pypi?:action=display&name=psutil#downloads
F
fraoustin 已提交
127
- Install the colorconsole library: http://code.google.com/p/colorconsole/downloads/list
A
Alessio Sergi 已提交
128
- Download Glances from here: http://nicolargo.github.io/glances/
A
Alessio Sergi 已提交
129 130 131 132

Source
------

N
Nicolargo 已提交
133
To install Glances version X.Y from source:
A
Alessio Sergi 已提交
134 135 136

.. code-block:: console

N
Nicolargo 已提交
137
    $ curl -L https://github.com/nicolargo/glances/archive/vX.Y.tar.gz -o glances-X.Y.tar.gz
A
Alessio Sergi 已提交
138 139 140 141
    $ tar -zxvf glances-*.tar.gz
    $ cd glances-*
    # python setup.py install

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

A
Alessio Sergi 已提交
145 146 147 148 149 150 151 152
Puppet
------

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

Usage
=====

N
Nicolargo 已提交
153
For the standalone mode, just run:
A
Alessio Sergi 已提交
154 155 156

.. code-block:: console

157
    $ glances
A
Alessio Sergi 已提交
158

N
Nicolargo 已提交
159 160 161 162 163 164 165

For the Web server mode, run:

.. code-block:: console

    $ glances -w

A
Alessio Sergi 已提交
166
and enter the URL ``http://<ip>:61208`` in your favorite web browser.
N
Nicolargo 已提交
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182

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 已提交
183

A
Alessio Sergi 已提交
184 185 186
Documentation
=============

A
Alessio Sergi 已提交
187
For complete documentation see `glances-doc`_.
A
Alessio Sergi 已提交
188 189 190 191 192 193 194 195 196 197 198 199

Author
======

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

License
=======

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

.. _psutil: https://code.google.com/p/psutil/
A
Alessio Sergi 已提交
200 201
.. _@nicolargo: https://twitter.com/nicolargo
.. _@glances_system: https://twitter.com/glances_system
A
Alessio Sergi 已提交
202 203
.. _PyPI: https://pypi.python.org/pypi
.. _pip: http://www.pip-installer.org/
A
Alessio Sergi 已提交
204
.. _Homebrew: http://brew.sh/
A
Alessio Sergi 已提交
205
.. _MacPorts: https://www.macports.org/
F
fraoustin 已提交
206
.. _colorconsole: https://pypi.python.org/pypi/colorconsole
A
Alessio Sergi 已提交
207
.. _Puppet: https://puppetlabs.com/puppet/what-is-puppet/
A
Alessio Sergi 已提交
208
.. _glances-doc: https://github.com/nicolargo/glances/blob/master/docs/glances-doc.rst