-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_dashboard.sh
48 lines (41 loc) · 1.36 KB
/
install_dashboard.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Update system packages
echo "Updating system packages..."
sudo apt update && sudo apt upgrade -y
# Install Docker
echo "Installing Docker..."
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
rm get-docker.sh
# Add the current user to the docker group
echo "Adding current user to docker group..."
sudo usermod -aG docker $USER
# Check for Docker permission issues
docker info &> /dev/null
if [ $? -ne 0 ]; then
echo "Fixing Docker permission issue..."
sudo chmod 666 /var/run/docker.sock
fi
# Install Miniconda
echo "Installing Miniconda..."
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
# Initialize conda for the user's shell
echo "Initializing conda for the current shell..."
current_shell=$(basename $SHELL)
if [[ "$current_shell" == "bash" ]]; then
~/miniconda3/bin/conda init bash
elif [[ "$current_shell" == "zsh" ]]; then
~/miniconda3/bin/conda init zsh
else
echo "Warning: Unsupported shell. Please run 'conda init' manually for your shell."
fi
# Install Hummingbot dashboard
echo "Installing Hummingbot dashboard..."
git clone https://github.com/hummingbot/dashboard.git
cd dashboard
make env_create
conda activate dashboard
streamlit run main.py