root / docs / installation.rst @ ec3b8f78
History | View | Annotate | Download (4.4 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 |
Ubuntu and Debian packages |
15 |
^^^^^^^^^^^^^^^^^^^^^^^^^^ |
16 |
|
17 |
The following steps describe a command-line approach, but any graphic package manager can be used instead. |
18 |
|
19 |
Add the following to apt sources list |
20 |
""""""""""""""""""""""""""""""""""""" |
21 |
|
22 |
As root, append one of the following to */etc/apt/sources.list*: |
23 |
|
24 |
* Debian Sid (kamaki 0.6.2):: |
25 |
|
26 |
deb http://apt.dev.grnet.gr/ sid main |
27 |
|
28 |
* Debian Stable (kamaki 0.6.1):: |
29 |
|
30 |
deb http://apt.dev.grnet.gr/ squeeze main |
31 |
deb http://apt2.dev.grnet.gr stable/ |
32 |
|
33 |
* Ubuntu (kamaki 0.6.1):: |
34 |
|
35 |
deb http://apt.dev.grnet.gr/ precise main |
36 |
|
37 |
|
38 |
Update |
39 |
"""""" |
40 |
|
41 |
.. note:: make sure the GPG public key for the GRNET dev team is added: |
42 |
|
43 |
.. code-block:: console |
44 |
|
45 |
$ curl https://dev.grnet.gr/files/apt-grnetdev.pub|apt-key add - |
46 |
|
47 |
otherwise *apt-get update* will produce GPG warnings. |
48 |
|
49 |
.. code-block:: console |
50 |
|
51 |
$ sudo apt-get update |
52 |
|
53 |
|
54 |
Install kamaki |
55 |
"""""""""""""" |
56 |
|
57 |
.. note:: **versions 0.6.0 - 0.6.1:** |
58 |
|
59 |
The *snf-common* package (available at synnefo apt repository) will be automatically installed as a dependency. |
60 |
|
61 |
.. note:: **versions 0.6.2 and on:** |
62 |
|
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. |
64 |
|
65 |
.. code-block:: console |
66 |
|
67 |
$ sudo apt-get install kamaki |
68 |
|
69 |
Install ansicolors and/or progress (Optional) |
70 |
""""""""""""""""""""""""""""""""""""""""""""" |
71 |
|
72 |
.. code-block:: console |
73 |
|
74 |
$ sudo apt-get install python-ansicolors |
75 |
$ sudo apt-get install python-progress |
76 |
|
77 |
.. _installing-from-source-ref: |
78 |
|
79 |
Installing from source (git repos.) |
80 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
81 |
|
82 |
Requirements |
83 |
"""""""""""" |
84 |
|
85 |
Essential: |
86 |
|
87 |
* Python 2.6 or better [http://www.python.org] |
88 |
* Python setuptools [http://pypi.python.org/pypi/setuptools] |
89 |
|
90 |
Optional: |
91 |
|
92 |
* VirtualEnv (python-virtualenv) [http://www.virtualenv.org] |
93 |
|
94 |
Setup a virtual enviroment (optional) |
95 |
""""""""""""""""""""""""""""""""""""" |
96 |
|
97 |
With virtualenv users can setup kamaki and synnefo services in a sandbox environment. |
98 |
|
99 |
.. code-block:: console |
100 |
|
101 |
$ virtualenv kamaki-env |
102 |
$ source kamaki-env/bin/activate |
103 |
|
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>`_ |
105 |
|
106 |
Install objpool (was: snf-common) |
107 |
""""""""""""""""""""""""""""""""" |
108 |
|
109 |
.. note:: **versions 0.6.0 - 0.6.1** |
110 |
|
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: |
112 |
|
113 |
.. code-block:: console |
114 |
|
115 |
$ git clone http://code.grnet.gr/git/synnefo |
116 |
$ cd synnefo/snf-common |
117 |
$ ./setup build install |
118 |
$ cd - |
119 |
|
120 |
**Version 0.6.2 and on:** |
121 |
|
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: |
123 |
|
124 |
.. code-block:: console |
125 |
|
126 |
$ git clone http://code.grnet.gr/git/objpool |
127 |
$ cd objpool |
128 |
$ ./setup build install |
129 |
$ cd - |
130 |
|
131 |
Install kamaki |
132 |
"""""""""""""" |
133 |
|
134 |
.. code-block:: console |
135 |
|
136 |
$ git clone http://code.grnet.gr/git/kamaki |
137 |
$ cd kamaki |
138 |
$ ./setup build install |
139 |
|
140 |
Install progress and/or ansicolors (optional) |
141 |
""""""""""""""""""""""""""""""""""""""""""""" |
142 |
|
143 |
progress: command-line progress bars (in some commands) |
144 |
|
145 |
ansicolors: color kamaki output (can switched on and off in `setup <setup.html>`_) |
146 |
|
147 |
.. code-block:: console |
148 |
|
149 |
$ pip install progress |
150 |
$ pip install ansicolors |
151 |
|
152 |
Mac OS X |
153 |
-------- |
154 |
|
155 |
Kamaki can be installed on Mac OS X systems from source, by following the steps at :ref:`installing-from-source-ref`. |
156 |
|
157 |
Windows |
158 |
------- |
159 |
|
160 |
Since version 0.6.2 kamaki can run on Windows, either on standard Windows console, or inside an improved command line shell. |