特殊:Badtitle/NS100:Ubuntu Studio Upgrade from Ubuntu:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
创建新页面为 '{{From|https://help.ubuntu.com/community/Ubuntu%20Studio%20Upgrade%20from%20Ubuntu}} {{Languages|UbuntuHelp:Ubuntu%20Studio%20Upgrade%20from%20Ubuntu}} Another vector for instal...'
 
Wikibot留言 | 贡献
无编辑摘要
 
第1行: 第1行:
{{From|https://help.ubuntu.com/community/Ubuntu%20Studio%20Upgrade%20from%20Ubuntu}}
{{From|https://help.ubuntu.com/community/Ubuntu%20Studio%20Upgrade%20from%20Ubuntu}}
{{Languages|UbuntuHelp:Ubuntu%20Studio%20Upgrade%20from%20Ubuntu}}
{{Languages|UbuntuHelp:Ubuntu%20Studio%20Upgrade%20from%20Ubuntu}}
{|border="1" cellspacing="0"
| '''Warning - Contents Under Construction'''
|}
Another vector for installing Ubuntu Studio is to "upgrade" from a current Ubuntu install.  While it is not difficult it will require some additional modifications of various configurations.
Another vector for installing Ubuntu Studio is to "upgrade" from a current Ubuntu install.  While it is not difficult it will require some additional modifications of various configurations.
This method does not require the use of the Ubuntu Studio DVD as all remaining packages will be downloaded and installed through either the command line (''apt-get install'') or via Synaptic package manager.
Also of note, not all packages need to be installed.  One can selectively "upgrade" various components of the Ubuntu Studio meta-packages.
Also of note, not all packages need to be installed.  One can selectively "upgrade" various components of the Ubuntu Studio meta-packages.
== Full Upgrade ==
== Full Upgrade ==
第18行: 第22行:
=== Configuration Modifications ===
=== Configuration Modifications ===
These additional modifications will be required.  Note: installing Ubuntu Studio from DVD as a fresh install does not require manual configuration modifications since they will already be configured.
These additional modifications will be required.  Note: installing Ubuntu Studio from DVD as a fresh install does not require manual configuration modifications since they will already be configured.
==== Audio Group ====
==== Audio Configurations ====
Add yourself to the audio group. If it doesn't exist, create it and add yourself to it.
Adding yourself to the audio group allows you to use the real-time kernel for audio work.
==== limits.conf ====
<pre><nowiki>
Open the /etc/security/limits.conf file,
sudo adduser <username> audio
</nowiki></pre>
Be sure to replace <username> with your actual username.
Configure the /etc/security/limits.conf file to take full advantage of the real-time kernel.
Open the /etc/security/limits.conf file:
<pre><nowiki>
<pre><nowiki>
sudo gedit /etc/security/limits.conf
sudo gedit /etc/security/limits.conf
第31行: 第39行:
@audio - memlock unlimited
@audio - memlock unlimited
</nowiki></pre>
</nowiki></pre>
These value are suggested by the [http://jackaudio.org/faq JACK FAQ page].
The memlock line determines how much of your memory can be locked by audio processes.  Some also recommend setting this as half of your total memory (RAM, in KB), see [http://tapas.affenbande.org/wordpress/?page_id=73 Florian Paul Schmidt's page].
'''<u>Note: Modifying /etc/security/limits.conf Should Not Be Required Anymore</u> <<BR>>
Beginning with the Ubuntu package jack-audio-connection-kit-0.118+svn3796-1ubuntu2 editing of /etc/security/limits.conf should not be required. JACK will write the following during post-installation to /etc/security/limits.d/audio.conf:
# generated by jackd's postinst. <<BR>>
# Do not edit this file by hand, use <<BR>>
# dpkg-reconfigure -p high jack <<BR>>
# instead <<BR>>
@audio - rtprio 99 <<BR>>
@audio - memlock unlimited <<BR>>
#@audio - nice -19 <<BR>>
Please note that creating or modifying /etc/security/limits.conf may cause conflicts with the JACK written /etc/security/limits.d/audio.conf settings.
Email from Linux Audio Users mailing list: http://linuxaudio.org/mailarchive/lau/2010/3/5/166428 <<BR>>
Debian Bug #507248: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507248 <<BR>>
-- Scott Lavender 4/25/10'''
==== raw1394 Video/Audio Configuration ====
These configuration are required for access to raw1394 without being root.  '''This may cause some security problems if you are using IEEE1394 for other than hard disk, camera or sound card connections, e.g. networking.'''
Adding yourself to the video group is the first step to using IEEE1394 without being root.
<pre><nowiki>
sudo adduser <username> video
</nowiki></pre>
Be sure to replace <username> with your actual username.
Next, access right to "/dev/raw1394" must be given to the "video" group.
<pre><nowiki>
sudo gedit /etc/udev/rules.d/65-permission-raw.rules
</nowiki></pre>
And make a copy/paste of this into the file:
<pre><nowiki>
KERNEL=="raw1394", OWNER="root", GROUP="video", MODE="660"
</nowiki></pre>
Restart your computer to effect the change is access rights.
== Selective Upgrade ==
== Selective Upgrade ==
* ''Optional:'' Change the theme to [[UbuntuHelp:UbuntuStudio|UbuntuStudio]]. In the Ubuntu menu, select ''System'' -> ''Preferences'' -> ''Appearance'' -> ''Theme'' and select ''[[UbuntuHelp:UbuntuStudio|UbuntuStudio]]'' from the list of themes that is presented to you. Then select ''System'' -> ''Administration'' -> ''Login Window'', enter your password, and select ''[[UbuntuHelp:UbuntuStudio|UbuntuStudio]]'' in the list of Login Window themes that is presented to you in the ''Local'' tab.
It is also possible to selectively upgrade various packages rather than a full Ubuntu Studio upgrade.  This effectively upgrade functionality without upgrading a Ubuntu installation to Ubuntu Studio.
Selective upgrading will provide selective functionality by application categories.  Find the heading concerning the application category you desire and follow the instructions.  The categories are not exclusive and you may choose as many as you wish.
==== Minimalist Installation ====
If you do not want a full Ubuntu Studio installation but would like a small, sane cross section of the available audio, graphic and video applications, then try:
<pre><nowiki>
sudo apt-get install ardour hydrogen jackd jack-rack qjackctl seq24 vkeybd zynaddsubfx patchage kino ubuntu-restricted-extras ubuntustudio-menu gcdmaster
</nowiki></pre>
This will provide:
* ardour - a multichannel digital audio workstation and midi sequencer
* hydrogen - advanced drum machine
* jackd - JACK Audio Connection Kit daemon for serving and connecting audio
* jack-rack - effects "rack" for JACK
* qjackctl - facilitates JACK configuration and starting
* seq24 - midi sequencer
* vkeybd - virtual midi keyboard
* zynaddsubfx - modular zynth
* patchage - modular patch bay for JACK audio and Alsa midi
* Kino - non-linear editor for digital video data
* ubuntu-restricted-extras - provides support for MP3 playback and decoding, various other audio formats (gstreamer plugins), Microsoft fonts, Java runtime environment, Flash plugin, LAME (to create compressed audio files), and DVD playback.
* ubuntustudio-menu - menu for Ubuntu Studio
* gcdmaster - audio cd creator
==== Firewire (ieee1394 / raw1394) sound cards  ====
If you can't get your Firewire sound card working with Freebob/FFADO and Jack, please first of all have a look at http://ffado.org/?q=devicesupport/list and check if your sound card is supported.
In Hardy LTS and Karmic you can do it in terminal this way:
<pre><nowiki>
sudo adduser <username> video
sudo adduser <username> audio
</nowiki></pre>
Think to change <username> below with the concerned user name.
Then, you have to give the access right to "/dev/raw1394" to the "video" group:
<pre><nowiki>
sudo gedit /etc/udev/rules.d/65-permission-raw.rules
</nowiki></pre>
And make a copy/paste of this into the file:
<pre><nowiki>
KERNEL=="raw1394", OWNER="root", GROUP="video", MODE="660"
</nowiki></pre>
Restart the workstation is necessary to get the acces right.
In Karmic, install then the ffado utils:
<pre><nowiki>
  sudo apt-get install ffado-dbus-server ffado-mixer-qt4 ffado-tools libffado1
</nowiki></pre>
So you will have the access to raw1394 without being root. NB: it may cause a security problem if you are using ieee1394 for other than hard disk, camera or sound card connection, but for exemple with ieee1394 networking. You will have to run one time with the sound card "on" before starting the workstation, in order to confirm right access. Then it is not necessary anymore.
In Qjackctl setup, choose in the "Driver" list "freebob" if you are in Hardy, and "firewire" if you are using Karmic. In the "Interface" list, choose "hw:0".
In Karmic, you may need to install "a2jmidid" package. This application allows you to make connections between alsa-midi and jack-midi peripherals, sound cards in/out and audio applications. The new FFADO driver create now only jack-midi instance for the physical input and output of your firewire sound card. So if you are using them, you will need to launch "a2jmidid" in a terminal, or to add this command line to the Qjackctl start option to be launched automatically.
You can find some GUI tools and howto on the Ubuntu Studio [[UbuntuHelp:FireWire|FireWire Audio]] documentation. However, take care using the Ubuntu Studio Control Gui, it is very buggy.
==== Effect Plugins, Instruments and Codecs ====
Install the LADSPA plugins so you get some effect plugins for your audio applications to use.
For audio processing:
<pre><nowiki>
  sudo apt-get install blop caps cmt fil-plugins rev-plugins swh-plugins tap-plugins
</nowiki></pre>
For synthetisers:
<pre><nowiki>
  sudo apt-get install blepvco mcp-plugins omins
</nowiki></pre>
Install the DSSI host and plugins:
<pre><nowiki>
sudo apt-get install dssi-host-jack dssi-example-plugins fluidsynth-dssi hexter xsynth-dssi
</nowiki></pre>
More infos are provided below, see the "VST Instruments" section.
Install the video codecs:
<pre><nowiki>
sudo apt-get install gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse ffmpeg
</nowiki></pre>
If you use the Medibuntu repository, you can add other codecs, and encrypted DVD support to Ubuntu:
<pre><nowiki>
sudo apt-get install non-free-codecs libdvdcss2
</nowiki></pre>
Please see http://medibuntu.org for more information. Think to update, because Medibuntu may provide more complete version of VLC, Mplayer, Mencoder, etc...
==== VST Instruments ====
You can use [http://en.wikipedia.org/wiki/Virtual_Studio_Technology Windows VST plug-ins] (with certain limitations) via [http://www.breakfastquay.com/dssi-vst/ dssi-vst], which will make them available as if they were native Linux (DSSI) plug-ins.  Unfortunately, this adaptor is not readily available as a .deb package due to licensing restrictions, so you may need to build it yourself from [http://www.breakfastquay.com/dssi-vst/ source].  If you attempt this, make sure you have the ALSA and Wine sources installed first, as these are pre-requisites. You'll also need the DSSI and liblo headers.
<pre><nowiki>
~/dssi-vst-0.8$ sudo apt-get install libasound2-dev wine-dev liblo-dev dssi-dev
~/dssi-vst-0.8$ make && sudo make install
</nowiki></pre>
Once you have dssi-vst installed, copy the .DLLs for your VST plug-ins into the directory /usr/local/lib/vst, restart JACK, and they should automatically appear in any applications which make use of DSSI plug-ins (such as Rosegarden).
==== Real Time Kernel & Xruns ====
Xruns. What are they? Well, simply put, either they are buffer underruns or buffer overruns.
* A buffer underrun happens during playback, when your sound card tries to read data from the buffer, but your software has not yet filled it.
* A buffer overruns happens during recording, when your sound card tries to write data to buffer, but your software has not yet emptied it.
The only acceptable time to receive Xruns is during application startup. Currently, for whatever reason, JACK applications usually cause a few Xruns as they connect to the JACK server, but these will not hurt you in any way. The most damaging time to receive an Xrun is during recording, because it causes a permanent glitch in your audio, which may or may not be easily heard.
So, now you should understand basically why you want to avoid Xruns. They will cause issues with your recordings, or cause annoyance during playback. Thankfully, you can get these down to a minimum, if not eliminate them altogether.
The best way to avoid XRuns is to install a real time kernel, optimized for audio production with low latency. You can simply do:
<pre><nowiki>
sudo apt-get install linux-rt linux-headers-rt
</nowiki></pre>
Then follow the advice below under 'Real-Time Support' and you should be set up to run jackd and other applications in real time low latency mode. You need to reboot after you've installed the low-latency package and made the changes below. Make sure you reboot into the right kernel - it will come up in the list on the boot screen, but may not be set as the default option.
Take care, with some nVidia or AMD/ATI graphic card, the linux-rt kernel will not work with restricted driver. It always better to avoid use of restricted drivers if you don't need them. If your aim is audio production (recording, live performance) at low latency, my advice is to stay at the moment on Ubuntu Hardy LTS. Karmic is under testing.
==== Real-Time Support ====
After you've got the kernel you still need to set up real-time access for your applications.
All you have to do for this is give your ''audio'' group permissions to access the ''rtprio'', ''nice'', and ''memlock'' limits. To do this, you just need to run these commands, which will add some lines to the file /etc/security/limits.conf:
<pre><nowiki>
sudo su -c 'echo @audio - rtprio 99 >> /etc/security/limits.conf'
sudo su -c 'echo @audio - nice -10 >> /etc/security/limits.conf'
sudo su -c 'echo @audio - memlock unlimited >> /etc/security/limits.conf'
</nowiki></pre>
These value are suggested by [http://jackaudio.org/faq http://jackaudio.org/faq]. The memlock line determines how much of your memory can be locked by audio processes.  Some recommend setting this as half of your total memory (RAM, in KB).  See [http://tapas.affenbande.org/wordpress/?page_id=73 Florian Paul Schmidt's page].
If you use a Firewire sound card, you already done the step described here: in Hardy and Karmic beta, this group is already created at installation. You just have to do:
<pre><nowiki>
sudo adduser <username> audio
</nowiki></pre>
Restart Ubuntu and it is ok.
If you experience freezes after rebooting Jaunty Jackalope, try removing the "memlock unlimited" line or changing it to a different value. Always keep a -generic kernel on your Grub list. If for some reason you can't boot with the -rt kernel, it will be very usefull.
==== ALSA Sequencer ====
If you can not have midi sequencing enabled, or if you have midi error message, the Alsa midi sequencer module of the kernel may not be loaded. Try that:
<pre><nowiki>
sudo modprobe snd-seq
</nowiki></pre>
If it works, to have your system load it at bootup, you have to add it to the /etc/modules file, do:
<pre><nowiki>
sudo su -c 'echo snd-seq >> /etc/modules'
</nowiki></pre>
=== Ubuntu Studio Theme ===
''Optional:'' Change the theme to [[UbuntuHelp:UbuntuStudio|UbuntuStudio]]. In the Ubuntu menu, select ''System'' -> ''Preferences'' -> ''Appearance'' -> ''Theme'' and select ''[[UbuntuHelp:UbuntuStudio|UbuntuStudio]]'' from the list of themes that is presented to you. Then select ''System'' -> ''Administration'' -> ''Login Window'', enter your password, and select ''[[UbuntuHelp:UbuntuStudio|UbuntuStudio]]'' in the list of Login Window themes that is presented to you in the ''Local'' tab.
'''Note''': This installs a complete system. If you only want an audio, graphics, or video platform, remove the other respective packages.
'''Note''': This installs a complete system. If you only want an audio, graphics, or video platform, remove the other respective packages.
=== temporary information for updating: (do not delete) ===
=== temporary information for updating: (do not delete) ===
* -rt kernel
* limits.conf
* audio group
* jack vs. pulseaudio (configuration?)
http://www.linuxjournal.com/content/judgement-day-studio-dave-tests-ubuntu-studio-904
http://www.linuxjournal.com/content/judgement-day-studio-dave-tests-ubuntu-studio-904
http://idyllictux.wordpress.com/2009/04/21/ubuntu-904-jaunty-keeping-the-beast-pulseaudio-at-bay/
http://idyllictux.wordpress.com/2009/04/21/ubuntu-904-jaunty-keeping-the-beast-pulseaudio-at-bay/

2010年5月20日 (四) 00:27的最新版本

{{#ifexist: :Ubuntu Studio Upgrade from Ubuntu/zh | | {{#ifexist: Ubuntu Studio Upgrade from Ubuntu/zh | | {{#ifeq: {{#titleparts:Ubuntu Studio Upgrade from Ubuntu|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Ubuntu Studio Upgrade from Ubuntu|1|-1|}} | zh | | }}

Warning - Contents Under Construction

Another vector for installing Ubuntu Studio is to "upgrade" from a current Ubuntu install. While it is not difficult it will require some additional modifications of various configurations. This method does not require the use of the Ubuntu Studio DVD as all remaining packages will be downloaded and installed through either the command line (apt-get install) or via Synaptic package manager. Also of note, not all packages need to be installed. One can selectively "upgrade" various components of the Ubuntu Studio meta-packages.

Full Upgrade

To fully "upgrade" a plain, vanilla Ubuntu install to Ubuntu Studio involves installing packages and modifying configurations.

Installing Packages

To install all required Ubuntu Studio meta-packages, enter terminal & type in:

 
sudo aptitude update && sudo aptitude install ubuntustudio-desktop ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video linux-rt

After updating the package list, this will install the following packages:

Configuration Modifications

These additional modifications will be required. Note: installing Ubuntu Studio from DVD as a fresh install does not require manual configuration modifications since they will already be configured.

Audio Configurations

Adding yourself to the audio group allows you to use the real-time kernel for audio work.

sudo adduser <username> audio

Be sure to replace <username> with your actual username. Configure the /etc/security/limits.conf file to take full advantage of the real-time kernel. Open the /etc/security/limits.conf file:

sudo gedit /etc/security/limits.conf

and make sure it says:

@audio - rtprio 99
@audio - nice -19
@audio - memlock unlimited

These value are suggested by the JACK FAQ page. The memlock line determines how much of your memory can be locked by audio processes. Some also recommend setting this as half of your total memory (RAM, in KB), see Florian Paul Schmidt's page. Note: Modifying /etc/security/limits.conf Should Not Be Required Anymore <
>
Beginning with the Ubuntu package jack-audio-connection-kit-0.118+svn3796-1ubuntu2 editing of /etc/security/limits.conf should not be required. JACK will write the following during post-installation to /etc/security/limits.d/audio.conf:

  1. generated by jackd's postinst. <
    >
  2. Do not edit this file by hand, use <
    >
  3. dpkg-reconfigure -p high jack <
    >
  4. instead <
    >

@audio - rtprio 99 <
> @audio - memlock unlimited <
>

  1. @audio - nice -19 <
    >

Please note that creating or modifying /etc/security/limits.conf may cause conflicts with the JACK written /etc/security/limits.d/audio.conf settings. Email from Linux Audio Users mailing list: http://linuxaudio.org/mailarchive/lau/2010/3/5/166428 <
> Debian Bug #507248: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507248 <
> -- Scott Lavender 4/25/10

raw1394 Video/Audio Configuration

These configuration are required for access to raw1394 without being root. This may cause some security problems if you are using IEEE1394 for other than hard disk, camera or sound card connections, e.g. networking. Adding yourself to the video group is the first step to using IEEE1394 without being root.

 sudo adduser <username> video

Be sure to replace <username> with your actual username. Next, access right to "/dev/raw1394" must be given to the "video" group.

 sudo gedit /etc/udev/rules.d/65-permission-raw.rules

And make a copy/paste of this into the file:

 KERNEL=="raw1394", OWNER="root", GROUP="video", MODE="660"

Restart your computer to effect the change is access rights.

Selective Upgrade

It is also possible to selectively upgrade various packages rather than a full Ubuntu Studio upgrade. This effectively upgrade functionality without upgrading a Ubuntu installation to Ubuntu Studio. Selective upgrading will provide selective functionality by application categories. Find the heading concerning the application category you desire and follow the instructions. The categories are not exclusive and you may choose as many as you wish.

Minimalist Installation

If you do not want a full Ubuntu Studio installation but would like a small, sane cross section of the available audio, graphic and video applications, then try:

 sudo apt-get install ardour hydrogen jackd jack-rack qjackctl seq24 vkeybd zynaddsubfx patchage kino ubuntu-restricted-extras ubuntustudio-menu gcdmaster

This will provide:

  • ardour - a multichannel digital audio workstation and midi sequencer
  • hydrogen - advanced drum machine
  • jackd - JACK Audio Connection Kit daemon for serving and connecting audio
  • jack-rack - effects "rack" for JACK
  • qjackctl - facilitates JACK configuration and starting
  • seq24 - midi sequencer
  • vkeybd - virtual midi keyboard
  • zynaddsubfx - modular zynth
  • patchage - modular patch bay for JACK audio and Alsa midi
  • Kino - non-linear editor for digital video data
  • ubuntu-restricted-extras - provides support for MP3 playback and decoding, various other audio formats (gstreamer plugins), Microsoft fonts, Java runtime environment, Flash plugin, LAME (to create compressed audio files), and DVD playback.
  • ubuntustudio-menu - menu for Ubuntu Studio
  • gcdmaster - audio cd creator

Firewire (ieee1394 / raw1394) sound cards

If you can't get your Firewire sound card working with Freebob/FFADO and Jack, please first of all have a look at http://ffado.org/?q=devicesupport/list and check if your sound card is supported. In Hardy LTS and Karmic you can do it in terminal this way:

 sudo adduser <username> video
 sudo adduser <username> audio

Think to change <username> below with the concerned user name. Then, you have to give the access right to "/dev/raw1394" to the "video" group:

 sudo gedit /etc/udev/rules.d/65-permission-raw.rules

And make a copy/paste of this into the file:

 KERNEL=="raw1394", OWNER="root", GROUP="video", MODE="660"

Restart the workstation is necessary to get the acces right. In Karmic, install then the ffado utils:

  sudo apt-get install ffado-dbus-server ffado-mixer-qt4 ffado-tools libffado1

So you will have the access to raw1394 without being root. NB: it may cause a security problem if you are using ieee1394 for other than hard disk, camera or sound card connection, but for exemple with ieee1394 networking. You will have to run one time with the sound card "on" before starting the workstation, in order to confirm right access. Then it is not necessary anymore. In Qjackctl setup, choose in the "Driver" list "freebob" if you are in Hardy, and "firewire" if you are using Karmic. In the "Interface" list, choose "hw:0". In Karmic, you may need to install "a2jmidid" package. This application allows you to make connections between alsa-midi and jack-midi peripherals, sound cards in/out and audio applications. The new FFADO driver create now only jack-midi instance for the physical input and output of your firewire sound card. So if you are using them, you will need to launch "a2jmidid" in a terminal, or to add this command line to the Qjackctl start option to be launched automatically. You can find some GUI tools and howto on the Ubuntu Studio FireWire Audio documentation. However, take care using the Ubuntu Studio Control Gui, it is very buggy.

Effect Plugins, Instruments and Codecs

Install the LADSPA plugins so you get some effect plugins for your audio applications to use. For audio processing:

  sudo apt-get install blop caps cmt fil-plugins rev-plugins swh-plugins tap-plugins

For synthetisers:

  sudo apt-get install blepvco mcp-plugins omins 

Install the DSSI host and plugins:

 sudo apt-get install dssi-host-jack dssi-example-plugins fluidsynth-dssi hexter xsynth-dssi

More infos are provided below, see the "VST Instruments" section. Install the video codecs:

 sudo apt-get install gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse ffmpeg

If you use the Medibuntu repository, you can add other codecs, and encrypted DVD support to Ubuntu:

 sudo apt-get install non-free-codecs libdvdcss2

Please see http://medibuntu.org for more information. Think to update, because Medibuntu may provide more complete version of VLC, Mplayer, Mencoder, etc...

VST Instruments

You can use Windows VST plug-ins (with certain limitations) via dssi-vst, which will make them available as if they were native Linux (DSSI) plug-ins. Unfortunately, this adaptor is not readily available as a .deb package due to licensing restrictions, so you may need to build it yourself from source. If you attempt this, make sure you have the ALSA and Wine sources installed first, as these are pre-requisites. You'll also need the DSSI and liblo headers.

~/dssi-vst-0.8$ sudo apt-get install libasound2-dev wine-dev liblo-dev dssi-dev
~/dssi-vst-0.8$ make && sudo make install

Once you have dssi-vst installed, copy the .DLLs for your VST plug-ins into the directory /usr/local/lib/vst, restart JACK, and they should automatically appear in any applications which make use of DSSI plug-ins (such as Rosegarden).

Real Time Kernel & Xruns

Xruns. What are they? Well, simply put, either they are buffer underruns or buffer overruns.

  • A buffer underrun happens during playback, when your sound card tries to read data from the buffer, but your software has not yet filled it.
  • A buffer overruns happens during recording, when your sound card tries to write data to buffer, but your software has not yet emptied it.

The only acceptable time to receive Xruns is during application startup. Currently, for whatever reason, JACK applications usually cause a few Xruns as they connect to the JACK server, but these will not hurt you in any way. The most damaging time to receive an Xrun is during recording, because it causes a permanent glitch in your audio, which may or may not be easily heard. So, now you should understand basically why you want to avoid Xruns. They will cause issues with your recordings, or cause annoyance during playback. Thankfully, you can get these down to a minimum, if not eliminate them altogether. The best way to avoid XRuns is to install a real time kernel, optimized for audio production with low latency. You can simply do:

 sudo apt-get install linux-rt linux-headers-rt

Then follow the advice below under 'Real-Time Support' and you should be set up to run jackd and other applications in real time low latency mode. You need to reboot after you've installed the low-latency package and made the changes below. Make sure you reboot into the right kernel - it will come up in the list on the boot screen, but may not be set as the default option. Take care, with some nVidia or AMD/ATI graphic card, the linux-rt kernel will not work with restricted driver. It always better to avoid use of restricted drivers if you don't need them. If your aim is audio production (recording, live performance) at low latency, my advice is to stay at the moment on Ubuntu Hardy LTS. Karmic is under testing.

Real-Time Support

After you've got the kernel you still need to set up real-time access for your applications. All you have to do for this is give your audio group permissions to access the rtprio, nice, and memlock limits. To do this, you just need to run these commands, which will add some lines to the file /etc/security/limits.conf:

 sudo su -c 'echo @audio - rtprio 99 >> /etc/security/limits.conf'
 sudo su -c 'echo @audio - nice -10 >> /etc/security/limits.conf'
 sudo su -c 'echo @audio - memlock unlimited >> /etc/security/limits.conf'

These value are suggested by http://jackaudio.org/faq. The memlock line determines how much of your memory can be locked by audio processes. Some recommend setting this as half of your total memory (RAM, in KB). See Florian Paul Schmidt's page. If you use a Firewire sound card, you already done the step described here: in Hardy and Karmic beta, this group is already created at installation. You just have to do:

 sudo adduser <username> audio

Restart Ubuntu and it is ok. If you experience freezes after rebooting Jaunty Jackalope, try removing the "memlock unlimited" line or changing it to a different value. Always keep a -generic kernel on your Grub list. If for some reason you can't boot with the -rt kernel, it will be very usefull.

ALSA Sequencer

If you can not have midi sequencing enabled, or if you have midi error message, the Alsa midi sequencer module of the kernel may not be loaded. Try that:

 sudo modprobe snd-seq

If it works, to have your system load it at bootup, you have to add it to the /etc/modules file, do:

 sudo su -c 'echo snd-seq >> /etc/modules'

Ubuntu Studio Theme

Optional: Change the theme to UbuntuStudio. In the Ubuntu menu, select System -> Preferences -> Appearance -> Theme and select UbuntuStudio from the list of themes that is presented to you. Then select System -> Administration -> Login Window, enter your password, and select UbuntuStudio in the list of Login Window themes that is presented to you in the Local tab. Note: This installs a complete system. If you only want an audio, graphics, or video platform, remove the other respective packages.

temporary information for updating: (do not delete)

http://www.linuxjournal.com/content/judgement-day-studio-dave-tests-ubuntu-studio-904 http://idyllictux.wordpress.com/2009/04/21/ubuntu-904-jaunty-keeping-the-beast-pulseaudio-at-bay/ http://ubuntuforums.org/showthread.php?t=1292506 http://ubuntuforums.org/showthread.php?t=1292510 http://ubuntuforums.org/showthread.php?t=1292512