Spaces:
Running
Running
set -e | |
# Remove any third-party apt sources | |
rm -f /etc/apt/sources.list.d/*.list | |
# Update and install base packages | |
apt-get update && apt-get install -y --no-install-recommends \ | |
curl \ | |
ca-certificates \ | |
sudo \ | |
git \ | |
wget \ | |
procps \ | |
git-lfs \ | |
zip \ | |
unzip \ | |
htop \ | |
vim \ | |
nano \ | |
bzip2 \ | |
libx11-6 \ | |
build-essential \ | |
libsndfile-dev \ | |
software-properties-common | |
# Add nvtop | |
add-apt-repository ppa:flexiondotorg/nvtop -y | |
apt-get upgrade -y && apt-get install -y --no-install-recommends nvtop | |
# Install Node.js + npm | |
curl -sL https://deb.nodesource.com/setup_21.x | bash - | |
apt-get install -y nodejs | |
npm install -g configurable-http-proxy | |
# Install Miniconda (Python 3.9) | |
curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh | |
chmod +x ~/miniconda.sh | |
~/miniconda.sh -b -p /opt/miniconda | |
rm ~/miniconda.sh | |
# Clean up | |
apt-get clean | |
rm -rf /var/lib/apt/lists/* | |