Jupyter Notebook Web Access on Google Cloud

Google has fantastic tutorials on how to set up a VM; the tutorials were a bit sketchy for how to get a Jupyter notebook server up and running that can be accessed via password through a web browser. This video filled the gap for me by providing careful attention to the firewall settings and other details that like the use of tmux (cheat sheet).

Messy Bash Script and Notes 

#tutorial from : https://www.youtube.com/watch?v=gMDQZPoMECE
#tmux tutorial from: https://www.youtube.com/watch?v=BHhA_ZKjyxo

sudo apt-get update
sudo apt-get --assume-yes upgrade
sudo apt-get --assume-yes install tmux build-essential gcc g++ make binutils
sudo apt-get --assume-yes install software-properties-common

sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install pip

sudo -H pip install jupyter
#jupyter notebook --generate-config
#enter the config file, then change this information
#sudo nano ~/.jupyter/jupyter_notebook_config.py
#c = get_config()
#c.NotebookApp.ip = "*"
#c.NotebookApp.open_browser = False
#c.NotebookApp.port = 5678

#use tmux to keep things running
#jupyter notebook password >> create login password

# to run: jupyter-notebook --no-browser --port=5678

### external port must match VM firewall settings