From cb7619660af0d76f6ec4ba2f1787437d64f657f4 Mon Sep 17 00:00:00 2001 From: The_River Date: Wed, 9 Jul 2025 18:45:39 +0000 Subject: [PATCH] Update setup.md --- setup.md | 59 ++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 15 deletions(-) diff --git a/setup.md b/setup.md index d646aca..c5902c2 100644 --- a/setup.md +++ b/setup.md @@ -1,6 +1,19 @@ -## SETUP +# SETUP + +## 1. Sudo System Setup +1. su - +2. apt update +3. apt upgrade +4. apt install -y sudo + sudo --version +5. usermod -aG sudo media +6. exit +7. whoami + > Make sure you are not root +8. sudo reboot ## Installation +### 1. Downloading Packages 1. sudo apt update && sudo apt upgrade -y 2. sudo apt install -y \ jackd2 \ @@ -9,23 +22,39 @@ python3.11-venv \ python3-pip 3. cd ~/Scripts/Music-Player + +### 2. Setting up python venv 4. python3 -m venv venv && source venv/bin/activate 5. pip install -r requirements.txt --- -## Permissions + +### 3. 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 +3. Paste: + ```bash + @audio - rtprio 95 + @audio - memlock unlimited + ``` + +### 4. 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 +2. sudo systemctl daemon-reload +3. sudo systemctl enable jackd.service && sudo systemctl enable zoneplayer.service +4. sudo systemctl start jackd.service && sudo systemctl start zoneplayer.service + +### 5. ALSA +1. alsamixer +2. adjust levels and unmute the master fader +3. sudo alsactl init +4. sudo alsactl store +5. sudo systemctl enable alsa-restore.service +6. sudo systemctl enable alsa-state.service + >Optional: Enable if present +7. sudo systemctl status alsa-restore + + +### 6. Wrap 1. sudo reboot - - - +2. systemctl status jackd +3. systemctl status zoneplayer +4. jack_lsp -c \ No newline at end of file