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 Install ansicolors and/or progress (Optional but recommended)
69 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
71 .. code-block:: console
73 $ sudo apt-get install python-ansicolors
74 $ sudo apt-get install python-progress
76 .. _installing-from-source-ref:
78 Installing from source (git repos.)
79 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86 * Python 2.6 or better [http://www.python.org]
87 * Python setuptools [http://pypi.python.org/pypi/setuptools]
91 * VirtualEnv (python-virtualenv) [http://www.virtualenv.org]
93 Setup a virtual enviroment (optional)
94 """""""""""""""""""""""""""""""""""""
96 With virtualenv users can setup kamaki and synnefo services in a sandbox environment.
98 .. code-block:: console
100 $ virtualenv kamaki-env
101 $ source kamaki-env/bin/activate
103 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>`_
105 Install objpool (was: snf-common)
106 """""""""""""""""""""""""""""""""
108 Kamaki is based on python-objpool. The objpool package is easy to install from source, even on windows platforms:
110 .. code-block:: console
112 $ git clone http://code.grnet.gr/git/objpool
114 $ ./setup build install
120 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:
122 .. code-block:: console
124 $ tar xvfz kamaki-0.7.tar.gz
126 or it can be downloaded directly from the git repository:
128 .. code-block:: console
130 $ git clone http://code.grnet.gr/git/kamaki
132 and then installed by the setup script:
134 .. code-block:: console
137 $ ./setup build install
139 Install progress and/or ansicolors (optional)
140 """""""""""""""""""""""""""""""""""""""""""""
142 progress: command-line progress bars (in some commands)
144 ansicolors: color kamaki output (can switched on and off in `setup <setup.html>`_)
146 .. code-block:: console
148 $ pip install progress
149 $ pip install ansicolors
154 Kamaki can be installed on Mac OS X systems from source, by following the steps at :ref:`installing-from-source-ref`.
159 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
164 * Python 2.7 or better (`Official versions <http://www.python.org/getit>`_)
166 * Git (download `windows version <http://git-scm.com/download/win>`_)
168 * Setuptools (`Official versions and workarounds <http://pypi.python.org/pypi/setuptools>`_)
170 Installation from source
171 ^^^^^^^^^^^^^^^^^^^^^^^^
176 Download and run the Windows installer from `here <http://www.python.org/getit>`_
178 Users should pick the installer that fits their windows version and architecture.
180 Add python to windows path
181 """"""""""""""""""""""""""
183 The following will allow users to run python and python scripts from command line.
185 * Select **System** from the Control Panel, select the **Advanced** tab, the **Environment Variables** button and then find the **PATH** (user or system) and **edit**
187 * Without removing existing values, append the following to PATH::
189 C:\Python;C:\Python\Scripts
191 .. note:: Path values are separated by semicolons
193 .. warning:: C:\\Python should be replaced with the actual python path in the system, e.g. C:\\Python27
198 According to the corresponding `python org page <http://pypi.python.org/pypi/setuptools>`_, the setuptools installer doesn't currently work on 64bit machines.
200 * Users with 32-bit operating systems should download and run the graphic installer
202 * 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::
205 C:\Downloads\> python ez_setup.py
207 Installation finished
213 `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.
215 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.
220 * Run the GIT standalone shell
222 * Enter the location where kamaki will be installed, e.g. **C:\\**
224 .. code-block:: console
228 * Download source from GRNET repository
230 .. code-block:: console
232 $ git clone http://code.grnet.gr/git/kamaki
233 Cloning into 'kamaki'...
234 Receiving objects: ...
235 Resolving Deltas: ...
237 * Enter source and install kamaki
239 .. code-block:: console
242 $ python setup.py install
245 Finished processing dependencies for kamaki==0.7