-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetupenv.sh
33 lines (33 loc) · 1.03 KB
/
setupenv.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
#!/bin/bash
echo "Starting setupenv.sh execution..."
sudo apt update && sudo apt upgrade
sudo apt-get update
sudo apt install net-tools -y
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update
sudo apt install python3.10 -y
sudo apt install python-is-python3 -y
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
sudo update-alternatives --config python3
curl https://bootstrap.pypa.io/get-pip.py | python
sudo apt install python3.10-distutils -y
sudo apt install npm -y
sudo apt-get install libsndfile1 -y
sudo apt install libasound2-dev -y
sudo apt install ffmpeg -y
git clone https://github.com/espeak-ng/espeak-ng.git
cd espeak-ng
./autogen.sh
./configure --without-pulseaudio
make
sudo make install
cd ..
cd ./web
npm install
cd ../api
pip install -r requirements.txt
pip install TTS simpleaudio gtts
CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python --upgrade --force-reinstall --no-cache-dir
cd ..
echo "Environment setup completed successfully."