4 This guide describes the standard installation process for kamaki, with the aspiration of covering as much cases as possible. Although kamaki was initially targeted to advanced Linux/Unix-like users, it should be quite straightforward to install and have it up and running in most popular platforms.
7 * Kamaki repository: `http://code.grnet.gr/git/kamaki <http://code.grnet.gr/git/kamaki>`_
9 * Synnefo Linux packages: `http://apt.dev.grnet.gr <http://apt.dev.grnet.gr>`_, `http://apt2.dev.grnet.gr <http://apt2.dev.grnet.gr>`_
11 Linux and Unix-like enviroments
12 -------------------------------
14 Ubuntu and Debian packages
15 ^^^^^^^^^^^^^^^^^^^^^^^^^^
17 The following steps describe a command-line approach, but any graphic package manager can be used instead.
19 Add the following to apt sources list
20 """""""""""""""""""""""""""""""""""""
22 As root, append one of the following to */etc/apt/sources.list*:
24 * Debian Sid (kamaki 0.6.2)::
26 deb http://apt.dev.grnet.gr/ sid main
28 * Debian Stable (kamaki 0.6.1)::
30 deb http://apt.dev.grnet.gr/ squeeze main
31 deb http://apt2.dev.grnet.gr stable/
33 * Ubuntu (kamaki 0.6.1)::
35 deb http://apt.dev.grnet.gr/ precise main
41 .. note:: make sure the GPG public key for the GRNET dev team is added:
43 .. code-block:: console
45 $ curl https://dev.grnet.gr/files/apt-grnetdev.pub|apt-key add -
47 otherwise *apt-get update* will produce GPG warnings.
49 .. code-block:: console
57 .. note:: **versions 0.6.0 - 0.6.1:**
59 The *snf-common* package (available at synnefo apt repository) will be automatically installed as a dependency.
61 .. note:: **versions 0.6.2 and on:**
63 Since version 0.6.2, *objpool* replaces *snf-common*. The objpool package is also available at synnefo repository and is automatically installed as a dependency. The *snf-common* dependency is removed.
65 .. code-block:: console
67 $ sudo apt-get install kamaki
69 Install ansicolors and/or progress (Optional)
70 """""""""""""""""""""""""""""""""""""""""""""
72 .. code-block:: console
74 $ sudo apt-get install python-ansicolors
75 $ sudo apt-get install python-progress
77 .. _installing-from-source-ref:
79 Installing from source (git repos.)
80 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 * Python 2.6 or better [http://www.python.org]
88 * Python setuptools [http://pypi.python.org/pypi/setuptools]
92 * VirtualEnv (python-virtualenv) [http://www.virtualenv.org]
94 Setup a virtual enviroment (optional)
95 """""""""""""""""""""""""""""""""""""
97 With virtualenv users can setup kamaki and synnefo services in a sandbox environment.
99 .. code-block:: console
101 $ virtualenv kamaki-env
102 $ source kamaki-env/bin/activate
104 A more detailed example of using virtual env can be found at the `snf-image-creator setup guide <http://docs.dev.grnet.gr/snf-image-creator/latest/install.html#python-virtual-environment>`_
106 Install objpool (was: snf-common)
107 """""""""""""""""""""""""""""""""
109 .. note:: **versions 0.6.0 - 0.6.1**
111 Package snf-common is part of the synnefo project and used to be a kamaki dependency in versions from 0.6.0 to 0.6.1 to provide a connection pooling mechanism. Users who still run 0.6.0 or 0.6.1 may need to manually install the snf-common package:
113 .. code-block:: console
115 $ git clone http://code.grnet.gr/git/synnefo
116 $ cd synnefo/snf-common
117 $ ./setup build install
120 **Version 0.6.2 and on:**
122 Since 0.6.2, kamaki is based on objpool (hence the snf-common dependency is now obsolete). The objpool package is easy to install from source, even on windows platforms:
124 .. code-block:: console
126 $ git clone http://code.grnet.gr/git/objpool
128 $ ./setup build install
134 .. code-block:: console
136 $ git clone http://code.grnet.gr/git/kamaki
138 $ ./setup build install
140 Install progress and/or ansicolors (optional)
141 """""""""""""""""""""""""""""""""""""""""""""
143 progress: command-line progress bars (in some commands)
145 ansicolors: color kamaki output (can switched on and off in `setup <setup.html>`_)
147 .. code-block:: console
149 $ pip install progress
150 $ pip install ansicolors
155 Kamaki can be installed on Mac OS X systems from source, by following the steps at :ref:`installing-from-source-ref`.
160 Since version 0.6.2 kamaki can run on Windows, either on standard Windows console, or inside an improved command line shell. The present guide presents a tested method for using kamaki in windows
165 * Python 2.7 or better (`Official versions <http://www.python.org/getit>`_)
167 * Git (download `windows version <http://git-scm.com/download/win>`_)
169 * Setuptools (`Official versions and workarounds <http://pypi.python.org/pypi/setuptools>`_)
171 Installation from source
172 ^^^^^^^^^^^^^^^^^^^^^^^^
177 Download and run the Windows installer from `here <http://www.python.org/getit>`_
179 Users should pick the installer that fits their windows version and architecture.
181 Add python to windows path
182 """"""""""""""""""""""""""
184 The following will allow users to run python and python scripts from command line.
186 * Select **System** from the Control Panel, select the **Advanced** tab, the **Environment Variables** button and then find the **PATH** (user or system) and **edit**
188 * Without removing existing values, append the following to PATH::
190 C:\Python;C:\Python\Scripts
192 .. note:: Path values are separated by semicolons
194 .. warning:: C:\\Python should be replaced with the actual python path in the system, e.g. C:\\Python27
199 According to the corresponding `python org page <http://pypi.python.org/pypi/setuptools>`_, the setuptools installer doesn't currently work on 64bit machines.
201 * Users with 32-bit operating systems should download and run the graphic installer
203 * Users with 64-bit machines should download the `ez_setup.py <http://peak.telecommunity.com/dist/ez_setup.py>`_ script and install it from a command shell. In the following example, the script was downloaded at C:\\Downloads::
206 C:\Downloads\> python ez_setup.py
208 Installation finished
214 `Download GIT <http://git-scm.com/download/win>`_ and run the graphic installer. During the installation, users will be able to modify some installation options. The present guide is tested with the default selections.
216 After the installation is completed, a GIT standalone shell will be installed (a desktop shortcut is created, by default). Users are advised to run kamaki through this shell.
221 * Run the GIT standalone shell
223 * Enter the location where kamaki will be installed, e.g. **C:\\**
225 .. code-block:: console
229 * Download source from GRNET repository
231 .. code-block:: console
233 $ git clone http://code.grnet.gr/git/kamaki
234 Cloning into 'kamaki'...
235 Receiving objects: ...
236 Resolving Deltas: ...
238 * Enter source and install kamaki
240 .. code-block:: console
243 $ python setup.py install
246 Finished processing dependencies for kamaki==0.6.2
248 .. warning:: kamaki version should be 0.6.2 or better, otherwise it will not function. Users can test that by running::