Show
Ignore:
Timestamp:
03/02/10 06:00:29 (2 years ago)
Author:
cmoullet
Message:

Update getting started for Ubuntu

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/getting_started.html

    r3379 r3380  
    4848  <div class="section" id="module-1-getting-started"> 
    4949<h1>Module 1 - Getting Started<a class="headerlink" href="#module-1-getting-started" title="Permalink to this headline">¶</a></h1> 
    50 <p>Start by creating a folder named <tt class="docutils literal"><span class="pre">MapFish</span></tt> in the <tt class="docutils literal"><span class="pre">C:\</span></tt> folder, this will 
     50<p>Start by creating a folder named <tt class="docutils literal"><span class="pre">mapfish</span></tt> in the <tt class="docutils literal"><span class="pre">/home/live</span></tt> folder, this will 
    5151be your working folder for this workshop.</p> 
    5252<div class="section" id="getting-workshop-material"> 
    5353<h2>Getting workshop material<a class="headerlink" href="#getting-workshop-material" title="Permalink to this headline">¶</a></h2> 
    5454<p>Get the Workshop material by checking out 
    55 <a class="reference external" href="http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop">http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop</a> with 
    56 Turtoise SVN.  For this open the explorer, go into <tt class="docutils literal"><span class="pre">C:\MapFish</span></tt>, right-click 
    57 in the explorer window, choose <tt class="docutils literal"><span class="pre">SVN</span> <span class="pre">Checkout...</span></tt>, enter the above URL, check 
    58 that the <cite>Checkout directory</cite> is <tt class="docutils literal"><span class="pre">C:\MapFish\mapfish_workshop</span></tt>, and click 
    59 <tt class="docutils literal"><span class="pre">OK</span></tt>.</p> 
    60 <p>Export the <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt> folder to your Apache document root, for 
     55<a class="reference external" href="http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/">http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/</a> with svn:</p> 
     56<div class="highlight-python"><pre>svn co http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/</pre> 
     57</div> 
     58<p>Export the <cite>mapfish_workshop_fossgis2010`</cite> folder to your Apache document root, for 
    6159example by copying it in Apache&#8217;s <tt class="docutils literal"><span class="pre">htdocs</span></tt> directory. You should be able to 
    62 load <a class="reference external" href="http://localhost/mapfish_workshop/printing">http://localhost/mapfish_workshop/printing</a> in your web browser.</p> 
     60load <a class="reference external" href="http://localhost/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html">http://localhost/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html</a> in your web browser.</p> 
    6361</div> 
    6462<div class="section" id="installing-mapfish"> 
    6563<h2>Installing MapFish<a class="headerlink" href="#installing-mapfish" title="Permalink to this headline">¶</a></h2> 
    66 <p>To install MapFish, first make sure you&#8217;ve installed &#8220;Python for Windows extensions&#8221;. 
    67 If not, you can get it here: <a class="reference external" href="http://sourceforge.net/projects/pywin32/">http://sourceforge.net/projects/pywin32/</a></p> 
    68 <p>Open a terminal command and follow these steps:</p> 
    69 <div class="highlight-python"><pre>C:\&gt;cd C:\MapFish 
    70 C:\MapFish&gt;C:\Python25\python.exe mapfish_workshop\software\go-mapfish-framework-1.2.py env</pre> 
     64<p>To install MapFish, open a terminal and first install the requirements:</p> 
     65<div class="highlight-python"><pre>sudo apt-get install python2.5 python2.5-dev 
     66sudo apt-get install libgeos-3.0.0 postgresql postgis</pre> 
     67</div> 
     68<p>Then download the MapFish installer located in <a class="reference external" href="http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py">http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py</a>:</p> 
     69<div class="highlight-python"><pre>cd mapfish 
     70curl http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py &gt; go-mapfish-framework-1.2.py</pre> 
     71</div> 
     72<p>And follow this step:</p> 
     73<div class="highlight-python"><pre>python25 go-mapfish-framework-1.2.py --no-site-packages env</pre> 
    7174</div> 
    7275<p>This command creates a virtual Python environment named <tt class="docutils literal"><span class="pre">env</span></tt> and installs 
    7376MapFish and its dependencies into it.</p> 
    7477<p>Now activate the virtual environment with:</p> 
    75 <div class="highlight-python"><pre>C:\MapFish&gt;env\Scripts\activate.bat</pre> 
     78<div class="highlight-python"><pre>source env/bin/activate</pre> 
    7679</div> 
    7780<p>You command prompt should now look like this:</p> 
    78 <div class="highlight-python"><pre>&lt;env&gt; C:\MapFish&gt;</pre> 
     81<div class="highlight-python"><pre>(env) $</pre> 
    7982</div> 
    8083<p>To check that MapFish is correctly installed, enter:</p> 
    81 <div class="highlight-python"><pre>&lt;env&gt; C:\MapFish&gt;paster create --list-templates</pre> 
     84<div class="highlight-python"><pre>(env) $ paster create --list-templates</pre> 
    8285</div> 
    8386<p>and check that the output is:</p> 
     
    9396<div class="section" id="installing-firefox-extensions"> 
    9497<h2>Installing FireFox extensions<a class="headerlink" href="#installing-firefox-extensions" title="Permalink to this headline">¶</a></h2> 
    95 <p>It is recommended that you use FireFox and install <a class="reference external" href="http://getfirebug.com/">Firebug</a> <a class="footnote-reference" href="#id2" id="id1">[1]</a>. Firebug is an add-on for Firefox that allows 
    96 you to debug JavaScript in any web page. Firebug requires Firefox and cannot be 
     98<p>It is recommended that you use FireFox/Iceweasel and install <a class="reference external" href="http://getfirebug.com/">Firebug</a> <a class="footnote-reference" href="#id2" id="id1">[1]</a> (Use version 1.4.5 for FireFox/Iceweasel 3.0). Firebug is an add-on for FireFox/Iceweasel that allows 
     99you to debug JavaScript in any web page. Firebug requires FireFox/Iceweasel and cannot be 
    97100used with any other web browser. Installing the <a class="reference external" href="https://addons.mozilla.org/en-US/firefox/addon/10869">JSONView</a> extension is also 
    98101recommented, it will be used for viewing JSON responses in FireFox.</p>