Last active
December 30, 2015 16:58
-
-
Save ernado/7857598 to your computer and use it in GitHub Desktop.
Ubuntu, some useful scripts for cydev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Installs texlive + scipy + pypy requirements | |
# Ubuntu 13.10, by ernado | |
# Requires ~3.5 GB of free space | |
# for mongodb | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update | |
sudo apt-get install -y python-dev python-setuptools libtiff4-dev libjpeg8-dev zlib1g-dev \ | |
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev \ | |
python-numpy python-scipy python-matplotlib ipython ipython-notebook \ | |
python-pandas python-sympy python-nose nginx redis-server \ | |
python-pip texlive-full gcc make python-dev libffi-dev libsqlite3-dev pkg-config \ | |
libz-dev libbz2-dev libncurses-dev libexpat1-dev \ | |
libssl-dev libgc-dev python-sphinx python-greenlet \ | |
git mongodb-10gen | |
echo 'Okay' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# source it from your .bashrc | |
# by adding this line: | |
# . ~/bin/project.sh | |
# | |
# Activates project environment and chdirs to it root | |
# | |
function project() { | |
p=$1 | |
echo "Selecting project ${p}" | |
cd ~/src/$1 | |
source ~/envs/$1/bin/activate | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Installs pypy requirements + mongodb | |
# Ubuntu 13.10, by ernado | |
# Server version of script | |
# for mongodb | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update | |
sudo apt-get install -y python-dev python-setuptools libtiff4-dev libjpeg8-dev \ | |
zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev \ | |
nginx redis-server python-pip gcc make python-dev libffi-dev libsqlite3-dev \ | |
pkg-config libz-dev libbz2-dev libncurses-dev libexpat1-dev libssl-dev \ | |
libgc-dev python-sphinx python-greenlet git mongodb-10gen | |
echo 'Okay' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment