-
Notifications
You must be signed in to change notification settings - Fork 0
Alternative Module 2: Introduction to Bash on HiPerGator With JupyterLab
This explains exactly how to open and use the bash101 tutorial Markdown file in JupyterLab, and how to create the required symlink so you can access the course share storage.
- Create a symlink in your Home directory that points to
/blue/psy4930/share. - Open the
bash101tutorial Markdown file in Markdown Preview. - Open a Terminal and run the commands in the tutorial.
Important: You are linking to the shared course location /blue/psy4930/share, not to an individual directory under /blue/psy4930.
- Log in to Open OnDemand: ood.rc.ufl.edu.
- Start a JupyterLab session. It should be pinned to the bottom of the page as
Jupyter Notebook. Or, you can click on theInteractive Appsmenu, scroll down toServers -> Jupyter Notebook). Single click on it. Use the course/cluster defaults but setJob Time Limitto2and then clickLaunch. - You might need to wait for a while, but the session typically starts quickly. When it's ready click on
Connect to Jupyter. - When JupyterLab opens in a new tab, keep the File Browser visible (left side).
- In JupyterLab, click the Launcher tab (or File → New → Launcher if you don't see one).
- Scroll down to “Other,” click Terminal.
- A terminal window will open. You will paste commands there.
JupyterLab usually starts you in your home directory. A symlink is a shortcut that makes the course share storage easy to reach from home.
In the Terminal, run:
cd
ln -s /blue/psy4930/share blue_psy4930This creates a link named blue_psy4930 in your home directory. You should see blue_psy4930 in the list of folders on the left side of the JupyterLab window.
ls -l ~/blue_psy4930You should see output like:
blue_psy4930 -> /blue/psy4930/share
That means you already have something named blue_psy4930 in home.
- Check what it is:
ls -ld ~/blue_psy4930
ls -l ~/blue_psy4930- If your instructor tells you to replace it, remove the old link and recreate it:
rm ~/blue_psy4930
ln -s /blue/psy4930/share ~/blue_psy4930Note: rm ~/blue_psy4930 removes only the shortcut in your home folder, not the real course data in /blue.
Copy/paste:
cd ~/blue_psy4930
pwd
lsYou will typically have a folder named with your username (gatorlink). Replace {gatorlinkID} with your own.
cd ~/blue_psy4930/{gatorlinkID}
pwd
lsIf you do not see your folder or cannot enter it, stop and contact the course instructor.
If the tutorial has already created it, you can enter it:
cd ~/blue_psy4930/{gatorlinkID}/bash101
pwd
lsIf you have not created it yet, the tutorial’s Setup section will create it.
- In the JupyterLab File Browser, click
blue_psy4930. - Click the
Module2folder. - Find the tutorial
.mdfile. There should only be one file in there. If there are more files or no files, someone did something they should not have done. Please contact your instructor. - Right‑click the
.mdfile → Show Markdown Preview.
- Download the file from the
Module2folder or from Canvas under Module 2. - In JupyterLab, open your folder:
blue_psy4930/{gatorlinkID}/. - Upload the file:
- Drag-and-drop the
.mdfile into the file browser, or - Use File → Upload Files.
- Drag-and-drop the
- Right‑click the uploaded
.mdfile → Show Markdown Preview.
You should have:
- The Markdown Preview (instructions) visible, and
- The Terminal visible.
In JupyterLab you can drag tabs to split the workspace. Keep both panes on-screen so you can read and run commands.
- Run the tutorial top to bottom. Do not skip the Setup section.
- When the tutorial says “replace
{gatorlinkID},” do it. - If something fails, run
pwdandlsto confirm where you are. - Copilot/ChatGPT/Gemini/etc. can be useful for troubleshooting. Pay attention to errors!
Copy/paste anytime you feel lost:
pwd
ls -laIf you need to get back to the tutorial working directory:
cd ~/blue_psy4930/{gatorlinkID}/bash101/work
pwdYou are probably in the wrong folder. Run:
pwd
lsThen navigate back using:
cd ~/blue_psy4930/{gatorlinkID}You likely need to make it executable:
chmod +x count_errors.sh- Confirm it exists in home:
ls -l ~ | grep blue_psy4930
- If it exists, refresh the file browser (or reload the JupyterLab page).
Submit exactly what your instructor specifies. It should be:
~/blue_psy4930/{gatorlinkID}/bash101/work/notes/todo.txt~/blue_psy4930/{gatorlinkID}/bash101/work/count_errors.sh- A short log or screenshot showing the script ran successfully
If submission requirements differ in the current year, follow the course instructions on GitHub or Canvas.