|
|
@@ -7,13 +7,14 @@ How to get it running (Without reading the instructions)
|
|
|
|
You have already installed the package gnuhealth and found this documentation. Good.
|
|
|
|
You have already installed the package gnuhealth and found this documentation. Good.
|
|
|
|
|
|
|
|
|
|
|
|
1) Log in as root and start the database
|
|
|
|
1) Log in as root and start the database
|
|
|
|
#su
|
|
|
|
> su
|
|
|
|
#systemctl start postgresql
|
|
|
|
> systemctl start postgresql
|
|
|
|
|
|
|
|
|
|
|
|
2) Change postgres parameters. You need to log in as user postgres, in order to avoid authorisation issues. Assuming we have nano as editor:
|
|
|
|
2) Change postgres parameters. You need to log in as user postgres, in order to avoid authorisation issues. Assuming we have nano as editor:
|
|
|
|
<you are logged in as user 'root'>
|
|
|
|
<you are logged in as user 'root'>
|
|
|
|
#su postgres
|
|
|
|
|
|
|
|
#nano /var/lib/pgsql/data/pg_hba.conf
|
|
|
|
> su postgres
|
|
|
|
|
|
|
|
> nano /var/lib/pgsql/data/pg_hba.conf
|
|
|
|
|
|
|
|
|
|
|
|
FOR LOCAL CONNECTIONS (Database on the same machine) change the line
|
|
|
|
FOR LOCAL CONNECTIONS (Database on the same machine) change the line
|
|
|
|
local all all md5
|
|
|
|
local all all md5
|
|
|
@@ -23,28 +24,24 @@ to
|
|
|
|
Save your input. This will make sure that Tryton/GNUHealth server can connect to the database
|
|
|
|
Save your input. This will make sure that Tryton/GNUHealth server can connect to the database
|
|
|
|
|
|
|
|
|
|
|
|
3) Create a role for 'tryton' in the database (sill as user postgres)
|
|
|
|
3) Create a role for 'tryton' in the database (sill as user postgres)
|
|
|
|
#psql -c "CREATE USER tryton WITH CREATEDB;"
|
|
|
|
> psql -c "CREATE USER tryton WITH CREATEDB;"
|
|
|
|
|
|
|
|
|
|
|
|
4) exit as user postgres and restart postgres
|
|
|
|
4) exit as user postgres and restart postgres
|
|
|
|
#exit
|
|
|
|
> exit
|
|
|
|
#systemctl restart postgresql
|
|
|
|
> systemctl restart postgresql
|
|
|
|
|
|
|
|
|
|
|
|
5) Now lets look at /etc/tryton/trytond.conf. Uncomment the line with super_pwd (it is recommended that you set your own password here!
|
|
|
|
5) start gnuhealth/trytond:
|
|
|
|
#nano /etc/tryton/trytond.conf
|
|
|
|
> systemctl start gnuhealth
|
|
|
|
uncomment super_pwd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6) start gnuhealth/trytond:
|
|
|
|
6) Install the tryton client:
|
|
|
|
#systemctl start gnuhealth
|
|
|
|
> zypper in tryton
|
|
|
|
|
|
|
|
|
|
|
|
7) Install the tryton client:
|
|
|
|
7) Open the tryton client:
|
|
|
|
#zypper in tryton
|
|
|
|
> tryton
|
|
|
|
|
|
|
|
|
|
|
|
8) Open the tryton client:
|
|
|
|
|
|
|
|
#tryton
|
|
|
|
|
|
|
|
go to 'manage profiles' -> add -> name it 'localhost' -> Host: localhost
|
|
|
|
go to 'manage profiles' -> add -> name it 'localhost' -> Host: localhost
|
|
|
|
-> you should now see a selection of available databases
|
|
|
|
-> you should now see a selection of available databases
|
|
|
|
|
|
|
|
|
|
|
|
Note: Fron Tryton Release 4.2 onwards it is not possible anymore to create databases
|
|
|
|
Note: From Tryton Release 4.2 onwards it is not possible anymore to create databases
|
|
|
|
from the Frontend. You need to do this manually (see /usr/share/doc/packages/trytond/tryton-server.README.SUSE)
|
|
|
|
from the Frontend. You need to do this manually (see /usr/share/doc/packages/trytond/tryton-server.README.SUSE)
|
|
|
|
|
|
|
|
|
|
|
|
DONE.
|
|
|
|
DONE.
|
|
|
@@ -69,24 +66,24 @@ Upgrade
|
|
|
|
|
|
|
|
|
|
|
|
As user tryton, run tryton-admin:
|
|
|
|
As user tryton, run tryton-admin:
|
|
|
|
|
|
|
|
|
|
|
|
# /usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d mydb
|
|
|
|
> /usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d mydb
|
|
|
|
|
|
|
|
|
|
|
|
* GNU_Health 3.0 on openSUSE delivered 2 modules, which are not (yet) in 3.2
|
|
|
|
* GNU_Health 3.0 on openSUSE delivered 2 modules, which are not (yet) in 3.2
|
|
|
|
anymore: pdq and hl7. You need to delete them first
|
|
|
|
anymore: pdq and hl7. You need to delete them first
|
|
|
|
|
|
|
|
|
|
|
|
Log in as database owner (usually tryton):
|
|
|
|
Log in as database owner (usually tryton):
|
|
|
|
|
|
|
|
|
|
|
|
# sudo su tryton -s /bin/bash
|
|
|
|
> sudo su tryton -s /bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
Delete the 2 modules:
|
|
|
|
Delete the 2 modules:
|
|
|
|
# psql mydb
|
|
|
|
> psql mydb
|
|
|
|
delete from ir_module where name='pdq';
|
|
|
|
delete from ir_module where name='pdq';
|
|
|
|
delete from ir_module where name='hl7';
|
|
|
|
delete from ir_module where name='hl7';
|
|
|
|
|
|
|
|
|
|
|
|
Quit with CRTL-D
|
|
|
|
Quit with CRTL-D
|
|
|
|
Apply the database patch:
|
|
|
|
Apply the database patch:
|
|
|
|
|
|
|
|
|
|
|
|
# psql mydb < /usr/share/doc/packages/gnuhealth/upgrade/3.2/upgrade_32.sql
|
|
|
|
> psql mydb < /usr/share/doc/packages/gnuhealth/upgrade/3.2/upgrade_32.sql
|
|
|
|
|
|
|
|
|
|
|
|
Remember to replace mydb with the name of your database.
|
|
|
|
Remember to replace mydb with the name of your database.
|
|
|
|
|
|
|
|
|
|
|
@@ -135,7 +132,7 @@ gnuhealth-webdav@.service
|
|
|
|
|
|
|
|
|
|
|
|
Starting with GNU Health 3.2, GNU Health comes with its own WebDAV-Server that can be used for shared calendars. In order to enable the WebDAV server, it comes with a systemd-service. As input parameter for the service the database-name on which to operate must be passed. Say your database is called mydb, invoke the service with
|
|
|
|
Starting with GNU Health 3.2, GNU Health comes with its own WebDAV-Server that can be used for shared calendars. In order to enable the WebDAV server, it comes with a systemd-service. As input parameter for the service the database-name on which to operate must be passed. Say your database is called mydb, invoke the service with
|
|
|
|
|
|
|
|
|
|
|
|
systemctl enable gnuhealth-webdav@mydb.service
|
|
|
|
> systemctl enable gnuhealth-webdav@mydb.service
|
|
|
|
|
|
|
|
|
|
|
|
You can start multiple webdav services for different databases in parallel.
|
|
|
|
You can start multiple webdav services for different databases in parallel.
|
|
|
|
|
|
|
|
|
|
|
@@ -158,4 +155,4 @@ Have fun and keep the neighborhood well and fit!
|
|
|
|
[4] https://github.com/mbehrle/tryton/blob/wiki/InstallationonopenSUSE.md
|
|
|
|
[4] https://github.com/mbehrle/tryton/blob/wiki/InstallationonopenSUSE.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Axel Braun <axel.braun@gmx.de> TUE Jun 20 15:40:04 UTC 2017
|
|
|
|
-- Axel Braun <axel.braun@gmx.de> THU Sep 14 19:14:04 UTC 2017
|
|
|
|