HOWTO: Setting up the GNUmed Backend in Debian/Ubuntu

Moderatoren: shilbert, Forum Moderatoren

Antworten
useResa

HOWTO: Setting up the GNUmed Backend in Debian/Ubuntu

Beitrag von useResa »

The Linux for Clinics project is working closely together with the GNUmed project. One of the things we felt a need for, although it is also available within original documentation, is a simple guideline on how to setup the GNUmed Backend.

This post is a copy of this thread at the LFC Forums.
Hope that it may be beneficial to all who would like to install the GNUmed Backend.

Regards, Resa
------

Install these packages from your distro's repository. (Debian's is listed below as 8.1 but Ubuntu currently uses 8.2). Dependencies should be fulfilled automatically.

Code: Alles auswählen

sudo apt-get install postgresql-8.1 postgresql-client-8.1 postgresql-doc-8.1 pgadmin3 pgagent python-pgsql python-psycopg2 python-glade-1.2 python-glade2 glade gimp
Your distro may list these packages under slightly different names.

Once that's done type the following command:

(NOTE: the second 'postgres' is the name of the server admin's account. You can make it whatever you wish.)

Code: Alles auswählen

sudo su postgres -c psql postgres
Set the password at the postgres=# prompt with this command:

(NOTE: 'password' is what you want your password to be and make sure the single quotes are intact)

Code: Alles auswählen

ALTER USER postgres WITH PASSWORD 'password' ;
Close the Terminal with this command:
------

Start PGAdmin III and add a New Server.

File --> Add Server...

Fill in the blanks for 'address', 'description', and 'password'.

Exit PGAdmin III

------

Download and Extract the GNUmed backend at

http://www.gnumed.de/downloads/server/G ... latest.tgz

In terminal move to the directory you extracted the file to and type:

Code: Alles auswählen

cd GNUmed-0.2.8.4/server/bootstrap/
Install database v2

Code: Alles auswählen

sudo ./redo-v2.sh
When asked for a password for gm-dbo please choose one you can remember since you will use it a few more times.

Type in 'yes' when asked as well as your gm-dbo password when asked.

If you open PGAdmin III and connect to the server, there should be two databases now of which one is gnumed_v2 (don't mind the red cross, you can open it). If you expand the tree it should look similar to the attachment gnumedV2.png

CLOSE PGAdmin III BEFORE CONTINUING!

Upgrade from Database v2 to v3

In terminal, and still in your gnumed server bootstrap directory, type in:

Code: Alles auswählen

sudo ./upgrade-db.sh 2 3
Type in 'y' or 'yes' when asked as well as your gm-dbo password when asked.

Upgrade from Database v3 to v4

Code: Alles auswählen

sudo ./upgrade-db.sh 3 4
Type in 'y' or 'yes' when asked as well as your gm-dbo password when asked.

Upgrade from Database v4 to v5

Code: Alles auswählen

sudo ./upgrade-db.sh 4 5
Type in 'y' or 'yes' when asked as well as your gm-dbo password when asked.

Upgrade from Database v5 to v6

Code: Alles auswählen

sudo ./upgrade-db.sh 5 6
Type in 'y' or 'yes' when asked as well as your gm-dbo password when asked.

Upgrade from Database v6 to v7

Code: Alles auswählen

sudo ./upgrade-db.sh 6 7
Type in 'y' or 'yes' when asked as well as your gm-dbo password when asked.

Upgrade from Database v7 to v8

Code: Alles auswählen

sudo ./upgrade-db.sh 7 8
Type in 'y' or 'yes' when asked as well as your gm-dbo password when asked.

FINISHED! You can freely observe your handiwork in PGAdmin III.
shilbert
Beiträge: 134
Registriert: Mittwoch 23. August 2006, 22:48
17

More database scripts

Beitrag von shilbert »

This nice tutorial shows how it can be done.

It is a lot easier if you need the provided scripts. There is a script called bootstrap-latest.sh which will do all the steps above.

There is a script called net_install-gnumed_server.sh to pull in all the dependencies.

Details at wiki.gnumed.de

Sebastian
shilbert
Beiträge: 134
Registriert: Mittwoch 23. August 2006, 22:48
17

Re: HOWTO: Setting up the GNUmed Backend in Debian/Ubuntu

Beitrag von shilbert »

There is an even easier way then using the provided script to install dependencies and bootstraping the database

There are now updated packages for Ubuntu for GNUmed client and GNUmed server.

http://wiki.gnumed.de/bin/view/Gnumed/UbuntuGuideShort
Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 15 Gäste