Category Archives: EC2

Installing Scipy on Linux Red Hat

Tried to install scipy using easy_install (also pip). Installation failed with error: Atlas ( libraries not found. Instead: sudo yum install scipy works seamlessly Advertisements

Posted in EC2, Machine Learning, Programming, Python | Leave a comment

Add a new host to known_hosts

This is from serverfault: ssh-keygen -R [hostname] ssh-keygen -R [ip_address] ssh-keygen -R [hostname],[ip_address] ssh-keyscan -H [hostname],[ip_address] >> ~/.ssh/known_hosts ssh-keyscan -H [ip_address] >> ~/.ssh/known_hosts ssh-keyscan -H [hostname] >> ~/.ssh/known_hosts

Posted in EC2, Programming, Uncategorized, UNIX/Linux | Leave a comment

Issue with ec2-upload-bundle command from EC2 API

ec2-upload-bundle command uploads an image of an instance to Amazon S3. When I used underscore in the name of the S3 bucket the command gave ec2 v2 error prompting user’s confirmation (entering yes and hitting enter). If ec2-upload-bundle is in … Continue reading

Posted in EC2, Uncategorized | Leave a comment

Sudo command changes environment variables

When you run sudo command it switches user to “supper user” and environment variables also change. This can be annoying. For example, on amazon free-tier micro instance you ssh to it as ec2-user but often (almost always I would say) … Continue reading

Posted in Bash, EC2 | Leave a comment

Installing Mercurial and Vim on EC2

Pre-installed vim on EC2 does not have clipboard support. Installing from source. First, installing mercurial: sudo yum install mercurial Then clone vim: sudo hg clone vim cd vim/src sudo ./configure –with-features=huge –enable-gui=gnome2 sudo make …bunch of “make” messages follow… … Continue reading

Posted in EC2, Vim | Tagged , | Leave a comment

SciPy complains about libstdc++6 library

Issue solved by downloading, unzipping and copying the “*” file from into /home/ec2-user/local/gcc-4.3/lib64

Posted in EC2, Python, SciPy | Leave a comment

Installing SciPy for Python on Amazon-linux-EC2

First, install pip, a package-manager for python: wget tar -xvf pip*.gz cd pip* sudo python install Install atlas-devel and lapack libraries: yum -y install atlas-devel yum install lapack pip install scipy For the last three lines thanks to … Continue reading

Posted in EC2, Python, SciPy | Tagged , , | Leave a comment