This commit is contained in:
Chris Frankland-Wright 2025-06-23 15:25:20 +01:00
parent dd1eb9846c
commit 04d2356184

View file

@ -11,35 +11,65 @@ echo "Initialising temporal calibration sequence..."
echo "Requesting clearance from the Ministry of Time Standards..." echo "Requesting clearance from the Ministry of Time Standards..."
echo "" echo ""
# Update and upgrade packages # ---------------------------------------------------------
sudo apt update && sudo apt upgrade -y # Step 1: Update and upgrade packages
# ---------------------------------------------------------
echo ""
echo "Step 1: Updating package lists..."
sudo apt update
# Essential tools echo "Upgrading installed packages..."
sudo apt upgrade -y
# ---------------------------------------------------------
# Step 2: Install essential development tools
# ---------------------------------------------------------
echo ""
echo "Step 2: Installing development tools..."
sudo apt install -y git curl python3 python3-pip build-essential cmake sudo apt install -y git curl python3 python3-pip build-essential cmake
# Audio tools # ---------------------------------------------------------
sudo apt install -y alsa-utils ffmpeg portaudio19-dev python3-pyaudio libasound2-dev libjack-jackd2-dev # Step 3: Install audio and media dependencies
# ---------------------------------------------------------
echo ""
echo "Step 3: Installing audio libraries and tools..."
sudo apt install -y alsa-utils ffmpeg portaudio19-dev python3-pyaudio libasound2-dev libjack-jackd2-dev || echo "Warning: Some audio dependencies may have failed to install, continuing..."
# Python packages # ---------------------------------------------------------
# Step 4: Install Python packages
# ---------------------------------------------------------
echo ""
echo "Step 4: Installing Python packages..."
pip3 install numpy pip3 install numpy
# Install ltc-tools from source if not available # ---------------------------------------------------------
# Step 5: Check for or install ltc-tools
# ---------------------------------------------------------
echo ""
echo "Step 5: Verifying LTC tools..."
if ! command -v ltcdump >/dev/null 2>&1; then if ! command -v ltcdump >/dev/null 2>&1; then
echo "ltc-tools not found, building from source..." echo "ltc-tools not found, building from source..."
cd ~ cd ~
if [ ! -d "libltc" ]; then if [ ! -d "libltc" ]; then
echo "Cloning libltc from GitHub..."
git clone https://github.com/x42/libltc.git git clone https://github.com/x42/libltc.git
fi fi
cd libltc cd libltc
mkdir -p build && cd build mkdir -p build && cd build
echo "Running CMake configuration..."
cmake .. cmake ..
echo "Compiling libltc..."
make make
echo "Installing libltc binaries..."
sudo make install sudo make install
sudo ldconfig sudo ldconfig
else else
echo "ltc-tools already installed." echo "ltc-tools already installed."
fi fi
# ---------------------------------------------------------
# Final Message
# ---------------------------------------------------------
echo "" echo ""
echo "─────────────────────────────────────────────" echo "─────────────────────────────────────────────"
echo " Setup Complete" echo " Setup Complete"