When you are logging into a new ec2 instance for the first time:
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y python-dev software-properties-common curl default-jre
sudo apt-get install -y default-jdk python-software-properties byobu vimsudo apt-get install build-essential cmake pkg-config
sudo apt-get install libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libatlas-base-dev gfortran
sudo apt-get install libboost-all-dev
sudo apt-get install python-dev
sudo apt-get install ubuntu-restricted-extras
sudo apt-get install ubuntu-restricted-addons
sudo apt-get install vlc
sudo apt-get install mencoder mplayersudo apt-get install git git-core
git config --global user.email "you@example.com"
git config --global user.name "Your Name"- Set up anaconda - https://github.com/soumendra/python-machinelearning-setup
- clone and install from your environment of choice (mlredux.yml, greyatom.yml)
jupyter notebook --generate-config
mkdir certs
cd certs
sudo openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
cd ~/.jupyter
vim jupyter_notebook_config.pyContent for jupyter_notebook_config.py:
c = get_config()
c.NotebookApp.certfile = u'/home/ubuntu/certs/mycert.pem'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
Note: Open the notebook with https and not http