On 4/16/25 14:23, Alexander Leidinger wrote:
Am 2025-04-16 19:28, schrieb Katherine Mcmillan:

I had a quick look at it. OH is a java application. If I read it correctly, the WEB-UI (which would be installed on a server) is a work in progress. If I get it correctly (https://github.com/informatici/ openhospital-doc/blob/master/doc_admin/AdminManual.adoc <https:// github.com/informatici/openhospital-doc/blob/master/doc_admin/ AdminManual.adoc>) section 2.1), the GUI would be installed on a client system (laptop or PC), and it would connect to a "simple" DB server (on a server). They recommend MariaDB or MySQL. Both are available as FreeBSD packages.

So for the "OH Client install" you would need one of the DBs installed on a FreeBSD system (section 2.1.3, the OH linux or windows download there is only necessary to get the SQL scripts which populate the DB with all the tables, indexes, constraints and whatvever for the client to connect to it), and if we assume a typical Windows client, the windows version of OH which then connects to the FreeBSD DB server. Nothing to port in this case to FreeBSD, as the "server side" of OH seems to be the initial creation of the DB.

I think it would be useful to create a simple oh-server port that installs the DB server as a dependency (maybe with port options to choose between MariaDB and MySQL), and provides setup instructions via pkg-message, maybe a simple setup script. Then in the future, people can see that it's in the ports system, and just install it and follow the instructions rather than spend time duplicating the effort Alex invested to figure out what to do (or hunt down the archive of this thread).


If you want to use FreeBSD on the client PCs/laptops to not have to pay Windows licenses, there are two options. You install a suitable java version as a FreeBSD package, and then download the OH linux versions and use that. As OH is a java program, this should work, maybe you need to adapt the oh.sh script. As you would need to setup FreeBSD with a graphical desktop environment before that, the person doing that needs some level of unix/FreeBSD knowledge anyway, and this amount of knowledge may already be enough to handle an adaption. Or as a second option, you take the linux download and make a FreeBSD package out of it. The last may only need a dependency on java, I see no other dependencies listed in the OH docs. Feel free to point out if I'm wrong, I may have not looked at right places.

sysutils/desktop-installer will make the desktop setup easy. An oh-client port would be convenient, and would soon find its way into the GhostBSD ports snapshot as well, for non-gurus who want to run FreeBSD with easier setup and maintenance.


To compile the java source code to a java program, more dependencies may be needed than just java, but this doesn't seem necessary here (I have more than one java program ported to the FreeBSD Ports Collection by taking the linux downloads and simply adapting the start scripts to "the FreeBSD way", no need to compile the java programs on FreeBSD).

Compiling java programs can be a challenge, so I usually take the easy route if there's a jar file available as well. One could argue that building from source is marginally more secure than downloading a jar file, though.

Best,

        Jason

--
Life is a game.  Play hard.  Play fair.  Have fun.

Reply via email to