Installing on Linux
Tip: To avoid errors, instead of typing the commands below, select and copy them from this page and paste them into the terminal.
WSL: Remember that opening a terminal means to open a PowerShell and enter wsl.
-
Open a new terminal. Do not use an already opened terminal.
- Enter
python3.12 -Vto check if you have Python 3.12. If you get an error message like ‘command not found’:- Enter
sudo apt install python3.12or similar. (Search online for instructions for your Linux distribution.)
- Enter
-
If you’re using a Debian-based distribution like Ubuntu, enter
sudo apt install python3.12-venvor similar. -
If you installed Python in step 2, close the terminal and open a new one.
- Enter
cd <M269 folder path>, e.g.cd ~/OU/m269-25j, to go to your M269 folder. (~is a shorthand for your home folder.)- WSL: If your M269 folder is e.g. on
C:\OU\m269-25jthen you must entercd /mnt/c/OU/m269-25.
- WSL: If your M269 folder is e.g. on
-
Enter
curl -LO https://github.com/dsa-ou/m269-installer/raw/main/install.shto download the installation script. -
Enter
chmod +x install.shto allow the installation script to run. -
Enter
./install.shto run the installation script. - WSL: For JupyterLab to open correctly, enter these commands in the terminal.
echo -e "\nexport BROWSER='/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'" >> ~/.bashrcecho "c.NotebookApp.use_redirect_file = False " >> ~/.jupyter/jupyter_lab_config.py
- Close the terminal.
You will have these files in your M269 folder:
install.sh: the installation scriptrequirements.txt: the list of M269 softwarecustom.css: the style changes to Jupyter notebooks
Tip: Do not remove these files, so that you can re-install the software, if needed.
| ⇧ Home | Using ⇨ |