Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Installing Mirth on Ubuntu - A How To (http://www.mirthcorp.com/community/forums/showthread.php?t=218194)

jdalio 04-21-2018 05:41 PM

Installing Mirth on Ubuntu - A How To
 
Hi all. I recently set up Mirth for a client on Ubuntu and thought I would share these very simple instructions as this forum has always been so helpful for me.

--everything as root
sudo -su root

--install yum to download java openjdk
apt install yum-utils

--download java openjdk
sudo apt-get install openjdk-8-jre

--Mirth Basic Installation

--verify it is openjdk 1.8.0_xxx
java -version

--add this to /etc/environment
--not a fan of this as to future upgrades
--while it will be backwards compatible this enviornmental variable
--should be maintained with java upgrades or process improved by the Ubuntu Admin
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"

--restart to activate enviornment variable
/sbin/shutdown -r now

--go back to root
sudo -su root

--changing to home folder (in my case jason so change accordingly) so I know where the proceeding download will be
cd /home/jason

--download specific mirth download file (or retrive latest download file from site)
wget http://downloads.mirthcorp.com/conne...94-unix.tar.gz

--unzip mirth download (update filename as necessary)
tar xvfz mirthconnect-3.5.1.b194-unix.tar.gz

--copy mirth software to an appropriate folder
mv Mirth\ Connect/ /opt/mirthconnect

--cleanup download (update filename as necessary)
rm mirthconnect-3.5.1.b194-unix.tar.gz

--start mcservice
/opt/mirthconnect/mcservice start

--verify status
/opt/mirthconnect/mcservice status

-verify 8080 in broswer
dg1.hdcbc.ca:8080

--verify 8443 in broswer
dg1.hdcbc.ca:8443

--set to automatic service startup
--this needs to be defined by the Ubuntu admin

obsessio 04-24-2018 02:19 PM

Thank you so much for sharing with us!

vcarvajal 05-15-2018 04:18 PM

jdalio,
where did you find that URL for the download?

vcarvajal 05-15-2018 04:21 PM

jdalio,
I get access denied when trying to access the URL from here:
http://downloads.mirthcorp.com/

vcarvajal 05-18-2018 11:48 AM

For those looking on the current downloads link area:
https://www.nextgen.com/products-and...gine-Downloads

stormcel 05-18-2018 02:45 PM

AFAIK you are supposed to use oracle java and not openjdk.
I remember in the past that it was an issue and that we were required to use the 'official' java release or face problems with the program.

That being said, here is my ubuntu procedure alteration:

-----Check Java version make sure it is 8.
Code:

java -version
it should say something like:

Code:

java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

If it says 'OpenJDK' or some other java flavor, get the official release with the following:

Code:

        sudo add-apt-repository ppa:webupd8team/java
        sudo apt-get update
        sudo apt-get install oracle-java8-installer
        check with java -version

The recent installer I used was the script mirthconnect-3.5.2.b204-unix.sh
Just run it and follow the prompts.

agermano 05-20-2018 09:00 PM

Why is yum-utils necessary?

jdalio 05-26-2018 05:30 AM

Quote:

Originally Posted by vcarvajal (Post 263624)
jdalio,
where did you find that URL for the download?

Found the link under this URL. If you want to a different version then the one I used copy the proper link and replace.

http://downloads.mirthcorp.com/archive/connect/

jdalio 05-26-2018 05:34 AM

You cannot do apt-get install openjdk-8-jre unless you have yum. You can do it manually if you wish to skip installing (not sure why anyone would not do yum as it is, IMO as a primary Windows based person, one of the best features of Linux).

jdalio 05-26-2018 05:57 AM

I've read similar posts stormcel. A the time I wrote this Connect WOULD NOT work with (at least on my system) with oracle java and I had to use openJDK. I also could not get the .sh script to work but I was installing on AWS, new to me, so the above is what got me up and going. I recommend stormcel's comments for the .sh and oracle java but for me it just didn't work.


All times are GMT -8. The time now is 08:30 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation