Most common cloud alternatives for deploying/testing NuPIC
- Amazon AWS EC2
- Google GCE
- GROK
Community Image
- From the main AWS console select the US West (Oregon) region
- Click on EC2
- From the EC2 console click on Images -> AMIs
- Filter by “Public Images” (Not “Owned by Me”)
- Search for “ami-61bac551” or “NuPIC” (case matters)
- Check the image named “NuPIC-a709a3”
- Click “Launch”
- Select at least an m3.medium instance (Micro instance fails to compile due to insufficient memory)
- Click “Review and Launch”
- Click “Launch”
- Choose an ssh key pair you have access to.
- Remote connect to EC2 instance using SSH and have fun!
Install From Base Amazon Linux
- Start an Amazon EC2 instance
- Use Quick Launch Instance
- Amazon Linux AMI 2014.03.2
- Select at least an m3.medium instance (Micro instance fails to compile due to insufficient memory)
-
Remote connect to EC2 instance using SSH and run the following series of commands:
# Amazon Linux sudo yum -y update sudo yum -y groupinstall 'Development Tools' sudo yum -y install python-devel sudo yum -y install openssl-devel sudo yum -y install make automake gcc gcc-c++ kernel-devel git-core sudo yum -y install cmake # Install python 2.7 and change default python symlink # Modified from http://www.lecloud.net/post/61401763496/install-update-to-python-2-7-and-latest-pip-on-ec2 sudo yum install python27-devel -y sudo rm /usr/bin/python sudo ln -s /usr/bin/python2.7 /usr/bin/python # Yum still needs 2.6, so write it in and backup script sudo cp /usr/bin/yum /usr/bin/_yum_before_27 sudo sed -i s/python/python2.6/g /usr/bin/yum sudo sed -i s/python2.6/python2.6/g /usr/bin/yum # Install pip so that it installs to 2.7 curl -O http://python-distribute.org/distribute_setup.py sudo /usr/bin/python27 distribute_setup.py sudo /usr/bin/easy_install-2.7 pip # Install mysql and set to start on boot sudo yum install mysql-server -y sudo chkconfig mysqld on sudo service mysqld start # Install Nupic git clone https://github.com/numenta/nupic cd nupic sudo pip install --allow-all-external --allow-unverified PIL --allow-unverified psutil -r external/common/requirements.txt # Update bashrc echo "export NUPIC='/home/ec2-user/nupic'" >> /home/ec2-user/.bashrc echo "export NTA=\$NUPIC/build/release" >> /home/ec2-user/.bashrc echo "export PYTHONPATH=\$PYTHONPATH:\$NTA/lib/python2.7/site-packages" >> /home/ec2-user/.bashrc source ~/.bashrc mkdir -p $NUPIC/build/scripts cd $NUPIC/build/scripts cmake $NUPIC cd $NUPIC/build/scripts make -j3 # Run all tests! make tests_all