Skip to content

Instantly share code, notes, and snippets.

@realsby
Last active May 3, 2018 18:04
Show Gist options
  • Save realsby/0b76ee216a4bbba965ca9bd1ea94ace4 to your computer and use it in GitHub Desktop.
Save realsby/0b76ee216a4bbba965ca9bd1ea94ace4 to your computer and use it in GitHub Desktop.
vagrant new ubuntu
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install zsh zip git-core -y
sudo apt-get install python-virtualenv python-pip python-dev python-yaml python-lxml python-cffi python3-venv python3-pip python3-dev python3-yaml python3-lxml python3-cffi libpq-dev gettext -y
sudo apt-get install build-essential libssl-dev libffi-dev -y
sudo apt-get install libxml2-dev libxslt1-dev libjpeg-dev libpng-dev libtiff5 libfreetype6-dev libwebp-dev openjpeg-tools libcairo2 libpango1.0-0 libgdk-pixbuf2.0-0 shared-mime-info -y
# If GZIP issue : sudo apt-get install --reinstall zlibc zlib1g zlib1g-dev -y
# sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# sudo -H -u root bash -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# sudo apt-get install postgresql-client -y
# sudo apt-get install postgresql -y
# sudo apt-get install redis-server -y
# sudo apt-get install redis-tools -y
# sudo apt-get install nginx uwsgi uwsgi-plugin-python -y
# sudo apt-get install nginx uwsgi uwsgi-plugin-python3 -y
# pip3 install uwsgi
# sudo rm /etc/nginx/sites-available/default
# sudo rm /etc/nginx/sites-enabled/default
# sudo rm /etc/uwsgi/apps-available/README
# sudo rm /etc/uwsgi/apps-enabled/README
# sudo apt-get install libapache2-mod-wsgi apache2 -y
# sudo a2enmod rewrite
# sudo a2enmod ssl
# service apache2 restart
# sudo apt-get install supervisor -y
# sudo apt-get install letsencrypt -y
# sudo letsencrypt certonly --standalone --noninteractive --rsa-key-size 4096 --email [email protected] --agree-tos -d sub.domain.com
# /etc/letsencrypt
# sudo letsencrypt renew --dry-run --agree-tos
# sudo letsencrypt renew --agree-tos
# sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
# sudo adduser deployer
# CHECK SUDOERS FILE SETTINGS
# sudo usermod -a -G www-data deployer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment