Changes between Version 49 and Version 50 of InstallationGuidelines/Amazon


Ignore:
Timestamp:
06/23/13 19:21:28 (8 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Amazon

    v49 v50  
    6262
    6363Thanks to: http://itkbcentral.blogspot.co.uk/2011/07/replace-lost-key-pair-existing-aws-ec2.html
     64
     65== Add Swapfile ==
     66* You can add swap from a swap file in order to improve performance (especially on a Micro instance):
     67{{{
     68dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
     69mkswap /swapfile1
     70chown root:root /swapfile1
     71chmod 0600 /swapfile1
     72swapon /swapfile1
     73
     74}}}
     75
     76Make this persistent across reboots by adding the following to your /etc/fstab
     77{{{
     78/swapfile1 swap swap defaults 0 0
     79
     80}}}
     81
     82== Install ==
     83* Copy the installation and configuration scripts -> [http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/install-eden-cherokee-postgis.sh install-eden-cherokee-postgis.sh] and [http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/configure-eden-cherokee-postgis.sh configure-eden-cherokee-postgis.sh] into the launched instance.
     84{{{
     85wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/install-eden-cherokee-postgis.sh
     86chmod a+x install-eden-cherokee-postgis.sh
     87wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/configure-eden-cherokee-postgis.sh
     88chmod a+x configure-eden-cherokee-postgis.sh
     89}}}
     90
     91* Run the install-eden-cherokee-postgis.sh script and delete it. [Note: This step takes about 10min - grab a coffee]
     92{{{
     93./install-eden-cherokee-postgis.sh
     94rm install-eden-cherokee-postgis.sh
     95}}}
     96
     97== Configure ==
     98Run configure-eden-cherokee-postgis.sh to configure the instance:
     99{{{
     100./configure-eden-cherokee-postgis.sh
     101
     102}}}
     103
     104* Add a Test site (4Gb+)
     105{{{
     106wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/add_test_site.sh
     107chmod a+x add_test_site.sh
     108./add_test_site.sh
     109rm add_test_site.sh
     110}}}
    64111
    65112== Grow the Diskspace ==
     
    159206}}}
    160207
    161 == Add Swapfile ==
    162 * You can add swap from a swap file :
    163 {{{
    164 dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
    165 mkswap /swapfile1
    166 chown root:root /swapfile1
    167 chmod 0600 /swapfile1
    168 swapon /swapfile1
    169 
    170 }}}
    171 
    172 Make this persistent across reboots by adding the following to your /etc/fstab
    173 {{{
    174 /swapfile1 swap swap defaults 0 0
    175 
    176 }}}
    177 
    178 == Install ==
    179 * Copy the installation and configuration scripts -> [http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/install-eden-cherokee-postgis.sh install-eden-cherokee-postgis.sh] and [http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/configure-eden-cherokee-postgis.sh configure-eden-cherokee-postgis.sh] into the launched instance.
    180 {{{
    181 wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/install-eden-cherokee-postgis.sh
    182 chmod a+x install-eden-cherokee-postgis.sh
    183 wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/configure-eden-cherokee-postgis.sh
    184 chmod a+x configure-eden-cherokee-postgis.sh
    185 }}}
    186 
    187 * Run the install-eden-cherokee-postgis.sh script and delete it. [Note: This step takes about 10min - grab a coffee]
    188 {{{
    189 ./install-eden-cherokee-postgis.sh
    190 rm install-eden-cherokee-postgis.sh
    191 }}}
    192 
    193 == Configure ==
    194 Run configure-eden-cherokee-postgis.sh to configure the instance:
    195 {{{
    196 ./configure-eden-cherokee-postgis.sh
    197 
    198 }}}
    199 
    200 * Add a Test site (4Gb+)
    201 {{{
    202 wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/add_test_site.sh
    203 chmod a+x add_test_site.sh
    204 ./add_test_site.sh
    205 rm add_test_site.sh
    206 }}}
    207 
    208208== Building AMIs for easier deployment ==
    209209If your region doesn't yet have a Sahana AMI in, then it is easy to create one which allows easier deployment of future instances for both you & others. The only cost to you is a small amount of time to publish it & then using up your 1Gb Snapshot allowance within the free tier.