Spaces:
Running
Running
Update setup.sh
Browse files
setup.sh
CHANGED
@@ -1,2 +1,44 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
set -e
|
3 |
+
|
4 |
+
# Remove any third-party apt sources
|
5 |
+
rm -f /etc/apt/sources.list.d/*.list
|
6 |
+
|
7 |
+
# Update and install base packages
|
8 |
+
apt-get update && apt-get install -y --no-install-recommends \
|
9 |
+
curl \
|
10 |
+
ca-certificates \
|
11 |
+
sudo \
|
12 |
+
git \
|
13 |
+
wget \
|
14 |
+
procps \
|
15 |
+
git-lfs \
|
16 |
+
zip \
|
17 |
+
unzip \
|
18 |
+
htop \
|
19 |
+
vim \
|
20 |
+
nano \
|
21 |
+
bzip2 \
|
22 |
+
libx11-6 \
|
23 |
+
build-essential \
|
24 |
+
libsndfile-dev \
|
25 |
+
software-properties-common
|
26 |
+
|
27 |
+
# Add nvtop
|
28 |
+
add-apt-repository ppa:flexiondotorg/nvtop -y
|
29 |
+
apt-get upgrade -y && apt-get install -y --no-install-recommends nvtop
|
30 |
+
|
31 |
+
# Install Node.js + npm
|
32 |
+
curl -sL https://deb.nodesource.com/setup_21.x | bash -
|
33 |
+
apt-get install -y nodejs
|
34 |
+
npm install -g configurable-http-proxy
|
35 |
+
|
36 |
+
# Install Miniconda (Python 3.9)
|
37 |
+
curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh
|
38 |
+
chmod +x ~/miniconda.sh
|
39 |
+
~/miniconda.sh -b -p /opt/miniconda
|
40 |
+
rm ~/miniconda.sh
|
41 |
+
|
42 |
+
# Clean up
|
43 |
+
apt-get clean
|
44 |
+
rm -rf /var/lib/apt/lists/*
|