view content/getting-started/content.html @ 44:2be05d9e2aa9

Fix instructions on getting-started page
author Jie Kang <jkang@redhat.com>
date Tue, 24 Jan 2017 09:30:46 -0500
parents 4c00138dbca7
children 4980b1410c79
line wrap: on
line source

<div class="row">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h1 class="panel-title">Requirements</h1>
    </div>
    <div class="panel-body">
      <h4>
        <ul>
          <li>Linux (Fedora, RHEL, CentOS, etc.)</li>
          <li>OpenJDK &gt;= 1.7</li>
          <li>Mongodb &gt;= 2.2 (or 2.0 if no SSL required)</li>
          <li>Servlet container (optional)</li>
        </ul>
      </h4>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading">
      <h1 class="panel-title" id="getting-started">Getting Started</h1>
    </div>
    <div class="panel-body">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h2 class="panel-title">Installation</h2>
        </div>
        <div class="panel-body">
          <h4> There are a few options for getting Thermostat on your machine.</h4>
          <div class="col-md-4">
            <h4> Install it on Fedora: </h4>
            <p><code>
                $ sudo dnf install thermostat
              </code></p>
          </div>
          <div class="col-md-4">
            <h4> Get the latest <a href="../downloads">Release</a>.</h4>
            <p><code>
                $ tar xvf thermostat-1.6.6.tar.gz
              </code></p>
            <p><code>
                  $ sudo dnf install mercurial maven mongodb mongodb-server java-1.8.0-openjdk libsecret-devel make gcc gtk2-devel autoconf automake libtool
              </code></p>
            <p><code>
                $ cd thermostat-1.6.6 && mvn clean integration-test
              </code></p>
            <p><code>
                $ export PATH=$PATH:path/to/thermostat-1.6.6/distribution/target/image/bin
              </code></p>
          </div>
          <div class="col-md-4">
            <h4> Compile from Mercurial source: </h4>
            <p><code>
                  $ sudo dnf install mercurial maven mongodb mongodb-server java-1.8.0-openjdk libsecret-devel make gcc gtk2-devel autoconf automake libtool
              </code></p>
            <p><code>
                  $  hg clone http://icedtea.classpath.org/hg/thermostat
              </code></p>
            <p><code>
                  $  cd thermostat && mvn clean integration-test
              </code></p>
            <p><code>
                $ export PATH=$PATH:path/to/thermostat/distribution/target/image/bin
              </code></p>
          </div>
        </div>
      </div>

      <div class="panel panel-default">
        <div class="panel-heading">
          <h2 class="panel-title">Running Thermostat</h2>
        </div>
        <div class="panel-body">
          <h4>To make sure the installation is correct, first run:</h4>
          <code>$ thermostat --version</code>
          <h4>It should output, depending on the version, something like:</h4>
          <code>Thermostat version 1.99.12</code>
          <h4>
            If there are errors, it is likely that the PATH has not been correctly set to include the Thermostat bin folder. See the
            installation instructions for setting the path to Thermostat.
          </h4>
          <h4>Next we run locally by:</h4>
          <code>$ thermostat local</code>
          <h4>
            This starts the Agent (monitors jvms), the Web-Storage (stores data) and the GUI (displays data) all on your local machine.
          </h4>
          <h4 style="margin-top: 3em;">For a distributed setup over multiple machines and more information, see the <a href="../documentation">Documentation</a>.</h4>
        </div>
      </div>

    </div>
  </div>
</div>