Skip to content

Latest commit

 

History

History
60 lines (50 loc) · 1.5 KB

INSTALLATION.md

File metadata and controls

60 lines (50 loc) · 1.5 KB

Python and pip

On Ubuntu Server 14.04

(
PYTHON_VERSION=2.7.11
cd /tmp
curl https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz | tar xz
cd Python-$PYTHON_VERSION
./configure --with-ensurepip
make
sudo make install
sudo /usr/local/bin/pip install -U pip setuptools wheel ipython virtualenv
)

On Ubuntu Server 16.04

sudo apt-get install python-pip
sudo pip install -U pip setuptools wheel ipython virtualenv

Virtualenv

virtualenv --prompt "(reaper) " reaperenv
source reaperenv/bin/activate

DCMTK (for DICOM Network Reaping)

Compile DCMTK from source, with promiscuous mode patch applied.

(
cd /tmp
curl http://dicom.offis.de/download/dcmtk/snapshot/old/dcmtk-3.6.1_20150924.tar.gz | tar xz
cd dcmtk-*
curl https://raw.githubusercontent.com/scitran/reaper/master/movescu.cc.patch | patch --strip 1
./configure --prefix=$VIRTUAL_ENV
make all
make install
)

Reaper

git clone https://github.com/scitran/reaper.git
pip install -e ./reaper

DICOM Network Debugging

AET=reaper; AEC=scanner; HOST=host; PORT=port; R_PORT=port
findscu -v -S -aet $AET -aec $AEC -k QueryRetrieveLevel="STUDY" -k StudyInstanceUID="" $HOST $PORT
findscu -v -S -aet $AET -aec $AEC -k QueryRetrieveLevel="SERIES" -k StudyInstanceUID="" -k SeriesInstanceUID="" $HOST $PORT

SERIES_UID="1.2...."
movescu -v -S -aet $AET -aec $AEC -k QueryRetrieveLevel="SERIES" -k StudyInstanceUID="" -k SeriesInstanceUID="$SERIES_UID" -od /tmp --port $R_PORT $HOST $PORT