The documentation covers the configurations needed for installing gnumed_v2 given that
- Debian is installed
- Postgres is installed (this can be installed when installing Debian)
- Gnumed client is installed (this is so that all the dependent packages can be installed automatically)
- 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
- Set up Debian (OS) user gmadm as sys
- Configure Postgres SQL
- Download Gnumed Source file
- Start Bootstrapping!
Add user gmadm with sys priviledge as root
useradd -c "system acct for GNUmed" -m -r gmadm
To make sure Postgres SQL is really working, try to connect to the default database 'template1':
su postgres
psql template1 -U postgres
Read
http://salaam.homeunix.com/twiki/bin/view/Gnumed/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
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
http://salaam.homeunix.com/twiki/bin/view/Gnumed/SourcesFromCVSAnyGNULinux
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.
- bullets (3 spaces and an asterisk)
- numbered list (use "1" for each item-> will auto-increment)