Skip to content

Latest commit

 

History

History
86 lines (62 loc) · 2.97 KB

README.md

File metadata and controls

86 lines (62 loc) · 2.97 KB

ibex-miniconda-install

Bash scripts for Ibex users that install (or uninstall) Miniconda

Installing Miniconda

Login to Ibex using your KAUST credentials.

ssh $USERNAME@ilogin.ibex.kaust.edu.sa # use glogin.kaust.edu.sa if you need GPU nodes

Clone this git repository in your Ibex home directory.

cd ~/
git clone https://github.com/kaust-rccl/ibex-miniconda-install.git

Change into the newly cloned repository directory and source the install script. Sourcing the install script runs each of the commands in the script as if you had entered them manually at the prompt and insures that changes made to your ~./bashrc take effect without your having to logout of Ibex.

cd ibex-miniconda-install/
source install-miniforge-ibex.sh

This script automates the installation of Mambaforge (Provides same commands as Miniconda) with user-specified options, sets up environment variables, configures Mambaforge behavior, and provides instructions for activating Mambaforge. It is designed for use in environments where Conda package management is needed. On ibex /ibex/user/$USER, you will find your folder for the WekaIO partition. However, if the following prompt appears ...

Do you wish the installer to initialize Miniconda3
by running conda init?

...we recommend that you type no to avoid having to manually initialize Conda for Bash later.

As we recommend base to be deactivated, to activate it, you will need to source it

source /ibex/user/$USER/mambaforge/bin/activate 

If you are still a little unsure about the whole process, we have created a tutorial on our YouTube channel that will walk you through the above steps in detail.

Updating Conda

Conda is a rapidly developing tool and it is important that you keep your versions on Ibex updated to the most recent version available. We have included an update-conda.sh script that will update Conda for you. Change into the ibex-miniconda-install directory and source the update script.

cd ~/ibex-miniconda-install
source update-conda.sh

Uninstalling Miniconda

Login to Ibex using your KAUST credentials.

ssh $USERNAME@ilogin.ibex.kaust.edu.sa # use glogin.kaust.edu.sa if you need GPU nodes

Change into the ibex-miniconda-install directory and source the uninstall script. Sourcing the install script insures that you don't need to logout of Ibex in order for the changes made by the uninstaller script to take effect.

cd ~/ibex-miniconda-install/
source uninstall-miniconda.sh

Running uninstall-miniconda.sh will delete all Conda environments stored in the ~/miniconda3/envs directory.