[auscope-geosciml] OpenGeo: OpenGeo Suite Community Edition on Amazon Web Services

Stephen M Richard steve.richard at azgs.az.gov
Wed Sep 15 18:10:37 EDT 2010



OpenGeo provides an easy starting point for Amazon machines planning to 
run Geoserver/PostGIS.

Ryan and Steve

View article... 
<http://blog.opengeo.org/2010/09/13/opengeo-suite-community-edition-on-amazon-web-services/>

  Here's the article:

OpenGeo has released the OpenGeo Suite Community Edition 2.1.3 
<http://opengeo.org/products/suite/> for Amazon EC2 
<http://aws.amazon.com/ec2/>. Linux (Ubuntu 9.10) and Windows (Server 
2003) versions are available as public AMIs (Amazon Machine Instance) 
ready for deployment on Amazon Web Services. The OpenGeo Suite AMIs 
simplify deploying web mapping applications by providing a complete 
environment. When an instance is launched the OpenGeo Suite is ready to 
serve maps and data on the web.

The Community Edition Suite AMIs are built on S3 boot images, which 
provide the lowest cost of operation. Note that AMIs based on S3 boot 
images will loose all data and changes you have made if the instance is 
terminated. To ensure that data and applications are saved you can add 
an Elastic Block Storage <http://aws.amazon.com/ebs/> (EBS) Volume to 
store your data—this is not included with the OpenGeo Suite Community 
Edition AMIs.

The first part of this article describes how to obtain security 
credentials if you are new to Amazon Web Services. If you are already an 
AWS customer then log into the AWS console to launch the OpenGeo Suite 
AMIs as described further down.


    *First time Amazon Web Service EC2 Users*

You will need an Amazon Web Services account. If you don’t have and 
account, the registration page 
<https://www.amazon.com/ap/signin?openid.ns=http://specs.openid.net/auth/2.0&authCookies=1&openid.mode=checkid_setup&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.pape.max_auth_age=600&openid.return_to=https://www.amazon.com/gp/aws/ssop/handlers/auth-portal.html%3Fie%3DUTF8%26wreply%3Dhttps%253A%252F%252Faws-portal.amazon.com%252Fgp%252Faws%252Fdeveloper%252Fregistration%252Findex.html%26awsrequestchallenge%3Dfalse%26wtrealm%3Durn%253Aaws%253AawsAccessKeyId%253A1QQFCEAYKJXP0J7S2T02%26wctx%3D%26awsaccountstatuspolicy%3DP1%26wa%3Dwsignin1.0%26awsrequesttfa%3Dtrue&openid.assoc_handle=ssop&openid.pape.preferred_auth_policies=http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&accountStatusPolicy=P1&siteState=awsMode::signUp::&> 
will walk you through the process. If you already have an AWS account, 
you can skip this section and start at Launching the OpenGeo Suite 
instance using the *AWS Management Console.*

Once you have logged in, you will need to generate a set of security 
credentials to manage your account and your AMIs. You will need the 
following credentials:

    * *Access Credentials:* Your Private Keys, X.509 Certificates, and
      Key Pairs for managing your AMIs
    * *Sign-In Credentials:* Your E-mail Address, Password for managing
      your account
    * *Account Identifiers:* Your AWS Account ID


      Creating a X.509 certificate and a Private Key

The X.509 Certificate and Private Key are used by the command line tools 
and SOAP. The X.509 certificate and Private Key are used when starting 
or stopping instances and when creating new AMIs. You can download the 
private key file once. If you lose it, you will need to create a new 
certificate. Up to two certificates can be active at any time.

   1. Log into the AWS Web Site
      <https://www.amazon.com/ap/signin?openid.ns=http://specs.openid.net/auth/2.0&authCookies=1&openid.mode=checkid_setup&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.pape.max_auth_age=600&openid.return_to=https://www.amazon.com/gp/aws/ssop/handlers/auth-portal.html%3Fie%3DUTF8%26awstokenttl%3D43200%26wreply%3Dhttps%253A%252F%252Fconsole.aws.amazon.com%252Fs3%252Flogin%2521doAuthenticate%26awsstrict%3Dfalse%26wtrealm%3Durn%253Aaws%253Asid%253AAKIAJBHAI75QI6ANOM4Q%26awsaccountstatuspolicy%3DP1%26wa%3Dwsignin1.1%26awsrequesttfa%3Dtrue&openid.assoc_handle=ssop&openid.pape.preferred_auth_policies=http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&accountStatusPolicy=P1&>.
   2. Click on *Your Account* and select *Security Credentials*
   3. Click the *X.509 Certificates* tabcreate-x509-cert
   4. Click *Create a New Certificate* and download the certificate and
      private key files.

x509-download

5. Create a .ec2 directory in your home directory, and save these files 
to it with the filenames offered by your browser.


      Generate a Key Pair using the AWS Management Console

