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
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
(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' ;
Code: Alles auswählen
q/
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/
Code: Alles auswählen
sudo ./redo-v2.sh
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
Upgrade from Database v3 to v4
Code: Alles auswählen
sudo ./upgrade-db.sh 3 4
Upgrade from Database v4 to v5
Code: Alles auswählen
sudo ./upgrade-db.sh 4 5
Upgrade from Database v5 to v6
Code: Alles auswählen
sudo ./upgrade-db.sh 5 6
Upgrade from Database v6 to v7
Code: Alles auswählen
sudo ./upgrade-db.sh 6 7
Upgrade from Database v7 to v8
Code: Alles auswählen
sudo ./upgrade-db.sh 7 8
FINISHED! You can freely observe your handiwork in PGAdmin III.