From d4c62bd881854b397aa36b964ddd0f154b7ce2d4 Mon Sep 17 00:00:00 2001 From: Taylor Christian Newsome <86472964+SleepTheGod@users.noreply.github.com> Date: Tue, 14 May 2024 12:16:29 -0400 Subject: [PATCH] Create linux_install.sh --- linux_install.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 linux_install.sh diff --git a/linux_install.sh b/linux_install.sh new file mode 100644 index 00000000..9b04df8e --- /dev/null +++ b/linux_install.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Ensure the script is run as root this was tested on Debain 12 +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" + exit 1 +fi + +# Update and install essential packages +apt-get update && apt-get upgrade -y +apt-get install -y python3-pip python3-venv git + +# Create a directory for your setup +mkdir -p /opt/my_project +cd /opt/my_project + +# Set up Python virtual environment +python3 -m venv venv +source venv/bin/activate + +# Install PyTorch (CPU version) +pip install torch torchvision torchaudio + +# Clone the transformers and Bark repository and install them +git clone https://github.com/huggingface/transformers.git +cd transformers +pip install . +cd .. + +git clone https://github.com/suno-ai/bark.git +cd bark +pip install . + +echo "Setup complete. All packages are installed."