A key pair is used when logging into an Amazon EC2 instance.

   1. Log into the *AWS Management Console* and click on the *Amazon EC2
      *tab
   2. Click on *Key Pairs* in the *Navigation* pane on the
      left.aws-console-keypair
   3. Click on *Create Key Pair*, enter a name, and click
      Createcreate-keypair
   4. The key pair will be downloaded automatically, keep the file in a
      safe place.download-keypair
   5. If you are using Linux, OS X, or any unix based OS, set the file
      permissions to be readable by you

$ chmod 600 my-keypair


    Launching the OpenGeo Suite instance using the AWS Management Console

You can launch the OpenGeo Suite AMI using the Management Console using 
your security credentials.

   1. Log in the *AWS Management Console* and click the *Amazon EC2* tab
   2. Click on *AMIs* in the *Navigation* side menu
   3. In the *Amazon Machine Images* pane, select* Public Images *and
      *All Platforms* in the drop down menus.
   4. Copy and paste the OpenGeo Suite image AMI ID into the text box
      and hit enter.Windows AMI: ami-ea1cf683
      Linux AMI: ami-041cf66d

The selected instance is displayed below

launching-ami

   5. To start or launch the instance, select the check box and click on
      the *Launch* button.

    * Enter 1 in the *Number of Instances* field.
    * Select the m1.small *Instance Type* option.
    * Select the *Availability Zone*, if desired.
    * Select the key pair that you created from the *Key Pair Name* list
      box.
    * Select default from the *Security Groups* list box.

The instance(s) begin launching.

pending-instance


    Logging into the OpenGeo Suite Instance

This section describes how to log into the OpenGeo Suite instance from 
either the command line or through Windows RDP client. Before you can 
log into your instance you will need to find the Public DNS address for 
your instance. To find the Public DNS address in the AWS Console, click 
on Instances, select the check box for the instance, and copy the value 
for Public DNS in the panel below.

get-public-dns


      Logging in from the command line for the OpenGeo Suite Linux instance

Using a ssh client on (such as OpenSSH, Xming, Putty) type:

$ ssh -Xi my-keypair ubuntu at ec2-174-129-184-64.compute-1.amazonaws.com

    * The -i option uses your key pair to authenticate (no passwords),
    * the -X option enables X11 forwarding which allows you to use the
      desktop tools of the OpenGeo Suite (if your ssh client supports
      trusted X11 forwarding, use the -Y option),
    * and the Linux version of the Suite on AWS is built on Ubuntu 9.10
      which uses “ubuntu” as the default user.

Once your are logged into the Linux instance, you can launch the 
Dashboard to start the OpenGeo Suite by typing:

$ ./bin/opengeo-dashboard

Click on *Getting Started* in the Dashboard to begin serving maps and 
data on the web.


      *Logging into the OpenGeo Suite Windows instance through the
      Windows RDP Client*


        Getting the password for the Windows instance

The Windows instance of the OpenGeo Suite does not user key pairs. A new 
administrator password is generated each time a Windows instance is 

launched. You can retrieve the password using the AWS Console.

   1. Log in the *AWS Management Console* and click the *Amazon EC2 *tab
   2. Click on *Instances* in the *Navigation* side menu
   3. Click on the checkbox for the Windows instance
   4. Click on *Instance Actions* drop down and select *Get Windows
      Admin Password *get-windows-password
   5. A window will appear prompting you to paste the contents of your
      *Private Key* into a text box, paste your private keycopy-key-pair
      private-key
   6. The AWS Console returns a window with the *Decrypted Password*,
      copy the password and save it to a text file or write it
      down.windows-password


    Logging into the OpenGeo Suite Windows instance

You can log into the Windows instance using an RDP Client (CoRD for OS 
X, rdesktop for linux, Remote Desktop Connection for Windows). This 
example users Remote Desktop Connection to connect to your OpenGeo Suite 
Windows EC2 instance:

   1. On the taskbar, click *Start*, point to *Programs*, point to
      *Accessories*, point to *Communications*, and click *Remote
      Desktop Connection*.
   2. The Remote Desktop Connection dialog box appears.
   3. Enter the Public DNS address in the *Computer* field.
   4. Enter ‘administrator’ in the *User name* field.rdc-login
   5. Enter the password in the *Password* field.rdc-password

After logging in, you can launch the Dashboard and start the OpenGeo 
Suite. Click on *Getting Started* in the Dashboard to begin serving maps 
and data on the web.

ogs-in-wndows

**Note*: The OpenGeo Suite Community edition currently does not have an 
option to run as service in Windows. Logging off the instance will 
shutdown the Suite. To keep the Suite running, disconnect by clicking on 
the Close button at the top of the screen.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengeospatial.org/pipermail/geosciml/attachments/20100915/96997ce2/attachment.htm>


More information about the GeoSciML mailing list