Skip to content

Instantly share code, notes, and snippets.

@niclashoyer
Last active August 8, 2016 08:01
Show Gist options
  • Save niclashoyer/7124643 to your computer and use it in GitHub Desktop.
Save niclashoyer/7124643 to your computer and use it in GitHub Desktop.
Fedora 19 Studio Setup

Fedora Studio Setup

# place in /etc/udev/rules.d/
KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"
# place in /etc/sysctl.d/
fs.inotify.max_user_watches = 524288
dev.hpet.max-user-freq = 3072
vm.swappiness = 10
[Desktop Entry]
# Place in ~/.local/share/applications/
# Example Icon: http://www.iconattitude.com/icons/png/6021/ardour.html
Encoding=UTF-8
Name=Ardour
Exec=/home/user/path/to/ardour/gtk2_ardour/ardev
Icon=/home/user/.icons/ardour.png
Type=Application
Categories=Music;
sudo yum install git jack-audio-connection-kit-devel libsndfile-devel liblo-devel aubio-devel cppunit-devel cwiid-devel liblrdf-devel libsamplerate-devel lv2-devel serd-devel sord-devel sratom-devel lilv-devel flac-devel gtkmm-2.4-devel gtkmm24-devel libgnomecanvas-devel libgnomecanvasmm26-devel suil-devel libcurl-devel uuid-devel libuuid-devel lib fftw3-devel liboggz-devel boost-devel alsa-lib-devel
git clone git://git.ardour.org/ardour/ardour.git
cd ardour
./waf configure
./waf
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
su -c 'rpm -Uvh http://ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/19/x86_64/planetccrma-repo-1.1-3.fc19.ccrma.noarch.rpm'

Installing JACK

yum install jack-audio-connection-kit jack-audio-connection-kit-dbus qjackctl pulseaudio-module-jack alsa-plugins-jack

PulseAudio redirected to use JACK

Disable PulseAudio Spawning

In /etc/pulse/client.conf set:

autospawn = no
Settings in QJackCtl

Execute script on startup: killall -9 jackdbus; pulseaudio -k; sleep 1
Execute script after startup: pulseaudio --start; sleep 1; pactl load-module module-jack-source; pactl load-module module-jack-sink Execute script after shutdown: pulseaudio -k; sleep 1; pulseaudio --start

Realtime Settings

sudo yum install planetccrma-core kernel-tools
sudo systemctl enable rtirq
sudo systemctl start rtirq
sudo systemctl enable cpupower
sudo systemctl start cpupower
# copy 80-realtime.conf from gist to /etc/sysctl.d/80-realtime.conf
sudo usermod -a -G audio,jackuser <user>
# copy 40-timer-permissions.rules from gist to /etc/udev/rules.d/40-timer-permissions.rules

Add the following to /etc/security/limits.conf:

@audio - rtprio 90          # maximum realtime priority
@audio - memlock unlimited  # maximum locked-in-memory address space (KB)

now reboot

Checking Configuration
git clone git://github.com/raboof/realtimeconfigquickscan.git
cd realtimeconfigquickscan
perl ./realTimeConfigQuickScan.pl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment