Imaging:DCM4CHEEInstallation
From CVRG Wiki
CVRG DCM4CHEE Installation
CVRG DCM4CHEE Overview
Below you will find a list of technologies used by the CVRG to instantiate a DCM4CHEE open-source PACS. These technologies have all been deployed/tested in CentOS 5.2(RHEL) running in VMWare Server:
System Requirements
| Technology | Version | URL |
|---|---|---|
| Java SE | 5.0 | http://java.sun.com/j2se/1.5.0/ |
| JBoss | 4.2.2 | http://www.jboss.org/ |
| MySQL | 5.0.28 | http://dev.mysql.com/doc/ |
| DCM4CHEE | 2.14.2 | http://dcm4che.org/ |
Installing DCM4CHEE
Installing DCM4CHEE
- NOTE: These instructions were followed for the CVRG installation of DCM4CHEE. Basic DCM4CHEE instructions are found at the DCM4CHEE installation page.
- Install JDK 1.5.0_x to /opt/java
- Create a directory under /opt for the databases (e.g., /opt/databases)
- Download and extract the binary distribution package of dcm4chee:
- Connect to the dcm4chee Sourceforge site
- Select the dcm4chee-mysql-2.14.2.zip package
- Download that file to the temp directory (i.e., /tmp)
- Extract DCM4CHEE to the databases directory (i.e., "gunzip -d /tmp/dcm4chee-mysql-2.14.2.zip /opt/databases")
- Download the binary distribution package of JBoss Application Server 4.2.2.GA:
- Connect to the JBoss download site
- Select the 4.2.2.GA package
- Download the binary distribution of jboss-4.2.2.GA.zip to the temp directory (i.e., /tmp)
- Extract JBoss Application Server 4.2.2.GA to the databases directory (i.e., "gunzip -d /tmp/jboss-4.2.2.GA.zip /opt/databases")
- Copy files from JBoss to dcm4chee:
- Move to the dcm4chee-xxx-2.14.2/bin directory (i.e., "cd /opt/databases/dcm4chee-mysql-2.14.2/bin")
- Execute the install_jboss.sh script with the path of your JBoss AS installation directory as a parameter (i.e., "install_jboss.sh /opt/databases/jboss-4.2.2.GA")
- Install the Database Software and create the DCM4CHEE Database:
- If you do not already have database software running, install it now.
- Initiate the pacsdb database instance using the DDL in dcm4chee-mysql-2.14.2/sql/create.mysql.
- mysql -u root
- mysql> create database pacsdb;
- mysql> grant all on pacsdb.* to 'pacs'@'localhost' identified by 'pacs';
- mysql> \q
- mysql -upacs -ppacs pacsdb < /opt/databases/dcm4chee-mysql-2.14.2/sql/create.mysql
- mysql -u root
- The database configuration information is contained within dcm4chee-mysql-2.14.2/server/default/deploy/pacs-mysql-ds.xml.
- If you're using a different database name, user name, etc., you'll need to update this file.
- If you're using a different database name, user name, etc., you'll need to update this file.
- Set environment variable JAVA_HOME to JDK location.
- The dcm4chee startup/shutdown scripts depend on the JAVA_HOME environment variable in order to find the Java executables and libraries.
- The dcm4chee startup/shutdown scripts depend on the JAVA_HOME environment variable in order to find the Java executables and libraries.
- Adjust maximum allocation of heap memory:
- Edit the dcm4chee run.conf (i.e., "vi /opt/databases/dcm4chee-mysql-2.14.2/bin/run.conf")
- Specify options to pass to the Java VM.
- if [ "x$JAVA_OPTS" = "x" ]; then
- JAVA_OPTS="-Xms128m -Xmx512m ..
- fi
- Specify options to pass to the Java VM.
- Save the edits (i.e., ":wq!")
- Edit the dcm4chee run.conf (i.e., "vi /opt/databases/dcm4chee-mysql-2.14.2/bin/run.conf")
- Test the installation:
- Move to the dcm4chee-xxx-2.14.2/bin directory (i.e., "cd /opt/databases/dcm4chee-mysql-2.14.2/bin")
- Execute the run.sh script
- Login into web interface:
- Connect to the Web Interface at http://localhost:8080/dcm4chee-web/ of the archive using any Web Browser
- Login in using default Administrator account 'admin', with password 'admin'
- You should change the admin password once you log in
- Setting the Storage File System location & Changing the default AE title:
- Connect to JBoss's JMX Console at http://localhost:8080/jmx-console/
- Login using also the Administrator account 'admin', with password 'admin'. (may need to be updated if change in web interface affects this)
- Setting the Storage File System location:
- Follow the link "service=FileSystemMgt" to the configuration page for File System Management service under the "dcm4chee.archive" heading.
- Invoke the operation addOnlineFileSystem(), with argument dirPath specifying the directory, where the archive shall store received objects/images.
- If no Storage File System is configured, the archive will auto-configure dcm4chee-xxx-2.14.x/server/default/archive as Storage File System, when receiving the first object/image.
- Changing the default AE title:
- Follow the link "service=AE" to the configuration page for AE (Application Entity - a DICOM term for a DICOM node on the network) service under the "dcm4chee.archive" heading.
- Invoke the operation updateAETitle with the old AE Title (DCM4CHEE if unchanged from the default), and new AE Title as parameters
- Test DICOM storage:
- Connect to the dcm4che 2.0 Sourceforge site
- Select the dcm4che-2.0.17-bin.zip package
- Download that file to the temp directory (i.e., /tmp)
- Extract DCM4CHE 2.0 toolkit to the databases directory (i.e., "gunzip -d /tmp/dcm4che-2.0.17-bin.zip /opt/databases")
- Send some object/images to the archive's Storage SCP, by using the send utility of the dcm4che 2.0 core package (i.e., "/opt/databases/dcm4che-2.0.17/bin/dcmsnd DCM4CHEE@localhost:11112 ~/mesa/storage/modality/MR")
- Refresh the Web Interface (http://localhost:8080/dcm4chee-web/) and click the 'binocular' icon, if necessary, to initiate a search
- Expand one study row to show contained series
- Expand one of these series to show contained instances
- In the case of images, you can follow the image icon on the right, to invoke a http WADO request for a JPEG presentation of this image, which will be displayed in a separate browser window
- Test object retrieval:
- Create external Storage SCP acting as Move Destination, by using the receiver utility of the dcm4che 2.0 DICOM toolkit (i.e., "/opt/databases/dcm4che-2.0.17/bin/dcmrcv 11113")
- Configure an additional Application Entity Title identifying this Move Destination within the "AE Management" tab within the Web user interface (http://localhost:8080/dcm4chee-web/).
- Set AE Title to "DCMRCV"
- Set Hostname to "localhost"
- Set Port to "11113"
- Switch back to the Study List ("Folder")
- Mark studies to retrieve using the check box on the right
- Select "DCMRCV" as send destination in the combo box above
- Click on the send button left from it
- Install as a service:
- Close any web browser that is open
- Stop the archive by pressing "Ctrl-C" in the console window where the archive was started
- Copy the init script dcm4chee_init_redhat.sh to /etc/init.d/ and adjust it according your installation location of the archive and the JDK and under which user the archive application shall run
