Gnu Health
Gnu Health
OS Ubuntu 14.04
GNUhealth 2.8.1
Tryton (client & server) 3.4
postgresql 9.3
*first
Install all package
*Second
activate the account ROOT
$ sudo passwd root
* Third
Entering as root adduser gnuhealth run the following command
$ su root
passw
$ sudo adduser gnuhealth
password
repeat password and four times entry and Yes "Y"
*Four
we put the password to the user or administrator Postgresql or not allow register the
password for the newly created user gnuhealth database postgresql
Log in as ROOT
$ su root
password
note
If the response program with the message 'ALTER ROLE' password was changed
successfully. To exit this utility by typing: \ q to exit the user 'postgres' type: exit
Done. The password was changed successfully. Testing the Connection To test the
connection you can use the same utility 'psql' as follows: psql -U postgres -W Press
ENTER and enter the new password (you must have changed it in the example
above, if you did not the password is 'passwd').
* Fifth
Log in as root run the following command to access the database to the newly
created user gnuhealth
su - postgres -c "createuser --createdb --no-createrole --no-superuser gnuhealth"
*Sixth
to ensure that the user of postgresql take the password that gnuhealth digit when
the user created in the * third point execute the following command as root
$ su root
password
$ sudo su - postgres
$ psql -c "ALTER ROLE gnuhealth WITH PASSWORD 'newpassword@gnuhealth' ;"
* Seventh
postgresql restart the server with the following command in a new terminal
$ su root
password
* Eighth
Close entire system and between the newly created user ghuhealth
and lower gnuhealth version 2.8 with the following command
$ wget http://ftp.gnu.org/gnu/health/gnuhealth-latest.tar.gz
Decompress
./gnuhealth_install.sh
the system will ask typing and confirm a Password for the server trytond, this you
will be requested when start the customer to create a new database. the same is
encryptara and will be included automatically in the file Tritond_ conf.
$ source $HOME/.gnuhealthrc
* Ninth
TRYTOND_CONFIG Edit the file, this is in $ home / gnuhealth / tryton / server / config
[database]
uri = postgresql://localhost:5432
path = /home/gnuhealth/attach
[session]
super_pwd =hgu5877&^%6
detail
uri = postgresql://userDB:PasswordDB12345678@localhost:5432
User DB typing gnuhealth
password DB we typing the password which was created the third and sixth point.
path = /home/gnuhealth/attach.
NOTE
include the command jsonrpc* 8000 to accept connections from any terminal not
only from local host
uri = postgresql://gnuhealth:bladerunner1983@localhost:5432
path = /home/gnuhealth/attach.
[jsonrpc]
listen=*:8000
[session]
super_pwd = Yr3v6E/pFQbmk
Suave file
* Tenth
Start Tryton server
Command
$ cdexe
after
$ ./trytond
gnuhealth@gpiezal-Aspire-5336:~/gnuhealth/tryton/server/trytond-3.4.1/bin $
./trytond
[Mon Feb 16 02:35:51 2015] INFO:trytond.server:using
/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf as configuration file
[Mon Feb 16 02:35:51 2015] INFO:trytond.server:initialising distributed objects
services
[Mon Feb 16 02:35:51 2015] INFO:trytond.server:starting JSON-RPC protocol on
localhost:*8000
This message indicates that the server was executed and will accept external
connections.
*Eleventh
Login as root create a new user for this run the Tryton client
$ su "root
$sudo adduser cliente
password
password
* Twelfth
Download the Tryton client (this must match the version of the server)
$ wget http://downloads.tryton.org/3.4/tryton-3.4.1.tar.gz
$ su root
Install using the following command :
$cd tryton-3.4.1
$sudo python setup.py install
tryton
from here you configure the Client. Click on the profiles management Manage
Profiles, and then click Add. Give your new connection a name in the place left and
complete the fields on the right side. If you are doing the installation in the same
machine, choose localhost as hostname
End
Greetings Gerson