Changes from Version 1 of StepByStepUbuntuStudio8.10RT

bucketoftruth (IP:
01/25/09 21:27:38 (13 years ago)



  • StepByStepUbuntuStudio8.10RT

    v0 v1  
     1= Step by Step guide to getting FFADO, JACK, and Ardour operation in Ubuntu Studio 8.10RT = 
     3I have put together this step-by-step guide to aid others in creating a fully functional, real-time DAW (Digital Audio Workstation).  My purpose for having a recording studio with 12 mic inputs was to record 7 drum mics, 4 guitar mics, and 1 bass guitar mic simultaneously during jam sessions.  What made Linux essential was the capability of utilizing a real-time kernel.  Once all the instruments are recorded live (because live sounds best!), the vocal tracks can be added.  With RT capabilities there is no delay in processing the incoming audio during playback... simultaneous play ''and'' record just like on the old analog tape but without the mess.  This saves enormous post-production work and headaches when working in the digital world. 
     5Following these simple steps I was able to get up and running with an RT enabled kernel in about 10 minutes. 
     7== My Kit: == 
     9   Dell XPS M1210 laptop 
     10        1GB RAM 
     11        Intel T5600 1.8GHz Core2Duo 
     12        Intel 945GM Video controller 
     13        Sigmatel 9220 internal audio controller 
     14        Internal Ricoh Co Ltd R5C832 IEEE 1394 Controller 
     17   Echo Audio Audiofire12 
     20   Ubuntu Studio 8.10 with RT (realtime) kernel 
     23== Steps: == 
     25'''1. Install Ubuntu Studio 8.10.''' 
     27'''2. Install all updates via update manager.''' 
     29'''3. Install RT kernel.''' 
     31sudo apt-get install linux-rt 
     34'''4. Install ffado drivers and accompanying libraries.''' 
     36In Synaptic Package Manager choose Settings/Repositories.  In the Software Sources window choose the Third-Party Software tab.  Add the following: 
     38deb gutsy contrib 
     40Reload your package manager and install the following: 
     41 * ffado-dbus-server 
     42 * ffado-mixer-qt4 
     43 * ffado-tools 
     44 * jackd-firewire-driver 
     45 * libffado2 
     46 * libffado2-dev (just in case) 
     48'''5. Configure grub to boot RT kernel by default.''' 
     50sudo vim /boot/grub/menu.lst 
     52        edit the line: 
     53                default 0 
     54        to say 
     55                default 4 
     56or whatever number (counting from 0) is your rt entry in the file.  If you don't do this you have to manually choose it at boot every time. 
     58'''6. Add yourself to the disk and audio groups.  If the audio group doesn't already exist you can create it with the optional first command.''' 
     60sudo groupadd audio (optional step if audio group doesn't exist) 
     61sudo adduser <username> disk 
     62sudo adduser <username> audio 
     65'''7. Adjust limits.conf to accommodate your RT kernel.''' 
     67sudo su -c 'echo @audio - rtprio 99 >> /etc/security/limits.conf' 
     68sudo su -c 'echo @audio - nice -19 >> /etc/security/limits.conf' 
     69sudo su -c 'echo @audio - memlock unlimited >> /etc/security/limits.conf' 
     72'''8. Reboot to your RT kernel! ''' 
     74After you system is up and running you'll have to start jackd.  I recommend using qjackctl to do this as it has a patchbay manager.  Make sure everything is plugged in and running then start qjackctl (found in Sound & Video/Audio Production/JACK Control) 
     76'''9. You must install the raw1394 kernel module.  Run the following from the command line:''' 
     78sudo modprobe raw1394 
     80To make this persistent, edit /etc/modules and add the line: 
     84Then run the command (I believe this is deprecated in 8.10, but it doesn't hurt): 
     86sudo update-modules 
     89'''10. Here are the changes I made to the default jackd config by clicking Setup:''' 
     90 * Driver = firewire 
     91 * Realtime (checked) 
     92 * Priority = 70 
     93 * Frames/Period = 64 
     94 * Sample Rate = 48000 
     95 * Periods/Buffer = 3 
     96 * Port Maximum = 128 
     97 * Interface = hw:0 
     98 * Start Delay = 2 
     100'''11. Click the Patchbay button.'''  Click the New button and let it discover your port configurations itself.  Mine showed System with 12 capture ports listed under Output and it showed System with 12 playback ports under Input.  Select System in both windows and choose Connect.  You may have to click Activate though I don't really know exactly what that does. 
     102Click the start button and pray for no xruns.  Following these exact steps I've been able to successfully record in Ardour for 45 minutes without xruns or program errors.  It may go longer but I haven't bothered trying yet. 
     104Guides from which I shamelessly ripped off information: 
     105 * 
     106 *