Skip to content

Instantly share code, notes, and snippets.

@bearpaw
Forked from yangj1e/notebook.sh
Last active March 9, 2017 05:46
Show Gist options
  • Select an option

  • Save bearpaw/b61bbec74b66c0170283ceafaf3af613 to your computer and use it in GitHub Desktop.

Select an option

Save bearpaw/b61bbec74b66c0170283ceafaf3af613 to your computer and use it in GitHub Desktop.

Revisions

  1. bearpaw revised this gist Mar 9, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions notebook.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    #!/usr/bin/env bash

    cd ~
    wget http://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh
    bash Anaconda2-4.0.0-Linux-x86_64.sh -b
    wget https://repo.continuum.io/archive/Anaconda2-4.3.0-Linux-x86_64.sh
    bash Anaconda2-4.3.0-Linux-x86_64.sh -b
    echo 'PATH="/home/ubuntu/anaconda2/bin:$PATH"' >> .bashrc
    . .bashrc

  2. Jie Yang revised this gist May 13, 2016. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions notebook.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    #!/usr/bin/env bash

    cd ~
    wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.4.0-Linux-x86_64.sh
    bash Anaconda2-2.4.0-Linux-x86_64.sh -b
    wget http://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh
    bash Anaconda2-4.0.0-Linux-x86_64.sh -b
    echo 'PATH="/home/ubuntu/anaconda2/bin:$PATH"' >> .bashrc
    . .bashrc

    @@ -20,6 +20,7 @@ cd ~
    sed -i "1 a\
    c = get_config()\\
    c.NotebookApp.certfile = u'$certdir/mycert.pem'\\
    c.NotebookApp.keyfile = u'$certdir/mycert.key'\\
    c.NotebookApp.ip = '*'\\
    c.NotebookApp.open_browser = False\\
    c.NotebookApp.password = u'$key'\\
  3. Jie Yang revised this gist Nov 12, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion notebook.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ cd ~
    wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.4.0-Linux-x86_64.sh
    bash Anaconda2-2.4.0-Linux-x86_64.sh -b
    echo 'PATH="/home/ubuntu/anaconda2/bin:$PATH"' >> .bashrc
    export PATH=/home/ubuntu/anaconda2/bin:$PATH
    . .bashrc

    jupyter notebook --generate-config

  4. Jie Yang revised this gist Nov 12, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions notebook.sh
    Original file line number Diff line number Diff line change
    @@ -16,11 +16,11 @@ cd certs
    certdir=$(pwd)
    openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.key -out mycert.pem

    cd ~/.jupyter
    cd ~
    sed -i "1 a\
    c = get_config()\\
    c.NotebookApp.certfile = u'$certdir/mycert.pem'\\
    c.NotebookApp.ip = '*'\\
    c.NotebookApp.open_browser = False\\
    c.NotebookApp.password = u'$key'\\
    c.NotebookApp.port = 8888" jupyter_notebook_config.py
    c.NotebookApp.port = 8888" .jupyter/jupyter_notebook_config.py
  5. Jie Yang revised this gist Nov 12, 2015. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions notebook.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    #!/usr/bin/env bash

    cd ~
    wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh
    bash Anaconda-2.3.0-Linux-x86_64.sh -b
    conda update --all --yes --quiet
    wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.4.0-Linux-x86_64.sh
    bash Anaconda2-2.4.0-Linux-x86_64.sh -b
    echo 'PATH="/home/ubuntu/anaconda2/bin:$PATH"' >> .bashrc
    export PATH=/home/ubuntu/anaconda2/bin:$PATH

    jupyter notebook --generate-config

  6. Jie Yang revised this gist Nov 8, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion notebook.sh
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,6 @@ openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.key -out myce
    cd ~/.jupyter
    sed -i "1 a\
    c = get_config()\\
    c.NotebookApp.pylab = 'inline'\\
    c.NotebookApp.certfile = u'$certdir/mycert.pem'\\
    c.NotebookApp.ip = '*'\\
    c.NotebookApp.open_browser = False\\
  7. Jie Yang created this gist Oct 11, 2015.
    26 changes: 26 additions & 0 deletions notebook.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    #!/usr/bin/env bash

    cd ~
    wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh
    bash Anaconda-2.3.0-Linux-x86_64.sh -b
    conda update --all --yes --quiet

    jupyter notebook --generate-config

    key=$(python -c "from notebook.auth import passwd; print(passwd())")

    cd ~
    mkdir certs
    cd certs
    certdir=$(pwd)
    openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.key -out mycert.pem

    cd ~/.jupyter
    sed -i "1 a\
    c = get_config()\\
    c.NotebookApp.pylab = 'inline'\\
    c.NotebookApp.certfile = u'$certdir/mycert.pem'\\
    c.NotebookApp.ip = '*'\\
    c.NotebookApp.open_browser = False\\
    c.NotebookApp.password = u'$key'\\
    c.NotebookApp.port = 8888" jupyter_notebook_config.py