Last active
January 24, 2017 22:51
-
-
Save bajorekp/c9624e8d116406779d031180a661b2ac to your computer and use it in GitHub Desktop.
This file contains 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
# komendy do installacji na ubuntu | |
GIT_NAME="bajorekp" | |
GIT_EMAIL="[email protected]" | |
# install Java 8 from oracle | |
sudo apt-get update && \ | |
sudo add-apt-repository -y ppa:webupd8team/java && \ | |
sudo apt-get update && \ | |
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections && \ | |
sudo apt-get install -y oracle-java8-installer | |
# install git, ruby and dev tools | |
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev \ | |
libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev \ | |
python-software-properties libffi-dev libgdbm-dev libncurses5-dev automake \ | |
libtool bison xclip nodejs npm imagemagick graphviz | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm install 2.3.1 | |
rvm use 2.3.1 --default | |
ruby -v | |
echo "gem: --no-document" >> ~/.gemrc | |
gem install bundler rails | |
# config gita | |
git config --global color.ui true | |
git config --global user.name $GIT_NAME | |
git config --global user.email $GIT_EMAIL | |
cat /dev/zero | ssh-keygen -t rsa -b 4096 -C $GIT_EMAIL -q -N "" | |
sudo apt-get install -y python3-pip | |
sudo pip3 install --upgrade pip virtualenv | |
cd ~ | |
virtualenv ~/sci | |
source ~/sci/bin/activate | |
pip install numpy scipy matplotlib pandas scikit-learn sklearn nltk seaborn tensorflow h5py jupyter tables pydotplus graphviz | |
sudo apt-get install -y postgresql-9.5 postgresql-contrib libpq-dev postgresql-common | |
pip install psycopg2 | |
#change password for postgres user | |
sudo -u postgres psql postgres -c "ALTER USER postgres WITH PASSWORD 'postgres';" | |
sudo -u postgres psql postgres -c "CREATE USER ubuntu WITH PASSWORD 'ubuntu';" | |
# mkdir ~/data && sudo mount /dev/xvdb ~/data | |
# create Developer dir | |
mkdir ~/Developer | |
cd ~/Developer | |
# install docker and dependencies | |
sudo apt-get install -y apt-transport-https ca-certificates | |
sudo apt-key adv \ | |
--keyserver hkp://ha.pool.sks-keyservers.net:80 \ | |
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual | |
sudo apt-get install -y docker-engine python-pip | |
sudo pip install docker-compose | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment