Changes from Version 1 of StepByStepUbuntuStudio8.10RT

Show
Ignore:
Author:
bucketoftruth (IP: 76.104.195.169)
Timestamp:
01/25/09 21:27:38 (13 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StepByStepUbuntuStudio8.10RT

    v0 v1  
     1= Step by Step guide to getting FFADO, JACK, and Ardour operation in Ubuntu Studio 8.10RT = 
     2 
     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. 
     4 
     5Following these simple steps I was able to get up and running with an RT enabled kernel in about 10 minutes. 
     6 
     7== My Kit: == 
     8{{{ 
     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 
     15        http://tinyurl.com/clr43l 
     16 
     17   Echo Audio Audiofire12 
     18        http://www.echoaudio.com/Products/FireWire/AudioFire12/index.php 
     19 
     20   Ubuntu Studio 8.10 with RT (realtime) kernel 
     21}}} 
     22 
     23== Steps: == 
     24 
     25'''1. Install Ubuntu Studio 8.10.''' 
     26 
     27'''2. Install all updates via update manager.''' 
     28 
     29'''3. Install RT kernel.''' 
     30{{{ 
     31sudo apt-get install linux-rt 
     32}}} 
     33 
     34'''4. Install ffado drivers and accompanying libraries.''' 
     35 
     36In Synaptic Package Manager choose Settings/Repositories.  In the Software Sources window choose the Third-Party Software tab.  Add the following: 
     37{{{ 
     38deb http://www.ffado.org/apt gutsy contrib 
     39}}} 
     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) 
     47 
     48'''5. Configure grub to boot RT kernel by default.''' 
     49{{{ 
     50sudo vim /boot/grub/menu.lst 
     51}}} 
     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. 
     57 
     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.''' 
     59{{{ 
     60sudo groupadd audio (optional step if audio group doesn't exist) 
     61sudo adduser <username> disk 
     62sudo adduser <username> audio 
     63}}} 
     64 
     65'''7. Adjust limits.conf to accommodate your RT kernel.''' 
     66{{{ 
     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' 
     70}}} 
     71 
     72'''8. Reboot to your RT kernel! ''' 
     73 
     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) 
     75 
     76'''9. You must install the raw1394 kernel module.  Run the following from the command line:''' 
     77{{{ 
     78sudo modprobe raw1394 
     79}}} 
     80To make this persistent, edit /etc/modules and add the line: 
     81{{{ 
     82raw1394 
     83}}} 
     84Then run the command (I believe this is deprecated in 8.10, but it doesn't hurt): 
     85{{{ 
     86sudo update-modules 
     87}}} 
     88 
     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 
     99 
     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. 
     101 
     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. 
     103 
     104Guides from which I shamelessly ripped off information: 
     105 * https://help.ubuntu.com/community/UbuntuStudioPreparation 
     106 * http://www.ffado.org/?q=release/apt