Install dx

From relax wiki
Revision as of 09:27, 25 October 2017 by Bugman (talk | contribs) (→‎Dockerfile: Switch to the new {{relax url}} template for future-proofing the URL.)
Jump to navigation Jump to search

About

OpenDX is a uniquely powerful, full-featured software package for the visualization of scientific, engineering and analytical data: Its open system design is built on familiar standard interface environments. And its sophisticated data model provides users with great flexibility in creating visualizations.

Linux

See http://pkgs.org/download/dx

Download the latest epel-release rpm from

sudo yum install epel-release
sudo yum install dx

# OR
cd $HOME/Downloads
# RHEL/CentOS 6 64-Bit ##
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
sudo yum install dx

Dockerfile

If you know how to run Docker, see the devel directory:

https://sourceforge.net/p/nmr-relax/code/ci/master/tree/devel_scripts/Docker/Ubuntu_16_04_OpenDX

Here is a screencast for how it is working: youtu.be/vbJP21lebLE

You can get dx working on a mac as easy as:

open -a XQuartz
xhost + `ipconfig getifaddr en1`
docker run -ti --rm -e DISPLAY=$(ipconfig getifaddr en1):0 -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/home/developer opendx

Consider to add these to your .bash_profile

alias dxdocker='open -a /Applications/Docker.app/Contents/MacOS/Docker'
alias dxx='open -a XQuartz; xhost + `ipconfig getifaddr en1`'
alias dx='docker run -ti --rm -e DISPLAY=$(ipconfig getifaddr en1):0 -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/home/developer opendx'

MAC

Buy for 25$ from http://www.vizsolutions.com.
When you pay by Paypal, you get a mail with instructions to install. That mail will probably end-up in a spam filter. Remember to check there.

After installing, in your home .bash_profile, add this

# Use OpenDX/usr/local/bin
alias dx='open -a /Applications/OpenDX-4.4.4/OpenDX.app'

Then you can open dx files from terminal

See also

Dx map