dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20591
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 644: Minor fixes
------------------------------------------------------------
revno: 644
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Sun 2013-01-06 19:19:34 +0100
message:
Minor fixes
modified:
src/docbkx/en/dhis2_implementation_guide_installation.xml
--
lp:~dhis2-documenters/dhis2/dhis2-docbook-docs
https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs
Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription
=== modified file 'src/docbkx/en/dhis2_implementation_guide_installation.xml'
--- src/docbkx/en/dhis2_implementation_guide_installation.xml 2012-12-18 18:22:52 +0000
+++ src/docbkx/en/dhis2_implementation_guide_installation.xml 2013-01-06 18:19:34 +0000
@@ -18,7 +18,7 @@
more than 4 Gb of RAM, the Ubuntu 12.04 64 bit edition is thus recommended. </para>
<para>For this guide we assume that 4 Gb RAM is allocated for PostgreSQL and 7 GB RAM is allocated for Tomcat. <emphasis role="italic">If you are running a different configuration please adjust the suggested values accordingly!</emphasis> The steps marked as <emphasis role="italic">optional</emphasis>, like the step for performance tuning, can be done at a later stage.</para>
<para><emphasis role="bold">Create new user (optional)</emphasis></para>
- <para>You might want to create a dedicated user for running DHIS - it is not recommended to run as the root user. Create a new user called dhis by invoking <code>useradd -d /home/dhis -m dhis -s /bin/bash</code> Then make the user able to perform operations temporarily as root user by invoking <code>usermod -G admin dhis</code> If there is no admin group you must create it first by invoking <code>groupadd admin</code> Then invoke <code>passwd dhis</code> to set the password for your account. Make sure you set a strong password with at least 15 random characters. You might want to disable remote login for the root account for improved security by invoking<emphasis role="italic"> sudo passwd -l root</emphasis></para>
+ <para>You might want to create a dedicated user for running DHIS - it is not recommended to run as the root user. Create a new user called dhis by invoking <code>useradd -d /home/dhis -m dhis -s /bin/bash</code> Then make the user able to perform operations temporarily as root user by invoking <code>usermod -G admin dhis</code> If there is no admin group you must create it first by invoking <code>groupadd admin</code> Then invoke <code>passwd dhis</code> to set the password for your account. Make sure you set a strong password with at least 15 random characters. You might want to disable remote login for the root account for improved security by invoking <code>sudo passwd -l root</code></para>
<para><emphasis role="bold">Operating system kernel tuning</emphasis></para>
<para>These settings are optional except for the shared memory setting which is required for PostgreSQL memory allocation. Open the kernel configuration file by invoking <code>sudo nano /etc/sysctl.conf</code> At the end of the file add the following lines and save.</para>
<screen>kernel.shmmax = 1073741824
@@ -29,18 +29,17 @@
<para>Install Java by invoking the following:</para>
<screen>sudo apt-get install openjdk-7-jdk
-sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-7-openjdk/bin/java 1
-
-sudo update-alternatives --set java /usr/lib/jvm/java-7-openjdk/bin/java</screen>
+sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-7-openjdk/bin/java 1</screen>
<para>Please check that the path the Java binaries are correct as they might vary from system to system, e.g. on AMD systems you might see <emphasis role="italic">../java-7-openjdk-amd64/..</emphasis> Check that your installation is okay by invoking <code>java -version</code></para>
<para><emphasis role="bold">Install PostgreSQL</emphasis></para>
<para>To install PostgreSQL version 9.2 we first need to add a Ubuntu package repository to our system.</para>
- <para><code>sudo apt-get install python-software-properties
+ <screen>sudo apt-get install python-software-properties
+
sudo add-apt-repository ppa:pitti/postgresql
-sudo apt-get update
- </code></para>
+
+sudo apt-get update</screen>
<para>Now install PostgreSQL by invoking <code>sudo apt-get install postgresql-9.2</code></para>
- <para>Switch to the postgres user by invoking <code>sudo su postgres</code>.</para>
+ <para>Switch to the postgres user by invoking <code>sudo su postgres</code></para>
<para>Create a non-privileged user called <emphasis role="italic">dhis</emphasis> by invoking
<code>createuser -SDRP dhis</code>. Enter a secure password at the prompt. Create a database by invoking
<code>createdb -O dhis dhis2</code>. Return to your session by invoking <code>exit</code> You now have a