tag:blogger.com,1999:blog-46263928509753485362024-03-13T10:15:50.519+02:00sysimetsä's blogTapani Sysimetsähttp://www.blogger.com/profile/02212524022681387714noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4626392850975348536.post-44036189424249217132010-07-10T10:21:00.038+03:002012-03-09T11:40:55.159+02:00Ubuntu Minimal studio preparation!!! THIS HOW-TO IS OUTDATED - PLEASE CHECK <a href="http://kxstudio.sourceforge.net/Help:Ubuntu:Upgrade">THIS TUTORIAL</a> AT KXStudio SITE INSTEAD !!!<br />
<br />
-----------------------------------------------------------------------------<br />
Thanks to these <a href="https://launchpad.net/%7Efalk-t-j/+archive/lucid">great PPA repositories</a>, it's quite easy to build a stable and powerful music production system on <a href="https://help.ubuntu.com/community/Installation/MinimalCD">Ubuntu Minimal</a> 10.04 LTS. This is a short how-to for building a light-weight system with a good rt-kernel and up-to-date audio applications. Ubuntu Minimal provides a platform where only the necessary packages can be added - and the rest can be left out. Of course, it is possible to add more apps later, if needed.<br />
<br />
Couple of screenshots <a href="http://users.utu.fi/totaha/sysimetsa/gnome-studio-0.1.png">here</a> and <a href="http://users.utu.fi/totaha/sysimetsa/ardour-with-LV2.png">here</a>.<br />
<br />
This how-to will result to a system without PulseAudio. <span style="font-size: x-small;"> </span><br />
<span style="font-size: x-small;">(If you want to use PulseAudio, see the first comment below by Totalchaos. In section 11, removing pavucontrol and adding volume control applet are not needed, if you choose to use PA.)</span><br />
<br />
I have tested this with a 64-bit system, but it should apply for 32-bit too.<br />
<br />
Compliments to <a href="http://muusikoiden.net/keskustelu/posts.php?c=33&t=136394&o=240">JeanK</a> for providing the idea and basic instructions for the Minimal setup.<br />
<br />
<br />
<b>1. Install Ubuntu Lucid Minimal 10.04 LTS</b><br />
<br />
Download Ubuntu Lucid Lynx 10.04 Minimal CD image <a href="https://help.ubuntu.com/community/Installation/MinimalCD">here</a>.<br />
<br />
Write down the commands in section 2, if you do not have another computer with internet access available, because there will be no desktop after the first boot.<br />
<br />
Install Ubuntu Minimal without selecting additional packages. Instructions for installation are available <a href="http://www.psychocats.net/ubuntu/minimal">here</a>.<br />
<br />
Boot to the minimal system, log in as a user.<br />
<br />
<br />
<b>2. Desktop environment</b><br />
<br />
Code:<br />
<div style="font-family: "Courier New",Courier,monospace;"><span style="font-size: small;"># sudo apt-get update</span></div><br />
You may now choose the type of desktop you want. I chose <a href="http://www.gnome.org/">Gnome</a>, because that's what I'm used to... However, e.g. <a href="http://lxde.org/">LXDE</a> would be a lighter choice. If you want LXDE, skip a. and jump to b. "Installing <a href="http://lubuntu.net/">Lubuntu</a> desktop". (KDE users may rather consider <a href="http://kxstudio.sourceforge.net/">KXStudio</a>, for which the same FalkTX repositories are meant for.)<br />
<br />
a. Installing Gnome desktop (make sure you have "--no-install-recommends" in the end of the first line, if you do not wish to install PulseAudio and many other possibly unnecessary packages):<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install xorg gdm gnome-desktop-environment --no-install-recommends</div><div style="font-family: "Courier New",Courier,monospace;"># sudo service gdm start</div>→ log in and you should now have a minimal Gnome desktop. Skip b. and jump to section 3.<br />
<br />
b. Installing Lubuntu desktop:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install lubuntu-desktop<br />
# startx</div><br />
<br />
<b>3. Add FalkTX and abogani PPA repositories</b><br />
<br />
Open terminal and copy-paste the lines below:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install add-apt-key python-software-properties</div><span style="font-family: "Courier New",Courier,monospace;"># sudo gedit /etc/apt/sources.list</span><br />
<br />
Add these three lines in sources.list:<br />
<br />
<span style="font-family: "Courier New",Courier,monospace;">deb http://ppa.launchpad.net/falk-t-j/lucid/ubuntu/ lucid main #packages used in KXStudio compatible with Ubuntu Lucid</span><br />
<br />
<span style="font-family: "Courier New",Courier,monospace;">deb http://ppa.launchpad.net/falk-t-j/music/ubuntu lucid main #samples and soundfonts</span><br />
<br />
<span style="font-family: "Courier New",Courier,monospace;">deb http://ppa.launchpad.net/abogani/ppa/ubuntu/ lucid main #Real-Time/Low-Latency kernels</span><br />
<br />
Save and exit. Add keys for these repositories:<br />
<span style="font-family: "Courier New",Courier,monospace;"># sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 736E4F0B F141B61E</span><br />
<br />
Update repositories:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get update </div><br />
<br />
<b>4. Realtime kernel and headers</b><br />
<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install linux-realtime<br />
<div style="font-family: Arial,Helvetica,sans-serif;"><br />
</div></div>This will install Alessio Bogani's kernel and headers (currently 2.6.33-23-realtime). There are also other kernel options available in the repositories.<br />
<br />
<br />
<b>5. Tweaks for realtime audio</b><br />
<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo gedit /etc/security/limits.conf</div><br />
→ add these lines before "# End of file":<br />
<div style="font-family: "Courier New",Courier,monospace;">@audio - rtprio 99<br />
@audio - memlock unlimited</div><br />
Save and exit.<br />
<br />
<br />
<b>6. Audio applications</b><br />
<br />
These are the ones that I installed:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install alsa-firmware alsa-firmware-loaders alsa-tools alsa-tools-gui alsa-utils alsa-oss alsamixergui esound esound-clients libesd-alsa0 ardour audacity hydrogen hydrogen-drumkits jackd jack-rack qjackctl seq24 vkeybd yoshimi patchage vlc gcdmaster midisport-firmware blop caps cmt fil-plugins rev-plugins swh-plugins tap-plugins blepvco mcp-plugins amb-plugins omins dssi-host-jack dssi-example-plugins fluidsynth-dssi hexter xsynth-dssi calf-plugins invada-studio-plugins-lv2 invada-studio-plugins-ladspa leet-plugins rakarrack rosegarden monobristol holap ladish soundconverter muse qtractor streamtuner whysynth lmms lame jack-keyboard guitarix jamin ams rezound jcgui jkmeter linuxsampler jsampler fmit midisport-firmware fluid-soundfont-gm qsynth musescore musescore-soundfont-gm timemachine ladish</div><br />
Open Synaptic to see the plethora of other apps available. <br />
<br />
<br />
<b>7. Firewire audio interfaces</b><br />
<br />
Sorry, i have no experience of firewire audio interfaces, but these should be rather well supported in Ubuntu Lucid. If you use firewire, open synaptic and search for "ffado" and/or "firewire" -> select and install what you need.<br />
<br />
<br />
<b>8. Restricted hardware drivers</b><br />
<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install jockey-gtk</div><br />
Select from menu: System -> Administration -> Hardware drivers -> install drivers, if needed<br />
(Note I have not tested how restricted graphics drivers behave with Alessio's realtime kernel.)<br />
<br />
<br />
<b>9. More Restricted stuff, if needed</b><br />
<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install ubuntu-restricted-extras flashplugin-nonfree</div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><br />
<b>10. VST stuff, for those who like</b><br />
<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install fst wineasio vst-plugin-all winvst-plugin-all</div><br />
<a href="http://ardour.org/">Ardour</a> with VST-support:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install ardourvst-32bit</div><br />
<a href="http://lmms.sourceforge.net/">LMMS</a> with VST-support:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install lmms-vst</div><i><br />
</i><br />
<b>11. Desktop tweaks and applets (for GNOME)</b><br />
<br />
Remove pulseudio volume control from the main menu, because there is no pulseaudio installed:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get remove pavucontrol</div><br />
Add Volume Control applet:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo add-apt-repository ppa:dtl131/ppa<br />
# sudo apt-get install gnome-applets gnome-media gnome-settings-daemon</div>→ right click on panel and add Volume Control<br />
or go to System → Preferences → Keyboard shortcuts → assign keys to volume mute, down and up.<br />
<br />
Network manager might be useful too:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install network-manager<br />
# if [ ! -d ~/.config/autostart ];then mkdir ~/.config/autostart; fi<br />
# cp /etc/xdg/autostart/nm-applet.desktop ~/.config/autostart/</div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><br />
<b>12. Reboot to your new Linux studio!</b><br />
<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo reboot</div>... and choose 2.6.33-23-realtime kernel from the Grub menu.<br />
<br />
<br />
<b>No sound after reboot?</b><br />
<br />
Open (Gnome) Alsamixer and see that output is not muted.<br />
<br />
If still no sound, run:<br />
<div style="font-family: "Courier New",Courier,monospace;"># gstreamer-properties</div><br />
→ set defaults to alsa, reboot<br />
<br />
<br />
<b>Eyecandy etc. for Gnome (optional)</b><br />
<br />
<a href="http://www.google.com/images?client=ubuntu&channel=fs&q=Blubuntu&oe=utf-8&um=1&ie=UTF-8&source=univ&ei=KRw4TJv1JpWhOKjtyIoK&sa=X&oi=image_result_group&ct=title&resnum=4&ved=0CDIQsAQwAw">Blubuntu</a> theme:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install blubuntu-look</div><br />
<a href="http://ubuntustudio.org/screenshots">Ubuntu Studio outlook</a>:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo apt-get install ubuntustudio-theme ubuntustudio-menu ubuntustudio-icon-theme ubuntustudio-wallpapers plymouth-theme-ubuntustudio</div>select System → Preferences → Appearance → choose the theme you like<br />
<br />
<br />
<b>Disable bootsplash</b> <b> (optional) </b>to see system messages during boot:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo gedit /etc/default/grub</div><br />
Replace "<i>splash</i>" with "<i>nomodeset noplymouth</i>"<br />
<br />
Save and close. Run:<br />
<div style="font-family: "Courier New",Courier,monospace;"># sudo update-grub</div><br />
<br />
------------------------------------------------------------------<br />
If you found this how-to useful, please drop a comment. If you found errors or have ideas for improving the how-to, please tell!Tapani Sysimetsähttp://www.blogger.com/profile/02212524022681387714noreply@blogger.com9