How to deploy the Opensource PAC System using DCM4CHEE(Practical Steps)…


Install DCM4CHEE

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update


sudo apt install oracle-java8-installer

set default path...

sudo apt install oracle-java8-set-default
sudo apt-get install mysql-server

//Login to mysql
mysql –u root -p

create schema pacsdb;
grant all on pacsdb.* to pacs@localhost identified by 'pacs';
flush privileges;
\q

#Download the Jboss server, Need the specific version
#http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/jboss-4.2.3.GA-jdk6.zip/download


#Download the DCM4CHEE
#http://sourceforge.net/projects/dcm4che/files/dcm4chee/
Latest ...
#DCM4CHEE 2.18.3 doesn't have install files thus used 2.18.1

#Unzip both the JBOSS and DCM4CHEE to var/tmp/install


#Image libraries for 64 bit

wget http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-amd64.tar.gz

#The ibclib_jiio.so needs to be copied to
/var/tmp/install/dcm4chee-2.18.1-mysql/bin/native/libclib_jiio.so

#either use file explorer or the CLI
cp /var/tmp/install/jai_imageio-1_1/lib/libclib_jiio.so /var/tmp/install/dcm4chee-2.18.1-mysql/bin/native/libclib_jiio.so

cd /var/tmp/install/dcm4chee-2.18.1-mysql/bin/ 
./install_jboss.sh /var/tmp/install/jboss-4.2.3.GA



cd /var/tmp/install/dcm4chee-2.18.1-mysql/bin/

cd /var/tmp/install/dcm4chee-2.18.1-mysql/sql/

mysql –u pacs –p pacs pacsdb < create.mysql


sudo mv /var/tmp/install/dcm4chee-2.18.1-mysql/ /opt/

sudo ln -s /opt/dcm4chee-2.18.1-mysql /opt/dcm4chee

useradd dcm4chee

chown -R dcm4chee /opt/dcm4chee-2.18.1-mysql

sudo su - dcm4chee -c /opt/dcm4chee/bin/run.sh

#Access the DCM4CHEE through
http://localhost:8080/dcm4chee-web3


#original link
#http://blogoless.blogspot.com/2015/01/how-to-dcm4chee-on-ubuntu.html


#file browser as root
sudo apt-get install gksu
gksudo nautilus


Install Remote Desktop


HIS Integration

Src:
  Oviyam2 direct URL launch format is,

    http://ipaddress:port/oviyam2/oviyam?patientID=<PatID>&studyUID=<studyUID>&serverName=<servername>
   
  Oviyam2 depends server for authentication and automatically skips this phase if already done in the integrated application. 

  Still if security is not an issue, remove the security constraints in web.xml to skip the log in page.

direct URL launch format i is

http://ip_address:port/Oviyam2/viewer.html?patientID=xxxx&studyUID=xxx&serverName=xxx

patientID is optional and serverName is mandatory if more than one server node is available in the configuration file. 

In my scenario the configuration file contains only one server node, then serverName is optional.





By Pass Login
1.  Thanks. I edited "web.xml" file as follows:
2.  For the login thing, edit web.xml and comment out the tags <security-constraint>, <login-config> and <security-role>. You need to edit the one inside the oviyam war / WEB-INF folder. Please don't publish your server over the internet if you are going to remove all security constraints. 
3.  Done- Worked ONLY for integrations
4.   


How to expand Virtual Box Disk Capacity




Then you need to add newly added space to the working space. For that, you need to follow the guideline on this reference, http://derekmolloy.ie/resize-a-virtualbox-disk/

Finally, you will have 100GB space on your VM to store more images with the time.


If you need any support in this, please let me know.


Auto-start application when restart the app.

Put the command in your crontab file. The crontab file in Linux is a daemon that performs user-edited tasks at specific times and events. To edit the file, open a terminal and type "sudo crontab -e" to open your crontab file in the default text editor. At the first available line, type "@reboot xxxx", where "xxxx" is the command you wish to run. Save the file and exit.
@reboot sudo su - dcm4chee -c /opt/dcm4chee/bin/run.sh
How to backup images?
Backup folder ‘/opt/dcm4chee-2.18.1-mysql/server/default/archive’
Make sure not to delete anything there.

How to install SSH server (http://linux-sys-adm.com/how-to-install-and-configure-ssh-on-ubuntu-server-14.04-lts-step-by-step/)
apt-get install openssh-server

Start DCM$CHEE
sudo su - dcm4chee -c /opt/dcm4chee/bin/run.sh

How to edit Oviyam.war file ?
Create a WAR file : jar -cvf projectname.war *

Comments

Popular posts from this blog

How to integrate Oviyam Dicom view with DCM4CHE 2.18.1 Open-Source PACS Server.

How to Backup / Restore studies (images) from old DCM4CHEE 2.18.x server to New dcm4chee 2.18.x Server