Topic: #! and the RT kernel.
Hey all I wanted to give a quick and dirty rundown of setting up #! as a Real Time studio environment with the jaunty or hardy rt kernels depending on which version of #! you're running. This will also work with other distros if they have a RT kernel patch.
1. Get the RT (Real Time) kernel. Go into synaptic and search "linux-rt", get everything associated with the RT kernel. Install it and then.......
2. Modify your /etc/security/limits.conf file. This is the important stuff and why many people run into installing the right Kernel, but it still won't record with Real Time rights.
sudo gedit /etc/security/limits.conf Once in add these 3 lines
@audio - rtprio 99
@audio - memlock unlimited
@audio - nice -19 This will effectively add an audio group, but not all distributions have an audio group by default.
*Note* I personally run my rtprio at 100, because that's what I saw in Dyne:Bolic's config file and it runs great. Also, I've seen where "nice" may or may not really matter all that much, but I leave it just in case. Any of these numbers can be changed per your preference, but this should get anyone up and running pretty quickly.
3. Modify your Users and Groups. For #! go Menu>System>Users>Groups. Unlock it with your admin password and click "Manage Groups". From there click "Add Group" name it "audio" (it is case sensitive so make sure it matches what's in the limits.conf file) and check box your name as a user in that group.
That's it! Now you should be able to run Real Time applications with Real Time priority.
Okay you got it now what do you do with it?
Check out the repos and start with qjackctl, ardour, hydrogen or just install the ubuntu studio meta for audio and plugins, but that installs a lot of stuff. I also highly recommend a program called Traverso, but don't get it from the repositories. I recommend compiling it. The newer version has some features that are minute, but important. Check it out www.traverso-daw.org and read the site it has some good info on it and it has a current pdf manual for the program.
There are some more things that you can do to tune your system, but this should get you going. I hope this helped someone out or peaked someones interest. If there's something I missed or you have any questions let me know.
*IMPORTANT NOTE* When you're recording or doing audio work with the RT kernel and Jack etc. turn off you networking abilities. Being hooked up to the internet, wired or wireless, will cause xruns, audio blurbs and an overall bad recording day.
*ANOTHER NOTE* Jack needs to be setup to read your card, latencies, channels and more. It's really powerful and awesome, but it can seem overwhelming. Honestly, I'd do my best to give a tutorial on it too, but there are a lot of variables involved and it wouldn't work for everyone. Any card recognized by Alsa will work and there are enough things on google about Jack that it's just a matter of painting by numbers. If there's enough interest here for a Jack tutorial I'll do my best, but I can't make many promises. ![]()

