rounding off this branch for now

This commit is contained in:
Chris Frankland-Wright 2025-06-24 22:09:02 +01:00
parent d931f61da3
commit 5894f9e0f8

View file

@ -1,72 +1,43 @@
#!/bin/bash #!/bin/bash
echo "✨ Welcome to the NTP Timeturner Installer" # NTP Timeturner Setup Script
echo "Preparing the Time Room... Stand by." # Tested on Debian Bookworm - Raspberry Pi 3
# Author: cjfranko
# ─────────────────────────────────────────────
# Step 1: Update System
# ─────────────────────────────────────────────
echo "Step 1: Updating system packages..." echo "Step 1: Updating system packages..."
sudo apt update && sudo apt upgrade -y sudo apt-get update && sudo apt-get upgrade -y
# ───────────────────────────────────────────── echo "Step 2: Installing required system packages..."
# Step 2: Install Core Dependencies sudo apt-get install -y git cmake build-essential libjack-jackd2-dev \
# ───────────────────────────────────────────── libsndfile1-dev libtool autoconf automake \
echo "Step 2: Installing core dependencies..." pkg-config libasound2-dev libfftw3-dev \
sudo apt install -y \ python3-full python3-venv python3-pip \
git cmake build-essential \ libltc-dev python3-numpy python3-matplotlib python3-sounddevice
libjack-jackd2-dev libsamplerate0-dev \
libasound2-dev libsndfile1-dev \
python3 python3-pip python3-numpy python3-matplotlib
# ───────────────────────────────────────────── echo "Step 3: Cloning libltc and ltc-tools..."
# Step 3: Install Python Audio Libraries cd /home/hermione
# ───────────────────────────────────────────── git clone https://github.com/x42/libltc.git
echo "Step 3: Installing Python audio libraries..." git clone https://github.com/x42/ltc-tools.git
pip3 install sounddevice
# ───────────────────────────────────────────── echo "Step 4: Building libltc (the heart of our time-magic)..."
# Step 4: Install Splash Screen
# ─────────────────────────────────────────────
echo "Step 4: Installing custom splash screen..."
sudo cp splash.png /usr/share/plymouth/themes/pix/splash.png
# ─────────────────────────────────────────────
# Step 5: Build libltc
# ─────────────────────────────────────────────
echo "Step 5: Building libltc (the heart of our time-magic)..."
cd ~
if [ ! -d "libltc" ]; then
git clone https://github.com/x42/libltc.git
fi
cd libltc cd libltc
cmake . mkdir -p build && cd build
make cmake ..
make -j$(nproc)
sudo make install sudo make install
sudo ldconfig sudo ldconfig
# ───────────────────────────────────────────── echo "Step 5: Building ltc-tools..."
# Step 6: Build ltc-tools cd /home/hermione/ltc-tools
# ───────────────────────────────────────────── make -j$(nproc)
echo "Step 6: Building ltc-tools..."
cd ~
if [ ! -d "ltc-tools" ]; then
git clone https://github.com/x42/ltc-tools.git
fi
cd ltc-tools
make
sudo make install sudo make install
# ───────────────────────────────────────────── echo "Step 6: Setting splash screen..."
# Step 7: Set Hostname sudo cp /home/hermione/splash.png /usr/share/plymouth/themes/pix/splash.png
# ─────────────────────────────────────────────
echo "Step 7: Configuring hostname..."
sudo hostnamectl set-hostname ntp-timeturner
# ───────────────────────────────────────────── echo "Step 7: Making timeturner scripts executable..."
# Complete chmod +x /home/hermione/*.py
# ─────────────────────────────────────────────
echo "✨ Installation complete." echo "Step 8: Setup complete. System will reboot in 30 seconds unless you press Enter..."
echo "System will reboot in 30 seconds unless you press [Enter] to reboot now." echo "Press Ctrl+C or Enter now to cancel automatic reboot."
read -t 30 -p "Press [Enter] to reboot now or wait..." input read -t 30 -p ">> " input && sudo reboot || sudo reboot
sudo reboot