Skip to content

Instantly share code, notes, and snippets.

@Praful932
Last active April 14, 2024 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Praful932/246173142223a0495565dcb7b163ab5d to your computer and use it in GitHub Desktop.
Save Praful932/246173142223a0495565dcb7b163ab5d to your computer and use it in GitHub Desktop.
Runpod env setup
#!/bin/bash
# run pod command
# bash -c 'curl -s https://gist.githubusercontent.com/Praful932/246173142223a0495565dcb7b163ab5d/raw/46f73902027b0e44d1c114f71cd7b27893487164/run_pod_setup.sh | bash && /start.sh'
# Step 1: Create a directory for Miniconda
mkdir -p ~/miniconda3
# Step 2: Download Miniconda installer script
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
# Step 3: Install Miniconda silently without manual intervention
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
# Step 4: Clean up the installer script
rm -rf ~/miniconda3/miniconda.sh
# Step 5: Add Miniconda to PATH temporarily for this script
# Note: Replace "conda_path" with the actual path if it's different.
export PATH="~/miniconda3/bin:${PATH}"
curl -sSL https://install.python-poetry.org | python3 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment