Update setup.md

This commit is contained in:
The_River
2025-07-09 18:45:39 +00:00
parent 8a841a1e02
commit cb7619660a
+44 -15
View File
@@ -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