mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
fixed missing downloads
This commit is contained in:
parent
f54876ac18
commit
1386672995
1 changed files with 20 additions and 8 deletions
28
setup.sh
28
setup.sh
|
|
@ -45,10 +45,22 @@ echo "Installing 'sounddevice' with pip3 (system-wide)..."
|
||||||
pip3 install --break-system-packages sounddevice
|
pip3 install --break-system-packages sounddevice
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
# Step 4: Build and install libltc (needed by ltc-tools)
|
# Step 4: Download NTP Timeturner scripts and assets
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
echo ""
|
echo ""
|
||||||
echo "Step 4: Building libltc (the heart of our time-magic)..."
|
echo "Step 4: Downloading scripts and splash screen from GitHub..."
|
||||||
|
cd /home/hermione
|
||||||
|
|
||||||
|
wget -O timeturner.py https://raw.githubusercontent.com/cjfranko/NTP-Timeturner/master/timeturner.py
|
||||||
|
wget -O ltc_probe.py https://raw.githubusercontent.com/cjfranko/NTP-Timeturner/master/ltc_probe.py
|
||||||
|
wget -O test_audioinput.py https://raw.githubusercontent.com/cjfranko/NTP-Timeturner/master/test_audioinput.py
|
||||||
|
wget -O splash.png https://raw.githubusercontent.com/cjfranko/NTP-Timeturner/master/splash.png
|
||||||
|
|
||||||
|
# ---------------------------------------------------------
|
||||||
|
# Step 5: Build and install libltc (needed by ltc-tools)
|
||||||
|
# ---------------------------------------------------------
|
||||||
|
echo ""
|
||||||
|
echo "Step 5: Building libltc (the heart of our time-magic)..."
|
||||||
cd ~
|
cd ~
|
||||||
if [ ! -d "libltc" ]; then
|
if [ ! -d "libltc" ]; then
|
||||||
echo "Cloning libltc from GitHub..."
|
echo "Cloning libltc from GitHub..."
|
||||||
|
|
@ -72,10 +84,10 @@ sudo make install
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
# Step 5: Build and install ltc-tools
|
# Step 6: Build and install ltc-tools
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
echo ""
|
echo ""
|
||||||
echo "Step 5: Building ltc-tools (with a gentle nudge)..."
|
echo "Step 6: Building ltc-tools (with a gentle nudge)..."
|
||||||
cd ~
|
cd ~
|
||||||
if [ ! -d "ltc-tools" ]; then
|
if [ ! -d "ltc-tools" ]; then
|
||||||
echo "Cloning ltc-tools from GitHub..."
|
echo "Cloning ltc-tools from GitHub..."
|
||||||
|
|
@ -91,10 +103,10 @@ sudo make install
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
# Step 6: Apply Custom Splash Screen
|
# Step 7: Apply Custom Splash Screen
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
echo ""
|
echo ""
|
||||||
echo "Step 6: Applying splash screen..."
|
echo "Step 7: Applying splash screen..."
|
||||||
if [ -f "/home/hermione/splash.png" ]; then
|
if [ -f "/home/hermione/splash.png" ]; then
|
||||||
sudo cp /home/hermione/splash.png /usr/share/plymouth/themes/pix/splash.png
|
sudo cp /home/hermione/splash.png /usr/share/plymouth/themes/pix/splash.png
|
||||||
sudo chmod 644 /usr/share/plymouth/themes/pix/splash.png
|
sudo chmod 644 /usr/share/plymouth/themes/pix/splash.png
|
||||||
|
|
@ -104,10 +116,10 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
# Step 7: Make Python scripts executable
|
# Step 8: Make Python scripts executable
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
echo ""
|
echo ""
|
||||||
echo "Step 7: Making *.py scripts executable (if any)..."
|
echo "Step 8: Making *.py scripts executable (if any)..."
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
PYFILES=(/home/hermione/*.py)
|
PYFILES=(/home/hermione/*.py)
|
||||||
if [ ${#PYFILES[@]} -gt 0 ]; then
|
if [ ${#PYFILES[@]} -gt 0 ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue