Skip to content

Instantly share code, notes, and snippets.

@mehmetkose
Last active December 7, 2016 10:27
Show Gist options
  • Save mehmetkose/d26145d58986cafa9d7a6fa6bc52dbf3 to your computer and use it in GitHub Desktop.
Save mehmetkose/d26145d58986cafa9d7a6fa6bc52dbf3 to your computer and use it in GitHub Desktop.
Python3 Development Stuff - Ubuntu 16.04
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y vim
sudo apt-get install -y tmux
sudo apt-get install -y gcc
sudo apt-get install -y build-essential
sudo apt-get install -y python3-setuptools
sudo apt-get install -y python3-pip
sudo apt-get install -y python3-dev
sudo apt-get install -y python3-lxml
sudo apt-get install -y python3-pycurl
sudo apt-get install -y libssl-dev
sudo apt-get install -y libffi-dev
sudo apt-get install -y libjpeg-dev
sudo apt-get install -y libvirt-dev
sudo apt-get install -y libcurl4-openssl-dev
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y rethinkdb
sudo service rethinkdb start
sudo cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
sudo service rethinkdb restart
sudo apt-get install -y supervisor
sudo systemctl enable supervisor
sudo supervisord -c /etc/supervisor/supervisord.conf
sudo supervisorctl -c /etc/supervisor/supervisord.conf
touch /var/run/supervisor.sock || exit
chmod 777 /var/run/supervisor.sock
sudo systemctl start supervisor
sudo supervisorctl reread
sudo supervisorctl update
sudo service supervisor restart
sudo apt-get install -y nginx
sudo sed -i 's/default_server//g' /etc/nginx/sites-enabled/default
sudo service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment