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 Install astakosclient (optional)
102 """"""""""""""""""""""""""""""""
104 A seperate project called
105 `astakosclient <https://pypi.python.org/pypi/astakosclient>`_ can be used for
106 advanced user and service management.
108 .. code-block:: console
110 $ apt-get install python-astakosclient
112 .. hint:: To activate astakosclient commands in kamaki, enable the
113 preconfigured *astakos* command group:
115 .. code-block:: console
117 $ kamaki config set astakos_cli astakos
119 .. _installing-from-pypi-ref:
129 * Python 2.6 or 2.7 [http://www.python.org]
130 * Python setuptools [http://pypi.python.org/pypi/setuptools]
134 * VirtualEnv (python-virtualenv) [http://www.virtualenv.org]
136 Setup a virtual enviroment (optional)
137 """""""""""""""""""""""""""""""""""""
139 With virtualenv users can setup kamaki and Synnefo services in a sandbox
142 .. code-block:: console
144 $ virtualenv kamaki-env
145 $ source kamaki-env/bin/activate
147 A more detailed example of using virtual env can be found at the
148 `snf-image-creator setup guide <http://www.synnefo.org/docs/snf-image-creator/latest/install.html#python-virtual-environment>`_
153 .. code-block:: console
160 The **ansicolors** package is not required for running kamaki, but it is
161 recommended as a user experience improvement. In specific, ansicolors
162 adds colors to kamaki responses.
164 .. code-block:: console
166 $ pip install ansicolors
168 Install mock (developers only)
169 """"""""""""""""""""""""""""""
171 The **mock** package is needed for running the prepared unit-tests in the
172 kamaki.clients package. This feature is useful when extending / debugging
173 kamaki functionality and is aimed to kamaki developers and contributors.
174 Therefore, users can enjoy the full kamaki user experience without installing
177 .. code-block:: console
181 .. warning:: mock version >= 1.X
183 .. hint:: To activate functional tests in kamaki. enable the preconfigured
184 *livetest* command group:
186 .. code-block:: console
188 $ kamaki config set livetest_cli livetest
190 Install astakosclient
191 """""""""""""""""""""
193 A seperate project called
194 `astakosclient <https://pypi.python.org/pypi/astakosclient>`_ can be used for
195 advanced user and service management.
197 .. code-block:: console
199 $ pip install astakosclient
201 .. hint:: To activate astakosclient commands in kamaki, enable the
202 preconfigured *astakos* command group:
204 .. code-block:: console
206 $ kamaki config set astakos_cli astakos
211 Kamaki can be installed on Mac OS X systems from source, by following the steps
212 at :ref:`installing-from-pypi-ref`.
217 Kamaki can be installed on Windows by following the pypi method. Installing the
218 requirements is a bit different than in other systems.
220 The full process is detailed in the following:
225 * Python 2.7 or better (`Official versions <http://www.python.org/getit>`_)
227 * Setuptools (`Official versions and workarounds <http://pypi.python.org/pypi/setuptools>`_)
229 Users who have already set up and wokring python and setuptools (e.g., for
230 another project) may skip Python and / or setuptools installation.
235 Download and run the Windows installer from
236 `here <http://www.python.org/getit>`_
238 Users should pick the installer that fits their windows version and machine
241 Add Python to windows path
242 ^^^^^^^^^^^^^^^^^^^^^^^^^^
244 The following will allow users to run Python and Python scripts from command
247 * Select **System** from the Control Panel, select the **Advanced** tab, the
248 **Environment Variables** button and then find the **PATH** (user or
251 * Without removing existing values, append the following to PATH::
253 ;C:\Python27;C:\Python27\Scripts
255 .. note:: Path values are separated by semicolons
257 .. warning:: In case of a different version, C:\\Python27 should be replaced
258 with the actual python path in the system
263 According to the corresponding
264 `python org page <http://pypi.python.org/pypi/setuptools>`_, the setuptools
265 installer doesn't currently work on 64bit machines.
267 * Users with 32-bit operating systems should download and run the graphic
270 * Users with 64-bit machines should download the
271 `ez_setup.py <http://peak.telecommunity.com/dist/ez_setup.py>`_ script and
272 install it from a command shell. In the following example, the script was
273 downloaded at C:\\Downloads::
276 C:\Downloads\> python ez_setup.py
278 Installation finished
284 .. code-block:: console
286 $ easy_install kamaki