Added Setup file
This commit is contained in:
@@ -1,24 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
SERVICE_DIR="$(dirname "$0")/systemd"
|
|
||||||
|
|
||||||
echo "📦 Deploying services from: $SERVICE_DIR"
|
|
||||||
|
|
||||||
for service in "$SERVICE_DIR"/*.service; do
|
|
||||||
svc_name=$(basename "$service")
|
|
||||||
echo "🛠️ Installing $svc_name..."
|
|
||||||
sudo cp "$service" /etc/systemd/system/
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "🔄 Reloading systemd daemon..."
|
|
||||||
sudo systemctl daemon-reexec
|
|
||||||
sudo systemctl daemon-reload
|
|
||||||
|
|
||||||
# Optional: Enable and/or start specific services
|
|
||||||
echo "✅ Enabling services..."
|
|
||||||
sudo systemctl enable zoneplayer.service
|
|
||||||
sudo systemctl start zoneplayer.service
|
|
||||||
|
|
||||||
echo "🚀 Deployment complete."
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=JACK Audio Connection Kit
|
||||||
|
After=sound.target
|
||||||
|
Requires=sound.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=media
|
||||||
|
ExecStart=/usr/bin/jackd -P85 -dalsa -dhw:0 -r48000 -p1024 -n2
|
||||||
|
Restart=on-failure
|
||||||
|
LimitRTPRIO=95
|
||||||
|
LimitMEMLOCK=infinity
|
||||||
|
Environment=JACK_NO_AUDIO_RESERVATION=1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
## SETUP
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
1. sudo apt update && sudo apt upgrade -y
|
||||||
|
2. sudo apt install -y \
|
||||||
|
jackd2 \
|
||||||
|
alsa-utils \
|
||||||
|
python3 \
|
||||||
|
python3.11-venv \
|
||||||
|
python3-pip
|
||||||
|
3. cd ~/Scripts/Music-Player
|
||||||
|
4. python3 -m venv venv && source venv/bin/activate
|
||||||
|
5. pip install -r requirements.txt
|
||||||
|
--
|
||||||
|
## Permissions
|
||||||
|
1. sudo usermod -aG audio $USER
|
||||||
|
2. sudo nano /etc/security/limits.d/audio.conf
|
||||||
|
3. "@audio - rtprio 95
|
||||||
|
@audio - memlock unlimited"
|
||||||
|
--
|
||||||
|
## Copy .service files
|
||||||
|
1. sudo cp services/*.service /etc/systemd/system/
|
||||||
|
2. sudo systemctl daemon-reexec
|
||||||
|
3. sudo systemctl daemon-reload
|
||||||
|
4. sudo systemctl enable jack@sanctuary.service && sudo systemctl enable zone@sanctuary.service
|
||||||
|
--
|
||||||
|
## Reboot
|
||||||
|
1. sudo reboot
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user