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 -------------------------------
17 The following steps describe a command-line approach, but any graphic package manager can be used instead.
19 * As root, append the following to */etc/apt/sources.list* ::
21 deb http://apt.dev.grnet.gr/ squeeze main
22 deb http://apt2.dev.grnet.gr stable/
24 * Make sure the GPG public key for the GRNET dev team is added:
26 .. code-block:: console
28 $ sudo curl https://dev.grnet.gr/files/apt-grnetdev.pub|apt-key add -
30 otherwise *apt-get update* will produce GPG warnings.
32 * Update the Debian sources:
34 .. code-block:: console
40 .. code-block:: console
42 $ sudo apt-get install kamaki
47 The following steps describe a command-line approach, but any graphic package manager can be used instead.
49 * Let ppa take care of the repository configuration:
51 .. code-block:: console
53 $ sudo apt-get install python-software-properties
54 $ sudo add-apt-repository ppa:grnet/synnefo
56 * Update the Debian sources:
58 .. code-block:: console
64 .. code-block:: console
66 $ sudo apt-get install kamaki
68 .. _installing-from-source-ref:
70 Installing from source (git repos.)
71 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78 * Python 2.6 or better [http://www.python.org]
79 * Python setuptools [http://pypi.python.org/pypi/setuptools]
83 * VirtualEnv (python-virtualenv) [http://www.virtualenv.org]
85 Setup a virtual enviroment (optional)
86 """""""""""""""""""""""""""""""""""""
88 With virtualenv users can setup kamaki and synnefo services in a sandbox environment.
90 .. code-block:: console
92 $ virtualenv kamaki-env
93 $ source kamaki-env/bin/activate
95 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>`_
97 Install objpool (was: snf-common)
98 """""""""""""""""""""""""""""""""
100 Kamaki is based on python-objpool. The objpool package is easy to install from source, even on windows platforms:
102 .. code-block:: console
104 $ git clone http://code.grnet.gr/git/objpool
106 $ ./setup build install
112 Kamaki can be downloaded from `this location <https://code.grnet.gr/projects/kamaki/files>`_, where users can pick the version they prefer and unzip it locally:
114 .. code-block:: console
116 $ tar xvfz kamaki-0.7.tar.gz
118 or it can be downloaded directly from the git repository:
120 .. code-block:: console
122 $ git clone http://code.grnet.gr/git/kamaki
124 and then installed by the setup script:
126 .. code-block:: console
129 $ ./setup build install
131 Install ansicolors / progress
132 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134 Packages **ansicolors** and **progress** are not required for running kamaki, but
135 they are recommended as a user experience improvement. In specific, ansicolors
136 adds colors to kamaki responses and progress adds progressbars to the commands
137 that can make use of it (*/store download*, */store upload*, */server wait* etc.)
142 Follow the `Debian <#debian>`_ or `Ubuntu <#ubuntu>`_ installation procedure described earlier
145 .. code-block:: console
148 $ sudo apt-get install python-ansicolors
151 $ sudo apt-get install python-progress
156 If setuptools is not installed, `install them <http://pypi.python.org/pypi/setuptools>`_ and then type:
158 .. code-block:: console
161 $ pip install ansicolors
164 $ pip install progress
169 Kamaki can be installed on Mac OS X systems from source, by following the steps at :ref:`installing-from-source-ref`.
174 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 setting up kamaki in windows
179 * Python 2.7 or better (`Official versions <http://www.python.org/getit>`_)
181 * Git (download `windows version <http://git-scm.com/download/win>`_)
183 * Setuptools (`Official versions and workarounds <http://pypi.python.org/pypi/setuptools>`_)
185 Installation from source
186 ^^^^^^^^^^^^^^^^^^^^^^^^
191 Download and run the Windows installer from `here <http://www.python.org/getit>`_
193 Users should pick the installer that fits their windows version and architecture.
195 Add python to windows path
196 """"""""""""""""""""""""""
198 The following will allow users to run python and python scripts from command line.
200 * Select **System** from the Control Panel, select the **Advanced** tab, the **Environment Variables** button and then find the **PATH** (user or system) and **edit**
202 * Without removing existing values, append the following to PATH::
204 C:\Python;C:\Python\Scripts
206 .. note:: Path values are separated by semicolons
208 .. warning:: C:\\Python should be replaced with the actual python path in the system, e.g. C:\\Python27
213 According to the corresponding `python org page <http://pypi.python.org/pypi/setuptools>`_, the setuptools installer doesn't currently work on 64bit machines.
215 * Users with 32-bit operating systems should download and run the graphic installer
217 * 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::
220 C:\Downloads\> python ez_setup.py
222 Installation finished
228 `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.
230 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.
235 * Run the GIT standalone shell
237 * Enter the location where kamaki will be installed, e.g. **C:\\**
239 .. code-block:: console
243 * Download source from GRNET repository
245 .. code-block:: console
247 $ git clone http://code.grnet.gr/git/kamaki
248 Cloning into 'kamaki'...
249 Receiving objects: ...
250 Resolving Deltas: ...
252 * Enter source and install kamaki
254 .. code-block:: console
257 $ python setup.py install
260 Finished processing dependencies for kamaki==0.7