Installing Linux, Miniconda, NCL, and CDO on WSL
1. Setting Up Linux on Windows Subsystem (WSL)
To install Linux on Windows Subsystem for Linux (WSL), follow this detailed video guide:
[Link]
2. Installing Miniconda on Ubuntu (WSL)
Step 1: Update System Packages
Open the terminal in WSL and update the system packages:
sudo apt update && sudo apt upgrade -y
Step 2: Download Miniconda Installer
Download the latest Miniconda installer using wget:
wget [Link]
Step 3: Run the Installer
Make the installer executable and run it:
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
Follow the prompts:
Press Enter to review the license.
Type yes to accept the license.
Specify an installation path or press Enter to use the default.
Step 4: Initialize Conda
Initialize Conda for your shell:
conda init
Restart your shell to apply the changes:
Dr. Md. Jalal Uddin, Assistant Professor, IDM, KUET
Postdoc (China & South Korea), PhD & MSc (China), BSc (Bangladesh)
exec $SHELL
Step 5: Verify Installation
Check if Conda is installed correctly:
conda –version
3. Installing and Using Key Tools
Installing NCL (NCAR Command Language)
1. Update Conda
Update all Conda packages to ensure compatibility:
conda update -n root --all
2. Create a Conda Environment for NCL
Create an environment called ncl_stable and install NCL:
conda create -n ncl_stable -c conda-forge ncl
3. Activate the NCL Environment
Activate the newly created environment:
source activate ncl_stable
Note: You will need to run source activate ncl_stable each time you open a new terminal
session.
Installing CDO (Climate Data Operators)
1. Create a Conda Environment for CDO
Create an environment called cdo_stable and install CDO:
conda create -n cdo_stable -c conda-forge cdo
2. Activate the CDO Environment
Activate the newly created environment:
source activate cdo_stable
Dr. Md. Jalal Uddin, Assistant Professor, IDM, KUET
Postdoc (China & South Korea), PhD & MSc (China), BSc (Bangladesh)
4. Summary of Commands
Task Command
Update system packages sudo apt update && sudo apt upgrade -y
Download Miniconda wget [Link]
chmod +x Miniconda3-latest-Linux-x86_64.sh
Run Miniconda installer
./Miniconda3-latest-Linux-x86_64.sh
Initialize Conda conda init
Verify Conda installation conda --version
Update Conda conda update -n root --all
Install NCL conda create -n ncl_stable -c conda-forge ncl
Install CDO conda create -n cdo_stable -c conda-forge cdo
Dr. Md. Jalal Uddin, Assistant Professor, IDM, KUET
Postdoc (China & South Korea), PhD & MSc (China), BSc (Bangladesh)