Skip to content

Commit d7a2be5

Browse files
committed
Created Cloud_Setup folder for cloud environment setup scripts
1 parent bc27290 commit d7a2be5

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

ECCO-ACCESS/Cloud_access_to_ECCO_datasets/jupyter_env_setup.sh renamed to Cloud_Setup/jupyter_env_setup.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010

1111
# Then run this script:
1212
#
13-
# $ sudo chmod 755 ~/ECCO-v4-Python-Tutorial/ECCO-ACCESS/Cloud_access_to_ECCO_datasets/jupyter_env_setup.sh
14-
# $ ~/ECCO-v4-Python-Tutorial/ECCO-ACCESS/Cloud_access_to_ECCO_datasets/jupyter_env_setup.sh
13+
# $ sudo chmod 755 ~/ECCO-v4-Python-Tutorial/Cloud_Setup/jupyter_env_setup.sh
14+
# $ ~/ECCO-v4-Python-Tutorial/Cloud_Setup/jupyter_env_setup.sh
15+
1516

1617

1718
# # Start body of script
@@ -124,3 +125,6 @@ if [ $earthdata_cred_stored -eq 0 ]; then
124125
echo -e "\n${red_start}NASA Earthdata authentication info archived in ~/.netrc${nocolor_start}"
125126
fi
126127
sudo chmod 400 ~/.netrc
128+
129+
# create symlink to jupyter_lab_start.sh from the user's home directory
130+
ln -s ~/ECCO-v4-Python-Tutorial/Cloud_Setup/jupyter_lab_start.sh ~/jupyter_lab_start.sh

ECCO-ACCESS/Cloud_access_to_ECCO_datasets/jupyter_lab_start.sh renamed to Cloud_Setup/jupyter_lab_start.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ conda activate jupyter
1414
echo "Enter password to access Jupyter lab from browser,"
1515
echo "or leave blank to not require a password."
1616
PW="$(python3 -c 'from jupyter_server.auth import passwd; import getpass; print(passwd(getpass.getpass(), algorithm="sha256"))')"
17-
jlab_start="jupyter Space lab Space --no-browser Space --autoreload Space --port=9889 Space --ip='127.0.0.1' Space --NotebookApp.token='' Space --NotebookApp.password=\"$PW\" Space --notebook-dir=\"~/ECCO-v4-Python-Tutorial/Tutorials_as_Jupyter_Notebooks\""
17+
jlab_start="jupyter Space lab Space --no-browser Space --autoreload Space --port=9889 Space --ip='127.0.0.1' Space --NotebookApp.token='' Space --NotebookApp.password=\"$PW\" Space --notebook-dir=\"~/ECCO-v4-Python-Tutorial\""
1818

1919
# Start new tmux session
2020
tmux new -d -s jupyterlab
@@ -30,5 +30,7 @@ echo -e "${red_start}Access from your local machine in a browser window at"
3030
echo -e "${blue_start}http://127.0.0.1:9889/"
3131
echo -e "${red_start}tmux session can be accessed with"
3232
echo -e "${blue_start}tmux a -t jupyterlab"
33+
echo -e "${red_start}and detached from current window by pressing keys"
34+
echo -e "${blue_start}Ctrl-b d"
3335
echo -e "${red_start}and terminated with"
3436
echo -e "${blue_start}tmux kill-ses -t jupyterlab${nocolor_start}"

ECCO-ACCESS/Cloud_access_to_ECCO_datasets/sshd_enable.sh renamed to Cloud_Setup/sshd_enable.sh

File renamed without changes.

sshd_enable.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)