Skip to content

Instantly share code, notes, and snippets.

@bcchenbc
Last active January 10, 2017 21:19
Show Gist options
  • Save bcchenbc/e38625deae73fc101f68a0eb64e5c417 to your computer and use it in GitHub Desktop.
Save bcchenbc/e38625deae73fc101f68a0eb64e5c417 to your computer and use it in GitHub Desktop.
# prepare celery worker
sudo ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
# for msgpack 0.4+ in python3, see http://neuro.debian.net/pkgs/python3-msgpack.html
### Ubuntu 14.04
# wget -O- http://neuro.debian.net/lists/trusty.us-ca.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
# sudo apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu:80 0xA5D32F012649A5A9
### Ubuntu 16.04
wget -O- http://neuro.debian.net/lists/xenial.us-ca.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
sudo apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu:80 0xA5D32F012649A5A9
### Debian 8
# wget -O- http://neuro.debian.net/lists/jessie.us-ca.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
# sudo apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu:80 0xA5D32F012649A5A9
sudo apt-get update
sudo mkdir /D
sudo chown $USER:$USER /D
mkdir /D/git
sudo apt-get install -y build-essential gfortran cmake
sudo apt-get install -y libtool libblas-dev liblapack-dev libhdf5-dev libzmq-dev libxml2-dev
sudo apt-get install -y autoconf automake uuid-dev pkg-config alien
sudo apt-get install -y python3-dev python3-pip
sudo apt-get install -y git unzip
sudo apt-get install -y python3-msgpack
sudo pip3 install ujson birdy twitter-application-only-auth pymysql nltk
cd /D/git
wget -O google-snappy.zip https://github.com/google/snappy/zipball/master
unzip google-snappy.zip
GOOGLE_SNAPPY_DIR=$(ls -1 | grep "google-snappy-")
cd $GOOGLE_SNAPPY_DIR
./autogen.sh
./configure
make
sudo make install
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
echo "export LD_LIBRARY_PATH=\"/usr/local/lib:\$LD_LIBRARY_PATH\"" >> ~/.bashrc
sudo pip3 install python-snappy
sudo pip3 install celery flower
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment