4 This guide describes the standard installation process for kamaki, with the
5 aspiration of covering as much cases as possible. Although kamaki was initially
6 targeted to Linux/Unix-like users, it is quite straightforward to install and
7 have it up and running in all platforms running Python 2.6 or 2.7.
10 * Kamaki repository: `http://code.grnet.gr/git/kamaki <http://code.grnet.gr/git/kamaki>`_
12 * Kamaki at pypi: `http://pypi.python.org/pypi/kamaki <https://pypi.python.org/pypi/kamaki>`_
14 * Synnefo Linux packages: `http://apt.dev.grnet.gr <http://apt.dev.grnet.gr>`_
16 Linux and Unix-like environments
17 --------------------------------
22 The following steps describe a command-line approach, but any graphic package manager can be used instead.
24 * As root, append the following to */etc/apt/sources.list* ::
26 deb http://apt.dev.grnet.gr wheezy/
28 .. warning:: Debian Squeeze users may replace "wheezy" with "squeeze"
30 * Make sure the GPG public key for the Synnefo development team is added:
32 .. code-block:: console
34 $ sudo curl https://dev.grnet.gr/files/apt-grnetdev.pub|apt-key add -
36 otherwise *apt-get update* will produce GPG warnings.
38 * Update the Debian sources:
40 .. code-block:: console
46 .. code-block:: console
48 $ sudo apt-get install kamaki
53 The following steps describe a command-line approach, but any graphic package
54 manager can be used instead.
56 * Let ppa take care of the repository configuration:
58 .. code-block:: console
60 $ sudo apt-get install python-software-properties
61 $ sudo add-apt-repository ppa:grnet/synnefo
63 * Update the Debian sources:
65 .. code-block:: console
71 .. code-block:: console
73 $ sudo apt-get install kamaki
75 Install ansicolors (optional but recommended)
76 """""""""""""""""""""""""""""""""""""""""""""
78 .. code-block:: console
80 $ sudo apt-get install python-ansicolors
82 Install mock (for developers only)
83 """"""""""""""""""""""""""""""""""
85 .. code-block:: console
87 $ sudo apt-get install python-mock
89 .. warning:: kamaki.clients unit-tests need python-mock 1.X or better. e.g.::
91 $ sudo apt-get install python-mock=1.0.1
93 .. hint:: To activate functional tests in kamaki enable the preconfigured
94 *livetest* command group:
96 .. code-block:: console
98 $ kamaki config set livetest_cli livetest
101 .. _installing-from-pypi-ref:
111 * Python 2.6 or 2.7 [http://www.python.org]
112 * Python setuptools [http://pypi.python.org/pypi/setuptools]
116 * VirtualEnv (python-virtualenv) [http://www.virtualenv.org]
118 Setup a virtual enviroment (optional)
119 """""""""""""""""""""""""""""""""""""
121 Use virtualenv to setup kamaki and Synnefo services in a sandbox
124 .. code-block:: console
126 $ virtualenv kamaki-env
127 $ source kamaki-env/bin/activate
129 A more detailed example of using virtual env can be found at the
130 `snf-image-creator setup guide <http://www.synnefo.org/docs/snf-image-creator/latest/install.html#python-virtual-environment>`_
135 .. code-block:: console
142 The **ansicolors** package is not required for running kamaki, but it is
143 recommended as a user experience improvement. In specific, ansicolors
144 adds colors to kamaki responses.
146 .. code-block:: console
148 $ pip install ansicolors
150 Install mock (developers only)
151 """"""""""""""""""""""""""""""
153 The **mock** package is needed for running the prepared unit-tests in the
154 kamaki.clients package. This feature is useful when extending / debugging
155 kamaki functionality and is aimed to kamaki developers and contributors.
156 Therefore, users can enjoy the full kamaki user experience without installing
159 .. code-block:: console
163 .. warning:: mock version >= 1.X
165 .. hint:: To activate functional tests in kamaki. enable the preconfigured
166 *livetest* command group:
168 .. code-block:: console
170 $ kamaki config set livetest_cli livetest
176 Kamaki can be installed on Mac OS X systems, by following the steps
177 at :ref:`installing-from-pypi-ref`.
182 Kamaki can be installed on Windows by following the pypi method. Installing the
183 requirements is a bit different than in other systems.
185 The full process is detailed in the following:
190 * Python 2.7 or better (`Official versions <http://www.python.org/getit>`_)
192 * Setuptools (`Official versions and workarounds <http://pypi.python.org/pypi/setuptools>`_)
194 Users who have already set up python and setuptools (e.g., for
195 another project) may skip Python and / or setuptools installation.
200 Download and run the Windows installer from
201 `here <http://www.python.org/getit>`_
203 Users should pick the installer that fits their windows version and machine
206 Add Python to windows path
207 ^^^^^^^^^^^^^^^^^^^^^^^^^^
209 The following will allow users to run Python and Python scripts from command
212 * Select **System** from the Control Panel, select the **Advanced** tab, the
213 **Environment Variables** button and then find the **PATH** (user or
216 * Without removing existing values, append the following to PATH::
218 ;C:\Python27;C:\Python27\Scripts
220 .. note:: Path values are separated by semicolons
222 .. warning:: In case of a different version, C:\\Python27 should be replaced
223 with the actual python path in the system
228 According to the corresponding
229 `python org page <http://pypi.python.org/pypi/setuptools>`_, the setuptools
230 installer doesn't currently work on 64bit machines.
232 * Users with 32-bit platforms should download and run the graphic
235 * Users with 64-bit platforms should download the
236 `ez_setup.py <http://peak.telecommunity.com/dist/ez_setup.py>`_ script and
237 install it from a command shell. In the following example, the script was
238 downloaded at C:\\Downloads::
241 C:\Downloads\> python ez_setup.py
243 Installation finished
249 .. code-block:: console
251 $ easy_install kamaki