Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:system_build [2023/10/23 10:05] – [Recommended packages] autostaticwiki:system_build [2024/07/15 11:29] (current) – [Optional parts] Removed KXStudio bits autostatic
Line 1: Line 1:
 ====== Build a Linux audio system ====== ====== Build a Linux audio system ======
  
-A minimal, basic and KISS manual on how to build a Linux audio system. This manual comprises installation and configuration of a Linux audio system based on Debian 12 with a XFCE desktop environment and a Liquorix kernel.+A minimal, basic and KISS manual on how to build a Linux audio system. This manual comprises installation and configuration of a Linux audio system based on Debian 12 with a XFCE desktop environment.
 ===== Hardware ===== ===== Hardware =====
 This manual assumes you're on a X86_64 platform. Any notebook or desktop computer using this platform should work but bear in mind that the more powerful your computer, the better it will run a Linux audio system. Linux audio applications and plugins can be very resource intensive so the more CPU and memory, the better. Using an Solid State Drive (SSD) as the main hard drive is also recommended. This manual assumes you're on a X86_64 platform. Any notebook or desktop computer using this platform should work but bear in mind that the more powerful your computer, the better it will run a Linux audio system. Linux audio applications and plugins can be very resource intensive so the more CPU and memory, the better. Using an Solid State Drive (SSD) as the main hard drive is also recommended.
Line 10: Line 10:
  
 ===== Operating system ===== ===== Operating system =====
-{{https://www.debian.org/Pics/debian-logo-1024x576.png?200 }} This manual starts from a standard Debian 12 "Bookworm" installation with XFCE installed from a live CD.+{{https://www.debian.org/Pics/debian-logo-1024x576.png?200 }} This manual starts from a standard Debian 12 "Bookworm" installation with XFCE installed from a live install image.
  
 ==== Download the operating system ==== ==== Download the operating system ====
Line 53: Line 53:
   mitigations=off usbcore.autosuspend=-1 threadirqs   mitigations=off usbcore.autosuspend=-1 threadirqs
  
-You can do this with an editor as root, so with ''sudo vi''''sudo nano'' in a terminal session. Make sure the line looks like this now:+You can do this with an editor as root, so with ''sudo vi'' or ''sudo nano'' in a terminal session. Make sure the line looks like this now:
   GRUB_CMDLINE_LINUX="mitigations=off usbcore.autosuspend=-1 threadirqs"   GRUB_CMDLINE_LINUX="mitigations=off usbcore.autosuspend=-1 threadirqs"
  
Line 92: Line 92:
 ==== User settings ==== ==== User settings ====
 Add your user to the audio group. Add your user to the audio group.
-  sudo usermod -a -G youruser audio+  sudo usermod -a -G audio youruser
   newgrp audio   newgrp audio
  
Line 106: Line 106:
  
 ==== System settings ==== ==== System settings ====
-The easiest option to finish up setting your system when starting it up is with a script in ''/usr/local/bin'' that you call as a service through systemd. Name the script something like ''rt-audio-setup'' and make sure it contains at least the following lines:+The easiest option to finish up setting your system when starting it up is with a script in ''/usr/local/sbin'' that you call as a service through systemd. Name the script something like ''rt-audio-setup'' and make sure it contains at least the following lines:
   # Disable CPU frequency scaling   # Disable CPU frequency scaling
   systemctl mask ondemand   systemctl mask ondemand
Line 118: Line 118:
   [Service]   [Service]
   Type=oneshot   Type=oneshot
-  ExecStart=/usr/local/bin/rt-audio-setup+  ExecStart=/usr/local/sbin/rt-audio-setup
      
   [Install]   [Install]
Line 149: Line 149:
  
 After having adjusted these settings restart ''rtirq'' with ''sudo systemctl restart rtirq''. You can check the current IRQ priorities with ''sudo /etc/init.d/rtirq-init status''. After having adjusted these settings restart ''rtirq'' with ''sudo systemctl restart rtirq''. You can check the current IRQ priorities with ''sudo /etc/init.d/rtirq-init status''.
-==== Liquorix kernel ====+==== Optional parts ==== 
 +=== Liquorix kernel ===
 {{https://upload.wikimedia.org/wikipedia/commons/8/85/Liquorice_wheels.jpg?200 |Photo by Pikaluk from UK - Flickr, CC BY 2.0}}The Liquorix project provides a kernel flavor that works well for low latency audio. Download the installer: {{https://upload.wikimedia.org/wikipedia/commons/8/85/Liquorice_wheels.jpg?200 |Photo by Pikaluk from UK - Flickr, CC BY 2.0}}The Liquorix project provides a kernel flavor that works well for low latency audio. Download the installer:
   curl -s -O "https://liquorix.net/install-liquorix.sh"   curl -s -O "https://liquorix.net/install-liquorix.sh"
Line 157: Line 158:
  
 This will install the latest Liquorix kernel available. Reboot to start your system with the Liquorix kernel. This will install the latest Liquorix kernel available. Reboot to start your system with the Liquorix kernel.
- 
-==== KX Studio packages ==== 
-{{:wiki:kxstudio.jpg?200 }}The KX Studio repositories contain a lot of audio applications and plugins not available in the default repositories. Instructions can be found here: https://kx.studio/Repositories 
- 
-Installing the kxstudio-default-settings package is not necessary, in fact, given the age and content of this package it might be better to not install it at all. 
  
 ===== Wrapping it up ===== ===== Wrapping it up =====
Line 167: Line 163:
  
 To check if the most important conditions for a well working Linux audio system are met you could run the rtcqs script, see [[wiki:system_configuration#rtcqs]]. To check if the most important conditions for a well working Linux audio system are met you could run the rtcqs script, see [[wiki:system_configuration#rtcqs]].
 +
 +===== Support =====
 +Got questions? You can always ask at https://linuxmusicians.com/
wiki/system_build.1698048305.txt.gz · Last modified: 2023/10/23 10:05 by autostatic