#! /bin/bash

# This is a proven way to install xcrysden in ubuntu 12. It should in principle also work in other flavour of linux.
# Simply run this script to automatically install xcyrsdensin  ~/xc/xcrysden
# After installation, xrcysden can be launched by issuing 'xcrysden'.

mkdir ~/xc
cd ~/xc

wget http://www2.fizik.usm.my/tlyoon/Downloads/xcrysden-1.5.53-linux_x86_64-shared.tar.gz

tar -xzvf xcrysden-1.5.53-linux_x86_64-shared.tar.gz
mv xcrysden-1.5.53-bin-shared xcrysden

# You need to be an sudoer
sudo ln -s ~/xc/xcrysden/xcrysden /usr/local/bin/.
