otherwise *apt-get update* will produce GPG warnings.
.. code-block:: console
$ sudo apt-get update
Install kamaki
""""""""""""""
.. note:: **versions 0.6.0 - 0.6.1:**
The *snf-common* package (available at synnefo apt repository) will be automatically installed as a dependency.
.. note:: **versions 0.6.2 and on:**
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.
With virtualenv users can setup kamaki and synnefo services in a sandbox environment.
...
...
@@ -40,8 +103,8 @@ With virtualenv users can setup kamaki and synnefo services in a sandbox environ
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>`_
2. Install objpool (was: snf-common)
""""""""""""""""""""""""""""""""""""""""""
Install objpool (was: snf-common)
"""""""""""""""""""""""""""""""""
.. note:: **versions 0.6.0 - 0.6.1**
...
...
@@ -65,8 +128,8 @@ Since 0.6.2, kamaki is based on objpool (hence the snf-common dependency is now
$ ./setup build install
$ cd -
3. Install kamaki
"""""""""""""""""
Install kamaki
""""""""""""""
.. code-block:: console
...
...
@@ -74,8 +137,8 @@ Since 0.6.2, kamaki is based on objpool (hence the snf-common dependency is now
$ cd kamaki
$ ./setup build install
4. Install progress and/or ansicolors (optional)
""""""""""""""""""""""""""""""""""""""""""""""""
Install progress and/or ansicolors (optional)
"""""""""""""""""""""""""""""""""""""""""""""
progress: command-line progress bars (in some commands)
...
...
@@ -86,66 +149,102 @@ ansicolors: color kamaki output (can switched on and off in `setup <setup.html>`
$ pip install progress
$ pip install ansicolors
Ubuntu and Debian packages
^^^^^^^^^^^^^^^^^^^^^^^^^^
Mac OS X
--------
The following steps describe a command-line approach, but any graphic package manager can be used instead.
Kamaki can be installed on Mac OS X systems from source, by following the steps at :ref:`installing-from-source-ref`.
1. Add the following to apt sources list
""""""""""""""""""""""""""""""""""""""""
Windows
-------
* Debian::
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
deb http://apt.dev.grnet.gr/ sid main
Requirements
^^^^^^^^^^^^
* Ubuntu::
* Python 2.7 or better (`Official versions <http://www.python.org/getit>`_)
deb http://apt.dev.grnet.gr/ precise main
* Git (download `windows version <http://git-scm.com/download/win>`_)
2. Update
"""""""""
* Setuptools (`Official versions and workarounds <http://pypi.python.org/pypi/setuptools>`_)
.. code-block:: console
Installation from source
^^^^^^^^^^^^^^^^^^^^^^^^
$ sudo apt-get update
Install python
""""""""""""""
.. note:: Don't forget to get the GPG public key for the GRNET dev team:
Download and run the Windows installer from `here <http://www.python.org/getit>`_
.. code-block:: console
Users should pick the installer that fits their windows version and architecture.
otherwise *apt-get update* will produce GPG warnings.
The following will allow users to run python and python scripts from command line.
3. Install kamaki
"""""""""""""""""
* Select **System** from the Control Panel, select the **Advanced** tab, the **Environment Variables** button and then find the **PATH** (user or system) and **edit**
.. note:: **versions 0.6.0 - 0.6.1:**
* Without removing existing values, append the following to PATH::
The *snf-common* package (available at synnefo apt repository) will be automatically installed as a dependency.
C:\Python;C:\Python\Scripts
.. note:: **versions 0.6.2 and on:**
.. note:: Path values are separated by semicolons
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.
.. warning:: C:\\Python should be replaced with the actual python path in the system, e.g. C:\\Python27
.. code-block:: console
Install setuptools
""""""""""""""""""
$ sudo apt-get install kamaki
According to the corresponding `python org page <http://pypi.python.org/pypi/setuptools>`_, the setuptools installer doesn't currently work on 64bit machines.
4. Install ansicolors and/or progress (Optional)
""""""""""""""""""""""""""""""""""""""""""""""""
* Users with 32-bit operating systems should download and run the graphic installer
.. code-block:: console
* 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::
$ sudo apt-get install python-ansicolors
$ sudo apt-get install python-progress
C:\> cd Downloads
C:\Downloads\> python ez_setup.py
...
Installation finished
C:\Downloads\>
Mac OS X
--------
Install GIT
"""""""""""
Kamaki can be installed on Mac OS X systems from source, by following the steps at :ref:`installing-from-source-ref`.
`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.
Windows
-------
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.
Install kamaki
""""""""""""""
* Run the GIT standalone shell
* Enter the location where kamaki will be installed, e.g. **C:\\**
.. code-block:: console
$ cd /c/
* Download source from GRNET repository
.. code-block:: console
$ git clone http://code.grnet.gr/git/kamaki
Cloning into 'kamaki'...
Receiving objects: ...
Resolving Deltas: ...
* Enter source and install kamaki
.. code-block:: console
$ cd kamaki
$ python setup.py install
running install
...
Finished processing dependencies for kamaki==0.6.2
.. warning:: kamaki version should be 0.6.2 or better, otherwise it will not function. Users can test that by running::
Although it is proven not too tricky to install kamaki on Windows console using `git for windows <http://git-scm.com/downloads>`_, Windows environments are not supported at the time being.
Kamaki is easy to install from source or as a package. Some ui features are optional and can be install separately. Kamaki behavior can be configured in the kamaki config file.
Quick Setup
-----------
Kamaki interfaces rely on a list of configuration options. Be default, they are configured to communicate with the `Okeanos IaaS <http://okeanos.grnet.gr>`_.
.. note:: It is essential for users to get a configuration token (okeanos.grnet.gr users go `here <https://accounts.okeanos.grnet.gr/im/>`_) and provide it to kamaki:
.. code-block:: console
:emphasize-lines: 1
Example 1.1: Set user token to myt0k3n==
$ kamaki set token myt0k3n==
To use the storage service, a user should also provide the corresponding user-name: