Statistics
| Branch: | Tag: | Revision:

root / docs / installation.rst @ 5f5045b5

History | View | Annotate | Download (3.2 kB)

1
Installation
2
============
3

    
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.
5

    
6

    
7
* Kamaki repository: `http://code.grnet.gr/git/kamaki <http://code.grnet.gr/git/kamaki>`_
8

    
9
* Synnefo Linux packages: `http://apt.dev.grnet.gr <http://apt.dev.grnet.gr>`_
10

    
11
Linux and Unix-like enviroments
12
-------------------------------
13

    
14
.. _installing-from-source-ref:
15

    
16
Installing from source (git repos.)
17
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18

    
19
1. Setup a virtual enviroment (optional)
20
""""""""""""""""""""""""""""""""""""""""
21

    
22
With virtualenv users can setup kamaki and synnefo services in a sandbox environment.
23

    
24
.. code-block:: console
25

    
26
    $ virtualenv kamaki-env
27

    
28
    $ source kamaki-env/bin/activate
29

    
30
.. hint:: More about virtualenv: `<http://www.virtualenv.org>`_
31

    
32
2. Install snf-common from synnefo project (required since v0.6.0)
33
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
34

    
35
Package snf-common is required since kamaki 0.6.0.
36

    
37
.. code-block:: console
38

    
39
    $ git clone http://code.grnet.gr/git/synnefo
40

    
41
    $ cd synnefo/snf-common
42

    
43
    $ ./setup build install
44

    
45
    $ cd -
46

    
47
3. Install kamaki
48
"""""""""""""""""
49

    
50
.. code-block:: console
51

    
52
    $ git clone http://code.grnet.gr/git/kamaki
53

    
54
    $ cd kamaki
55

    
56
    $ ./setup build install
57

    
58
4. Install progress and/or ansicolors (optional)
59
""""""""""""""""""""""""""""""""""""""""""""""""
60

    
61
progress: command-line progress bars (in some commands)
62

    
63
ansicolors: color kamaki output (can switched on and off in `setup <setup.html>`_)
64

    
65
.. code-block:: console
66

    
67
    $ pip install progress
68

    
69
    $ pip install ansicolors
70

    
71
Ubuntu and Debian packages
72
^^^^^^^^^^^^^^^^^^^^^^^^^^
73

    
74
The following steps describe a command-line approach, but any graphic package manager can be used instead.
75

    
76
1. Add the following to apt sources list
77
""""""""""""""""""""""""""""""""""""""""
78

    
79
* Debian::
80

    
81
    deb http://apt.dev.grnet.gr/ sid main
82

    
83
* Ubuntu::
84

    
85
    deb http://apt.dev.grnet.gr/ precise main
86

    
87
2. Update
88
"""""""""
89

    
90
.. code-block:: console
91

    
92
    $ sudo apt-get update
93

    
94
.. note:: Safely ignore a signature verification error like the following, if it emerges:
95

    
96
    .. warning:: GPG error: http://apt.dev.grnet.gr precise/sid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY XXXXXXXX
97

    
98
3. Install kamaki
99
"""""""""""""""""
100

    
101
Since version 0.6.0, the package snf-common (available at synnefo apt repository) will be automatically installed as a dependency.
102

    
103
.. code-block:: console
104

    
105
    $ sudo apt-get install kamaki
106

    
107
4. Install ansicolors and/or progress (Optional)
108
""""""""""""""""""""""""""""""""""""""""""""""""
109

    
110
.. code-block:: console
111

    
112
    $ sudo apt-get install python-ansicolors
113

    
114
    $ sudo apt-get install python-progress
115

    
116
Mac OS X
117
--------
118

    
119
Kamaki can be installed on Mac OS X systems from source, by following the steps at :ref:`installing-from-source-ref`.
120

    
121
Windows
122
-------
123

    
124
It has proven possible (and not too tricky) to install kamaki on Windows console using some auxiliary applications, but Windows users are not the target audience for the time being.