Installation on Linux and Unix
Last updated
Was this helpful?
Last updated
Was this helpful?
When installing SanteDB iCDR server on Linux or Unix based environment you should use the tarballs for the latest version of the SanteDB iCDR server. Each solution within SanteDB iCDR Server has its own distribution which can be downloaded for their own source repository.
The installation process for SanteDB on Linux is the same process as installation on Windows::
Install the software
Copy software program files and pre-requisites
Initiate the configuration process
Configuration of the software
Customizing the behavior of the installed plugins
Entering implementation specific details about the deployment
Running/Initializing the Server
The tarballs provided have been written for and test on Debian based distributions, manual installation for non-Debian based distributions is required.
When running SanteDB iCDR server on Unix based operating systems you will require, at minimum:
One of the following Unix operating systems:
MacOS X 10.9 on M1 or x86 (manual installation)
Ubuntu 16.04 or later (install script)
Debian 9 or later (install script)
CentOS or RHEL 6 or better (manual installation)
2 Core CPU (4 to 8 Cores recommended)
2 GB RAM (8 or 16 GB of RAM recommended)
300 MB of disk space (1 GB recommended)
Users should be familiar with basic Unix concepts such as:
Un-taring archive files
Basic familiarity with Unix commands
To install the SanteDB iCDR 2.1.140 or higher via the installation script provided, you should first extract the tarball contents:
This will extract the software to the ./santedb-server-2.1.140
directory. You can enter that directory and run the install.sh
script:
If you are not running the script as root, the installer will prompt if you would like it to use SUDO. The script will then detect pre-requisites for mono and postgresql. The install script will install mono for you.
Finally, you'll be prompted for an installation target, the default location is /opt/santesuite/santedb/server/
, you can accept the default or change the location of installation to suit your policy.
After installation is complete, the default SanteDB publisher certificates will be registered with the Mono trust store and you'll be provided the option to setup SanteDB as a daemon.
When installing the SanteDB iCDR server manually, administrators should ensure that the pre-requisites for SanteDB are installed on their preferred Unix environment:
Once installed, users should create their target installation directory (this tutorial will use /opt/santedb
, and should unzip the tarball or zip file to that location.
You then need to install the SanteDB publisher certificates into the Mono certificate store:
Finally, you can run the configuration tool in your installation directory with
You can register SanteDB as a daemon on your distribution of Linux by creating a service definition file. This is done by creating a new file at /etc/systemd/system/santedb.service
and using the contents:
After this time you can run systemctl reload-daemons
to load your service definition.
SanteDB's configuration tool on linux uses the Mono to GTK+ WinForms implementation. The application is the same application as documented in the Configuration Tool documentation.
Like the Windows installation, the SanteDB, the SanteDB iCDR on Linux needs to be initialized, unlike windows this requires manual stop/start of the service.
If you've installed SanteDB as a daemon the command to stop or start the daemon is:
If you are running SanteDB on a console, you can run:
Once started you can validate connectivity to the SanteDB iCDR server running the SanteDB Administration Console. The Administration console is executed using:
Once the login prompt is available you can login with Administrator
and password Mohawk123
.
If the option to install the SanteDB iCDR as a Linux daemon was selected during install, then the service can be controlled with systemctl
for example:
Stopping the service is done with the same command:
The service can be enabled on startup using:
If you receive an error cannot find package mono-complete
you may need to run an apt update
on your system to include the mono packages on Ubuntu. If running Ubuntu 18.04 or prior or Debian 9 you can follow the guide.
Details on the initial configuration of SanteDB can be followed from the guide.