GNU Health/Operating System-Specific Notes

From Wikibooks, open books for an open world
Jump to navigation Jump to search

openSUSE[edit]

Symbol version newer.svg

This chapter applies to version 3.4 of GNU Health.

We have done the installation using the following scenario. This provides a very light, yet functional environment for running the GNU Health server :

  • Download the openSUSE Leap Network CD image
  • Check the partitioning and FS options (we use ext4 filesystem)
  • Select SERVER (text only) installation
  • Enable SSHD server
  • Create the user "gnuhealth" when prompted at installation time.


Install the requirements[edit]

zypper install patch gcc libxml2-devel libxslt-devel libjpeg8-devel python3-tools postgresql10 postresql10-server unoconv

Make the link to use python as the default interpreter

ln -si /usr/bin/python3 /usr/bin/python

Initialize the PostgreSQL environment. The next systemctl start command will generate the initial pg cluster.

systemctl start postgresql

Update locally pip3 and pymongo[edit]

su - gnuhealth
pip3 install --upgrade --user pip pymongo

Continue with the GNU Health Installation

FreeBSD[edit]

Symbol version newer.svg

This chapter applies to version 3.4 of GNU Health.

At Operating System installation[edit]

  • Select SSHD
  • Create the gnuhealth user at installation time

Install requirements[edit]

pkg install bash python36 postgresql10-server py36-pip wget bash py36-lxml py36-pillow patch

Make symlinks on Python3, pip and 2to3

cd /usr/local/bin
ln -si python3.6 python3
ln -si python3 python
ln -si 2to3-3.6 2to3
ln -si pip3-6 pip

Init PostgreSQL cluster[edit]

service postgresql oneinitdb

Apply Security Patches using GNU Patch[edit]

The current GNU Health setup installation procedure uses GNU patch (instead of FreeBSD patch). Please apply the patch after the executing "gnuhealth-setup install" as follows.

source .gnuhealthrc
cdexe
cd ..
gpatch -p1 < $HOME/gnuhealth-3.4.0/patches/security/get_login_trytond-46.patch.asc

Update locally pip3 and pymongo[edit]

pip3 install --upgrade --user pip pymongo


Continue with the GNU Health Installation

Ubuntu[edit]

Symbol version newer.svg

This chapter applies to version 3.4 of GNU Health.

  • These instructions apply to Ubuntu 18.04 Server version
  • Create the gnuhealth user at installation time

Update the Sources[edit]

Make sure you include the Universe repositories on the source list.


Edit the file /etc/apt/sources.list and add

deb http://archive.ubuntu.com/ubuntu bionic main universe

Update the repositories

apt-get update

Install requirements[edit]

apt-get install python3-pip 2to3 unoconv postgresql-10

Make the links to Python3 and 2to3[edit]

login as gnuhealth user

Change to root

sudo bash
cd /usr/bin
ln -si python3 python
exit

Update pip and pymongo locally[edit]

Make sure you are logged in with the user gnuhealth

pip3 install --user --upgrade pymongo pip



Continue with the GNU Health Installation


Installation