/usr/share/doc/python-glance-doc/html/installing.html is in python-glance-doc 2012.1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Installing Glance — Glance 2012.1 documentation</title>
<link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/tweaks.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '2012.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/jquery.tweet.js"></script>
<link rel="top" title="Glance 2012.1 documentation" href="index.html" />
<link rel="next" title="Controlling Glance Servers" href="controllingservers.html" />
<link rel="prev" title="Disk and Container Formats" href="formats.html" />
<script type='text/javascript'>
$(document).ready(function(){
$("#twitter_feed").tweet({
username: "openstack",
query: "from:openstack",
avatar_size: 32,
count: 10,
loading_text: "loading tweets..."
});
});
</script>
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="controllingservers.html" title="Controlling Glance Servers"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="formats.html" title="Disk and Container Formats"
accesskey="P">previous</a> |</li>
<li><a href="index.html">Glance 2012.1 documentation</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Installing Glance</a><ul>
<li><a class="reference internal" href="#installing-from-packages">Installing from packages</a><ul>
<li><a class="reference internal" href="#debian-ubuntu">Debian, Ubuntu</a></li>
<li><a class="reference internal" href="#red-hat-fedora">Red Hat, Fedora</a></li>
</ul>
</li>
<li><a class="reference internal" href="#installing-from-source-tarballs">Installing from source tarballs</a></li>
<li><a class="reference internal" href="#installing-from-git">Installing from Git</a><ul>
<li><a class="reference internal" href="#id1">Debian, Ubuntu</a></li>
<li><a class="reference internal" href="#id2">Red Hat, Fedora</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="formats.html"
title="previous chapter">Disk and Container Formats</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="controllingservers.html"
title="next chapter">Controlling Glance Servers</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/installing.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" size="18" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="installing-glance">
<h1>Installing Glance<a class="headerlink" href="#installing-glance" title="Permalink to this headline">¶</a></h1>
<div class="section" id="installing-from-packages">
<h2>Installing from packages<a class="headerlink" href="#installing-from-packages" title="Permalink to this headline">¶</a></h2>
<p>To install the latest released version of Glance,
follow the following instructions.</p>
<div class="section" id="debian-ubuntu">
<h3>Debian, Ubuntu<a class="headerlink" href="#debian-ubuntu" title="Permalink to this headline">¶</a></h3>
<ol class="arabic">
<li><p class="first">Add the Glance PPA to your sources.lst:</p>
<div class="highlight-python"><pre>$> sudo add-apt-repository ppa:glance-core/trunk
$> sudo apt-get update</pre>
</div>
</li>
<li><p class="first">Install Glance:</p>
<div class="highlight-python"><pre>$> sudo apt-get install glance</pre>
</div>
</li>
</ol>
</div>
<div class="section" id="red-hat-fedora">
<h3>Red Hat, Fedora<a class="headerlink" href="#red-hat-fedora" title="Permalink to this headline">¶</a></h3>
<p>Only RHEL 6, Fedora 15, and newer releases have the necessary
components packaged.
On RHEL 6, enable the EPEL repository.</p>
<p>Install Glance:</p>
<div class="highlight-python"><pre>$ su -
# yum install openstack-glance</pre>
</div>
</div>
</div>
<div class="section" id="installing-from-source-tarballs">
<h2>Installing from source tarballs<a class="headerlink" href="#installing-from-source-tarballs" title="Permalink to this headline">¶</a></h2>
<p>To install the latest version of Glance from the Launchpad Bazaar repositories,
following the following instructions.</p>
<ol class="arabic">
<li><p class="first">Grab the source tarball from <a class="reference external" href="http://launchpad.net/glance/+download">Launchpad</a></p>
</li>
<li><p class="first">Untar the source tarball:</p>
<div class="highlight-python"><pre>$> tar -xzf <FILE></pre>
</div>
</li>
<li><p class="first">Change into the package directory and build/install:</p>
<div class="highlight-python"><pre>$> cd glance-<RELEASE>
$> sudo python setup.py install</pre>
</div>
</li>
</ol>
</div>
<div class="section" id="installing-from-git">
<h2>Installing from Git<a class="headerlink" href="#installing-from-git" title="Permalink to this headline">¶</a></h2>
<p>To install the latest version of Glance from the GitHub Git repositories,
following the following instructions.</p>
<div class="section" id="id1">
<h3>Debian, Ubuntu<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3>
<ol class="arabic">
<li><p class="first">Install Git and build dependencies:</p>
<div class="highlight-python"><pre>$> sudo apt-get install git
$> sudo apt-get build-dep glance</pre>
</div>
</li>
</ol>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">If you want to build the Glance documentation locally, you will also want
to install the python-sphinx package</p>
</div>
<ol class="arabic" start="2">
<li><p class="first">Clone Glance’s trunk branch from GitHub:</p>
<div class="highlight-python"><pre>$> git clone git://github.com/openstack/glance
$> cd glance</pre>
</div>
</li>
<li><p class="first">Install Glance:</p>
<div class="highlight-python"><pre>$> sudo python setup.py install</pre>
</div>
</li>
</ol>
</div>
<div class="section" id="id2">
<h3>Red Hat, Fedora<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h3>
<p>On Fedora, most developers and essentially all users install packages.
Instructions below are not commonly used, and even then typically in a
throw-away VM.</p>
<p>Since normal build dependencies are resolved by mechanisms of RPM,
there is no one-line command to install everything needed by
the source repository in git. One common way to discover the dependencies
is to search for <em>BuildRequires:</em> in the specfile of openstack-glance
for the appropriate distro.</p>
<p>In case of Fedora 16, for example, do this:</p>
<div class="highlight-python"><pre>$ su -
# yum install git
# yum install python2-devel python-setuptools python-distutils-extra
# yum install python-webob python-eventlet python-boto
# yum install python-virtualenv</pre>
</div>
<p>Build Glance:</p>
<div class="highlight-python"><pre>$ python setup.py build</pre>
</div>
<p>If any missing modules crop up, install them with yum, then retry the build.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">If you want to build the Glance documentation, you will also want
to install the packages python-sphinx and graphviz, then run
“python setup.py build_sphinx”. Due to required features of
python-sphinx 1.0 or better, documentation can only be built
on Fedora 15 or later.</p>
</div>
<p>Test the build:</p>
<div class="highlight-python"><pre>$ ./run_tests.sh -s</pre>
</div>
<p>Once Glance is built and tested, install it:</p>
<div class="highlight-python"><pre>$ su -
# python setup.py install</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="controllingservers.html" title="Controlling Glance Servers"
>next</a> |</li>
<li class="right" >
<a href="formats.html" title="Disk and Container Formats"
>previous</a> |</li>
<li><a href="index.html">Glance 2012.1 documentation</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2010-present, OpenStack, LLC..
Last updated on Apr 13, 2012.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
</div>
</body>
</html>
|