Skip to content

Instantly share code, notes, and snippets.

@creimers
Last active August 29, 2015 14:18
Show Gist options
  • Save creimers/6e50b4e2d550c60f9587 to your computer and use it in GitHub Desktop.
Save creimers/6e50b4e2d550c60f9587 to your computer and use it in GitHub Desktop.
Server bootstrap
# Root no ssh
echo "PermitRootLogin no" > /etc/ssh/sshd_config
# add user to sudo
sudo adduser <username> sudo
# ssh key
mkdir .ssh
ssh-keygen
# install dependencies
sudo apt-get upgrade
sudo apt-get install git
sudo apt-get install python-dev
sudo apt-get install python3-pip
sudo apt-get install python-virtualenv
sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
sudo apt-get install libmysqlclient-dev
sudo apt-get install python-mysqldb
sudo apt-get install libapache2-mod-wsgi-py3
# touch dotfile
touch .bashrc
touch .vimrc
# vundle
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
sudo chown -R www-data media
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment