BusserPostgres

The documentation covers the configurations needed for installing gnumed_v2 given that
  1. Debian is installed
  2. Postgres is installed (this can be installed when installing Debian)
  3. Gnumed client is installed (this is so that all the dependent packages can be installed automatically)

Postgres SQL - Directory Structure

  • configuration files -> /etc/postgresql
  • executables -> /usr/lib/postgresql/postgres-version-number/bin
  • data -> /usr/lib/postgres/data, to change to another directory, change the POSTGRES_DATA directive in postmaster.conf
  • NOTE: above location under discussion on email list Sep 3, 2008


Steps

  1. Set up Debian (OS) user gmadm as sys
  2. Configure Postgres SQL
  3. Download Gnumed Source file
  4. Start Bootstrapping!

Step 1 Set up Debian (OS) user gmadm as sys

Add user gmadm with sys priviledge as root

useradd -c "system acct for GNUmed" -m -r gmadm

Step 2 Configure Postgres SQL

To make sure Postgres SQL is really working, try to connect to the default database 'template1':

su postgres
psql template1 -U postgres

Read ConfigurePostgreSQL first

For pg_hba.conf, remember to add the lines above all other lines, ie above
local   all         postgres                                        ident sameuser

Remember to reload postgres everytime you change the configuration files.

su postgres
cd /usr/lib/postgresql/bin
./pg_ctl reload -D /var/lib/postgres/data

To test if the configuration works for Gnumed, log on as gmadm and try the following:

su gmadm
psql template1 -U postgres
and
psql template1 -U gm-dbo

Step 3 Download Gnumed Source file

Log on as gmadm, you should be at your home directory /home/gmadm and enter the following command to get the script to download the source files. Note that by logging as gmadm, souce files downloaded will be automatically owned by gmadm.

wget http://cvs.savannah.gnu.org/viewcvs/*checkout*/gnumed/gnumed/get-gnumed-anon.sh

Make sure get-gnumed-anon.sh as executable permission, to find out, use ls -la, to change permission,

chmod u+x get-gnumed-anon.sh

So that you end up with the following:

-rwxr--r--  1 gmadm sys   1244 2005-12-31 10:05 get-gnumed-anon.sh

This means user gmadm has execute permission on that file.

Run ./get-gnumed-anon.sh, and you will get the source file under the directory /home/gmadm/gnumed. Move the directory so that it is under /home/gnumed. Now you are ready!

For more info, read SourcesFromVcsOnGnuLinux

Step 4 Start Bootstrapping!

Log on to Debian server as gmadm, go to the followering directory and run redo-v2.sh:

cd /home/gnumed/gnumed/server/bootstrap
./redo-v2.sh

Note:
  • Log file is generated under the name redo-v2.log, please refer to this file in case of error.
  • Running redo-v2.sh will drop the gnumed_v2 database if it exists.
  • When it ask for the password for gm-dbo, just click enter (because no password was set for this user)
  • When it is done, you should see this message: Done bootstrapping: We probably succeeded.

medium heading (for minor, substitute +++ or ++++)

  • bullets (3 spaces and an asterisk)
  1. numbered list (use "1" for each item-> will auto-increment)
Topic revision: 11 Feb 2011, SebastianHilbert
 
Download.png
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
Powered by Olark