Skip to content

Instantly share code, notes, and snippets.

@hupili
Last active December 25, 2015 18:28
Show Gist options
  • Save hupili/7020251 to your computer and use it in GitHub Desktop.
Save hupili/7020251 to your computer and use it in GitHub Desktop.
Super fast install: eval "$(curl -fsSL https://gist.github.com/hupili/7020251/raw/get-snsapi-cde.sh)"
#!/usr/bin/env sh
# Download SNSAPI's CDE (64bit) package and cd into the environment.
# Execute ./snsali.py.cde after that.
# More info.: https://github.com/hupili/snsapi/wiki/Installation
if [ `uname -m` == "x86_64" ]; then
wl="64"
else
wl="32"
fi
rm -f cde-package-latest.tar.gz
echo "start to download: http://snsapi.ie.cuhk.edu.hk/cde/$wl/cde-package-latest.tar.gz"
curl "http://snsapi.ie.cuhk.edu.hk/cde/$wl/cde-package-latest.tar.gz" > cde-package-latest.tar.gz
tar -zxvf cde-package-latest.tar.gz
cd cde-package/cde-root/home/hpl/snsapi
echo "========================"
echo "Successfully get SNSAPI"
echo "To start the command-line interface, type: ./snscli.py.cde"
echo "Have fun!"
#./snscli.py.cde
@hupili
Copy link
Author

hupili commented Oct 18, 2013

It can not run on all platforms due to various problems of CDE. CDE is out of maintainence and you can try to debug according to their FAQ: http://www.pgbovine.net/cde/manual/faq.html

The VM of SageMath Cloud is free and very easy to use. The one-liner works well on it.

@hupili
Copy link
Author

hupili commented Oct 19, 2013

This one-liner is only intended for quick initial trial of SNSAPI. For formal use, please follow the normal ways to install it, e.g. pip, Git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment