GNU Health/Operating System-Specific Notes
Appearance
The corresponding official chapter: https://docs.gnuhealth.org/his/appendix/opsystem.html |
This chapter applies to version 3.6 of GNU Health. |
openSUSE
[edit | edit source]
This section provides the instructions for the official and standard (vanilla) installation on openSUSE.
If you want to use the openSUSE package based installation, please refer to the Community pages |
Download and install the Operating System
[edit | edit source]- 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 | edit source]sudo zypper in patch gcc libxml2-devel postgresql postgresql-server unoconv python3-pip python3-devel
Initialize the PostgreSQL environment. The next systemctl start command will generate the initial pg cluster.
systemctl start postgresql
Update locally pip3
[edit | edit source]su - gnuhealth
pip3 install --upgrade --user pip
Continue with the GNU Health Installation
Debian
[edit | edit source]
This chapter applies to version 3.6 of GNU Health. |
Download and install the Operating System
[edit | edit source]- Download the Debian OS image
- Check the partitioning and FS options (we use ext4 filesystem)
- Deselect the "Debian desktop environment" if you just want a server (no graphical interface)
- Enable SSHD server
- Create the user "gnuhealth" when prompted at installation time.
Install the requirements
[edit | edit source]apt-get install postgresql patch python3-pip unoconv
Continue with the GNU Health Installation
FreeBSD
[edit | edit source]
This chapter applies to version 3.8 of GNU Health. |
At Operating System installation
[edit | edit source]- Select SSHD
- Create the gnuhealth user at installation time
Install requirements
[edit | edit source] # pkg install postgresql13-server wget bash py37-pip \
# py37-lxml py37-pillow patch rust
Initialize PostgreSQL
[edit | edit source] # /usr/local/etc/rc.d/postgresql oneinitdb
# sysrc postgresql_enable=yes
# service postgresql start
Create Python3 links
[edit | edit source] # ln -si /usr/local/bin/python3.7 /usr/local/bin/python3
# ln -si /usr/local/bin/python3 /usr/local/bin/python
Change /bin/bash to /usr/local/bin/bash
[edit | edit source]The first line of script that starts gnuhealth (start_gnuhealth.sh) is pointing to /bin/bash. On FreeBSD you have to change that to /usr/local/bin/bash.
Continue with the GNU Health Installation
CentOS
[edit | edit source]Install Python 3.8
[edit | edit source]# yum install python3 # yum install python3-devel
Install PostgreSQL 12
[edit | edit source]# yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm # yum -y install epel-release yum-utils sudo yum-config-manager --enable pgdg12 sudo yum install postgresql12-server postgresql12
Continue with the GNU Health Installation
Ubuntu
[edit | edit source]- These instructions apply to Ubuntu 20.04 and Armbian 20.05 version
- Create the gnuhealth user at installation time
Update the Sources
[edit | edit source]apt-get update
Install requirements
[edit | edit source]apt-get install postgresql-server-dev-12 libxml2-dev libxslt-dev python3-dev pkg-config libfreetype6-dev postgresql patch python3-pip unoconv libpng-dev libjpeg8-dev
Continue with the GNU Health Installation
Armbian
[edit | edit source]- These instructions apply to Armbian 20.05 version
- Create the gnuhealth user at installation time
Update the Sources
[edit | edit source]apt-get update
Install requirements
[edit | edit source]apt-get install postgresql-server-dev-12 libxml2-dev libxslt-dev python3-dev pkg-config libfreetype6-dev postgresql patch python3-pip unoconv libpng-dev libjpeg8-dev
Continue with the GNU Health Installation