]> Shamusworld >> Repos - ardour-manual/blob - _manual/03_setting-up-your-system/08_platform-specifics/01_ubuntu-linux.html
Moved info about Audio group on Ubuntu to a more suitable place.
[ardour-manual] / _manual / 03_setting-up-your-system / 08_platform-specifics / 01_ubuntu-linux.html
1 ---
2 layout: default
3 title: Ubuntu Linux
4 ---                        
5
6 <p>
7   Ubuntu Linux is the most popular variety of Linux in use on desktop
8   and laptop systems. It has the backing of a for-profit corporation
9   (Canonical Inc.), a defined philosophy and a huge and
10   worldwide user base. As a result, it is a common platform for people
11   who want to use Ardour and other tools for music creation and
12   pro-audio work. 
13 </p>
14 <p>
15   Unfortunately, Ubuntu has repeatedly caused major headaches for
16   people who want to use Ardour. These problems have arisen from a
17   combination of two basic issues:
18
19   <ul>
20     <li>Badly built packages of Ardour</li>
21     <li>Poor system configuration related to JACK, which Ardour (and
22     most other pro-audio tools on Linux) uses for audio and MIDI I/O.
23     </li>
24   </ul>
25 </p>
26
27 <h2>High Level Recommendations for Ubuntu Users</h2>
28
29 <p>
30   Currently, installing pro audio applications on Ubuntu requires some 
31   configuration, in order for the user to gain realtime privilege (read below). 
32   Ubuntu Studio, which is an official flavor of Ubuntu, and thus shares 
33   the repositories with Ubuntu, has this already configured.
34   Another distribution, KXStudio, is largely based on Ubuntu, and also has 
35   these settings preconfigured - also containing many customized and often 
36   more up to date packages.
37 <p>
38
39 <h2>Problems with Ardour Packages</h2>
40
41 <dl>
42 <dt>What is the problem?</dt>
43 <dd>
44 <p>
45   It is not possible to know whether the current package of Ardour
46   released by Ubuntu has been correctly built or not. Ubuntu has a
47   history of making packaging errors that lead to crashes, missing
48   functionality and odd behaviour that is not present in the
49   ready-to-run version of the program that you can get from <a
50   href="http://ardour.org/download">ardour.org</a> (or in the packages
51   released by other distributions)
52 </p>
53 <dt>Symptoms</dt>
54 <dd>
55 <p>
56   Ardour starts up and basically runs, but you encounter subtle
57   problems (for example, with plugin GUIs or with export, or with the
58   use of certain specific plugins), or are missing functionality, or
59   run into crashes.
60 </p>
61 </dd>
62 <dt>How to Fix</dt>
63 <dd>
64 <p>
65   Download the ready-to-run version
66   from <a href="http://ardour.org/download">ardour.org</a>. Ardour's
67   lead developer (and many of the most active members of our user
68   community) will not provide support for, and will not investigate
69   bugs reported for, Ubuntu's own packages of Ardour. The ardour.org
70   packages install along side your distribution versions, and do not
71   interfere or interact in anyway other than sharing your own personal
72   Ardour settings and configuration choices.
73 </p>
74 </dd>
75 </dl>
76
77 <h2>Problems with the interaction between PulseAudio and JACK</h2>
78
79 <dl>
80 <dt>Background Info</dt>
81 <dd>
82 <p>
83   Like many distributions, Ubuntu has decide to use PulseAudio as the
84   default audio system. PulseAudio is a rich and capable system that
85   provides excellent services for typical users of Linux on the
86   desktop. However, it is not capable of the type of performance that
87   tools like Ardour require and in particular does not offer the
88   possibility of sending audio between applications that can makes the
89   Linux audio environment a very interesting one.
90 </p>
91 <p>
92   This would not a problem if it were not for the fact that JACK will
93   not run correctly (if at all) if it needs to use the same
94   soundcard/audio interface that PulseAudio is using. And since on
95   Ubuntu, PulseAudio is configured by default to always use the
96   (typically single) audio interface on your computer, this is a bit
97   of a problem.
98 </p>
99 <p>
100   The developers of JACK and PulseAudio got together in 2009 and
101   agreed upon a mechanism by which PulseAudio and JACK could cooperate
102   in their use of a single soundcard. Whether or not PulseAudio is running by
103   default, when JACK starts up it sends out a request to use the
104   soundcard. If PulseAudio is running, it will give up its use of the
105   soundcard to allow JACK to take over (and can optionally be told to
106   route its own audio through JACK). When JACK finishes, it sends out
107   another message, and PulseAudio can once again use the soundcard
108   directly.
109 </p>
110 </dd>
111 <dt>What is the problem?</dt>
112 <dd>
113 <p>
114   The specific issues known at this time (spring 2013) are:
115   <ul>
116     <li>a bug in PulseAudio that causes it not to give up the
117       soundcard when JACK asks (<a href="https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1163638">LP: #1163638</a></li>
118     <li>a bug that causes jackdbus v.1.9.8 (jackd does not suffer from this) 
119       to freeze up when told to stop, causing issues with restarting (<a href="https://bugs.launchpad.net/ubuntu/precise/+source/jackd2/+bug/956438">LP: #956438</a></li>
120   </ul>
121 </dd>
122 <dt>Symptoms</dt>
123 <dd>
124 <p>
125   <ul>
126     <li>Cannot start JACK (though see the next section for other
127       causes of this)</li>
128   </ul>
129 </p>
130 </dd>
131 <dt>How to fix</dt>
132 <p>
133   Install jackd2 1.9.9 to fix crash on stop bug.
134   Install pulseaudio-3.0 to fix card reservation bug.
135 </p>
136 <dd>
137 </dd>
138 </dl>
139
140 <h2>Problems with JACK configuration</h2>
141
142 <dl>
143   <dt>What is the problem?</dt>
144   <dd>
145     <p>
146       To function as intended, JACK needs to run with access to two
147       operating system facilities called "realtime scheduling" and "memory
148       locking". This means that you, the user who starts JACK, must be
149       allowed access to these facilities. By default, Ubuntu does create a
150       user group that has this permission but ... it does not put new
151       users into this group by default. Read more about why <a href="https://wiki.ubuntu.com/Audio/TheAudioGroup">here</a>.
152       Consequently, you will not have permission to run JACK in the way you should.
153     </p>
154   </dd>
155   <dt>Symptoms</dt>
156   <dd>
157     <p>
158       A message like "Cannot lock down memory" in the output from JACK as
159       it starts up. This output may be "hidden" in the Messages window of
160       QJackctrl (aka JACK Control), so you should check there.
161     </p>
162   </dd>
163   <dt>How to fix</dt>
164   <dd>
165     <p>
166       Make sure the file /etc/security/limits.d/audio.conf exists. If it is
167       named /etc/security/limits.d/audio.conf.disabled, rename it to the former.
168       Run the command <code>sudo usermod -a -G
169         audio <em>YOUR-LOGIN-NAME</em></code>. Then logout and login again.
170       On Ubuntu Studio the user is a member of audio group by default, but not
171       on other official flavors.
172     </p>
173   </dd>
174 </dl>
175   <h2>Reporting Issues</h2>
176 <p>Given the difficulties in supporting Ubuntu and the limited time/resources of the Ardour team, the <code>Ubuntu Studio Project</code> has requested that issues and bug reports related to Ubuntu, Ubuntu Studio and other derivitives be directed to them.<p>
177 <h4>Contact Information for Ubuntu Studio</h4>
178 <p><a href="http://ubuntustudio.org" target="_blank">The Ubuntu Studio Homepage</a></p>
179 <p><a href="http://ubuntuforums.org/forumdisplay.php?f=335" target="_blank">The Ubuntu Studio Forums.</a></p>
180 <p><a href="https://help.ubuntu.com/community/UbuntuStudio/MailLists" target="_blank">Information on the Ubuntu Studio Mailing Lists.</a></p>
181 <p><a href="https://help.ubuntu.com/community/UbuntuStudio/IRC" target-"_blank">Information on the Ubuntu Studio IRC channel.</a> #ubuntustudio on irc.freenode.net</p>