Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:system_build [2023/10/16 14:57] – [Boot settings] autostatic | wiki: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 | + | 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. | ||
- | When using an USB audio interface make sure you're using a quality USB cable in working order and that the USB interface is attached to a USB port with as little other peripherals or other devices connected to it as possible. This can be checked with the '' | + | When using an USB audio interface make sure you're using a quality USB cable in working order and that the USB interface is attached to a USB port with as little other peripherals or other devices connected to it as possible. This can be checked with the '' |
An example of a quality USB cable: https:// | An example of a quality USB cable: https:// | ||
===== Operating system ===== | ===== Operating system ===== | ||
- | {{https:// | + | {{https:// |
==== Download the operating system ==== | ==== Download the operating system ==== | ||
Line 36: | Line 36: | ||
Install the following packages from the default Debian repositories: | Install the following packages from the default Debian repositories: | ||
* rtirq-init | * rtirq-init | ||
- | * vlc | ||
* a2jmidid | * a2jmidid | ||
- | * htop | ||
- | * usbutils (when using an USB audio interface) | ||
They can be installed in one go: | They can be installed in one go: | ||
- | sudo apt install rtirq-init | + | sudo apt install rtirq-init a2jmidid |
+ | |||
+ | Select " | ||
- | Select " | ||
==== Boot settings ==== | ==== Boot settings ==== | ||
Line 54: | 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 '' | + | You can do this with an editor as root, so with '' |
GRUB_CMDLINE_LINUX=" | GRUB_CMDLINE_LINUX=" | ||
- | And update the Grub configuration with '' | + | And update the Grub configuration with '' |
+ | |||
For ''/ | For ''/ | ||
Line 91: | 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 | + | sudo usermod -a -G audio youruser |
newgrp audio | newgrp audio | ||
Line 105: | Line 106: | ||
==== System settings ==== | ==== System settings ==== | ||
- | The easiest option to finish up setting your system when starting it up is with a script in ''/ | + | The easiest option to finish up setting your system when starting it up is with a script in ''/ |
# Disable CPU frequency scaling | # Disable CPU frequency scaling | ||
systemctl mask ondemand | systemctl mask ondemand | ||
Line 117: | Line 118: | ||
[Service] | [Service] | ||
Type=oneshot | Type=oneshot | ||
- | ExecStart=/ | + | ExecStart=/ |
| | ||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
- | And enable and start it with '' | + | And enable and start it: |
+ | | ||
The script could be extended to configure other settings like disabling hyper threading or unloading unneeded kernel modules when desired. | The script could be extended to configure other settings like disabling hyper threading or unloading unneeded kernel modules when desired. | ||
Line 147: | Line 149: | ||
After having adjusted these settings restart '' | After having adjusted these settings restart '' | ||
- | ==== Liquorix kernel | + | ==== Optional parts ==== |
+ | === Liquorix kernel === | ||
{{https:// | {{https:// | ||
curl -s -O " | curl -s -O " | ||
Line 155: | 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 ==== | ||
- | {{: | ||
- | |||
- | 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 165: | 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: | To check if the most important conditions for a well working Linux audio system are met you could run the rtcqs script, see [[wiki: | ||
+ | |||
+ | ===== Support ===== | ||
+ | Got questions? You can always ask at https:// |