Category Archives: Installation

Upgrading to the LTS version of Ubuntu

Update 10/2019

One of the differences between Ubuntu and Ubuntu-Studio is that Ubuntu-Studio uses the Linux low latency kernel.  Now that the Linux Kernel has been modified so that the generic version has nearly the same performance as the low latency version, there is little to be gained by using the low latency version, especially since there appears to be some incompatibility of some applications and drivers with the low latency kernel.

Ubuntu-Studio is based upon the XFCE desktop, which is much more lightweight than the the ponderous old Ubuntu Unity interface. Ubuntu desktop uses Gnome 3, which is a mainstream desktop, lighter than Unity.  If you are in a resource limited environment, this may be important.  For normal audio work, it seems like a stripped down Ubuntu Desktop is the way to go.

Ubuntu-Studio is packed with many applications and utilities to facilitate graphics, video, publishing and other artistic pursuits beyond audio.  If you don’t need this, the advantage of the bundle is reduced.

For these reasons, I am now working on regular Ubuntu 18.04.3 as the base for the systems.

Rivendell is so tied into the libraries for Centos that is extremely difficult to get working and subject to bugs in Ubuntu.  I intend to run a Centos7 virtual KVM machine to implement Rivendell in a Centos 7 guest with Ubuntu as the host.

—————————

Ubuntu, has a versioning release system that accommodates both bleeding edge users and users that are seeking stability.  Ubuntu-Studio follows this scheme.  In the audio production field you want things that keep working for years.  The Long Term Support (LTS) release versions are the versions to use.

The various releases are kept track of by a Major release number – the latest being 18, a minor release number, and a point release number in the format:  18.04.3  LTS (See Below)  The major releases have a code name, 18. is Bionic Beaver, often just referred to Bionic.

There are generally substantial changes between major releases.  All the new stuff gets beta tested and tossed out into the world.  A release like 16.01.0 will likely have some hiccups because there are many things that have changed, and the changes do not always play nice with each other.

Because users who have production systems cannot track the “latest and greatest”, Ubuntu has established a “Long Term Release” based upon even major release numbers.  Major release 18 contains a Long Term Release.  Because the first several point releases are cleaning up incompatibilities, bugs and mistakes, it would be inadvisable to make an early major release with a low point release the LTS.  The Ubuntu folks have figured that by the fourth point release the new version has settled down enough to be stable.  So version 18.04  (and every .04 release of an even numbered major release will become an LTS)  To see the support status of the Ubuntu-Studio operating system and applications simply enter
$ ubuntu-support-status at the comand line.  The end of life status for Ubuntu releases determines when they no longer get updates.

When Ubuntu and Ubuntu-Studio 18.04 (without the.1) was released, it was very cool, but as all sofware, it still had bugs that had not been found or completely squashed.  It may not have had the user interface completely resolved.  Only when  Ubuntu 18.04.1 came out does it become the LTS edition – Ubuntu 18.04.1 LTS.   Updates to this version are intended to be focused on bug fixes, substantial performance improvements, etc.  There are rarely new applications or significant changes to the way it operates updated.  LTS versions are supported for five years, and other versions for only nine months.

LTS releases are what you build production machines from.  You want to turn off  automatic updates because you really don’t want to come in in the morning to find your workstation no longer works with the program you need to use because it was “updated” overnight. To update an LTS release, simply issue $ sudo apt-get update && sudo apt-get upgrade.

There are two other versions of “apt-get upgrade“,  the “dist-upgrade”, which is pretty safe in that it tries to upgrade every package in the package list, but will avoid any upgrades which require deleting a library or other possible dependency for another program.  There is also “full upgrade” which takes a more aggressive stance, and updates as many packages as possible without breaking dependencies.  In a production machine, I recommend only doing upgrades when you are physically at the machine where you can reboot it or fix whatever might stop working.

As I mentioned before, an LTS release will not get any new packages, but will upgrade all those that have been installed.  There is one notable exception.  This exception is “backports”.  Backports come in at least two groups.  Ubuntu backports are pretty well tested and you might consider using them to fix a broken or buggy driver, or to get something you really need working better.  By enabling the Ubuntu Backports repository (enabled by default) and installing from there opens you to some risk in a production environment, but it will probably work.

There are also manual backports where you build a package from a later edition of Ubuntu Studio to get some additional functionality.  Manual backports are for the daring and not for a production environment.

There are many different use conditions for Ubuntu, so you should plan carefully to determine what upgrade strategy to follow.  Do you want an appliance that will keep doing the same thing, year after year?  Is it your toolbox that needs to keep sharp?  It is a machine that lives on the internet and needs the latest security patches?  Is it on a closed network that is pretty safe from intrusion.  (Don’t forget flash drives, at my station we had a virus travel through several unconnected machines by the flashdrives in our “sneaker net”)

For anything you do with Rivendell, it is essential that you maintain a stable working environment.  Starting with a Ubuntu-Studio LTS distribution is an important place to start.  Locking down the upgrade process is one way to do that.  Opening it up only when prepared for a failure is a good strategy.  You really don’t want to have Rivendell go down without a plan to stay on the air.  Working out a plan to include security updates on a regular basis is also important.


Ubuntu-Studio vs DreamStudio

Update 2021

Dick MacInnes has let Dreamstudio drift into obsurity.  For a while he went from distro to package, but he has moved on to other things.  Thanks for Dreamstudio while it lasted.   At version 20.04, the decision is whether to use UbuntuStudio or Desktop Ubuntu with the UbuntuStudio Installer is one of whether you like the low overhead XFce desktop or the pretty Gnome 3.

Update 9/2019

It appears that Dick MacInnes did another pass on Dreamstudio in 2017 titled Volocian Dreamstudio based upon Ubuntu 17.04, and it has not been updated in two years.

update! 3/2016

DreamStudio is no longer a complete distro.  It is now a package of applications available for Windows, Mac and Ubuntu and KXStudio.

It was last updated several years ago and was available on Sourceforge.  Dick MacInnes has let his domain names Celeum.com and dreamstudio.com expire.  I hope Dick is doing ok, with his, and his wife’s health issues.

Ubuntu-Studio is a very cool Linux distribution for folks who want to do audio, video, graphics, animation or other media production using open source software.  It uses a very utilitarian XFCE user interface.  This has the advantage of simplicity and lightweight overhead on processor chips, leaving muscle for DSP processes.  Ubuntu-Studio is a derivative of Ubuntu, a distribution for regular computing based upon  Debian, but much more user friendly.  Ubuntu-Studio is dependent only upon software with the same open source licenses that are available to regular Ubuntu.  As a result there are a bunch of programs, many of which are free, but not sufficiently liberally licensed, that are not natively included in the distribution, such as an .mp3 codec.  Many of these can be easily added, but are not available in the distribution itself Ubuntu-Studio

Ubuntu-Studio has the advantage of a large user base. Its release schedule is synchronized with its bigger brother Ubuntu.

DreamStudio from Celeum Technologies is a gorgeous media suite also based on Ubuntu, but it uses regular Ubuntu’s Unity user interface, which diehard Ubuntu users complain about, but once you learn the basics is incredibly intuitive, helping to get work done.

Dreamstudio was a complete operating system distribution or “distro”.  which you would install on a blank machine or set up as a dual boot.  The last version was based upon ubuntu 12.04LTS, which is quite old.  The new version is a suite of programs that you overlay on a regular Ubuntu installation. This makes some sense, as the low latency kernel is now standard in Ubuntu 14.04 and later, so there is no need to dicker with replacing the kernel.

I have not tried the new suite yet, and will try this out when I have another machine to set up.  There are applications in the suite that can be complicated to set up properly, and I am sure that it will be a lot easier to get them all playing together using DreamStudio than trying to install them one by one.  I am not sure what happens when you install DreamStudio on UbuntuStudio instead of Regular Ubuntu.DreamStudio

Celeum Technologies is a tiny company in Saskatchewan, Canada run by musician/technical guru Dick MacInnes.  DreamStudio has no open source rules, as does Ubuntu Studio including best of the pack open source, commercial and free or limited license software where it makes for a better workstation.

DreamStudio is not updated as often as Ubuntu and is intended to be installed on  Ubuntu Long Term Support (LTS) releases.  Sometimes the releases are delayed a bit from the Ubuntu LTS release.  This is because DreamStudio is a labor of love for Dick, and he works on it among other demands on his time (performance, family, running a small business).  The craft he does during the long Saskatchewan winter nights may very well be worth it if you need the additional features and pretty interface.

The audio workstations in Ubuntu-Studio includes Audacity, a fine basic audio editor without the fine graphic control of levels in other editors, and ease of time dragging program elements.  Ardour, a full featured recording editor is also included.  Many people are afraid of Ardour because it won’t work until set up with jack2.  Fortunately, both  Ubuntu-Studio and DreamStudio have it already set up, so those headaches are gone.  It is still complex and powerful in the same class as Pro-Tools.

DreamStudio also comes with a demo version (upgradable to full version for $80) of Harrison MixBus 3 DAW that has full professional analog simulation with everything that a recording studio would want.  (You need a high quality multi-channel audio card to use it to full effect)  This is a SERIOUS audio editor which does not support compressed audio file formats, so have a big hard disk.  DreamStudio also comes with a host of professional video, animation, 2d and 3d graphics, film post edit, web design and other tools.  The list is amazing, and most are free, and the rest are affordably priced like MixBus 3 and Lightworks NLE award winning video editor.

If your plan is to do a Rivendell – Jack installation for a radio station and Ardour (or Audacity) is suitable for your needs, Ubuntu Studio is the obvious choice.  If you are doing a wide range of  multimedia creations, then DreamStudio is your dream.


Network Setup for Rivendell and NetJack

The physical connections between computers running Rivendell and/or NetJack should be done with a bit of thought.  There are some special considerations in any network that carries real time audio or files that must be served on an exact schedule.  This “real time” requirement is different than most computer needs where a document or web page can be served at some time in the future, as long as it is soon.   Audio streams and playout systems need their data NOW.

Rivendell requires Internet access for its rdcatch feature, as well as to access audio files, logs, ssh management, icecast servers. ftp servers and podcast servers, etc.  A Jack server should have access to the internet for the same reasons, plus network time, printers, sending email alerts, etc.  I will call this a connection to the “Office Network” since it includes mostly non-real time traffic.

The safest way (I have thought of) is to have the Rivendell Server(s) connect to two separate networks.  One network, the “Office Network” carries all the normal traffic, connection to the internet, uploading of logs, printing reports, VoIP, etc..  The other network I call the “Music Network” carries only NetJack zita-njbridge traffic, NFS traffic for audio files, and MySQL traffic and some network management traffic.  Rivendell also requires that the Ethernet addresses for these purposes are STATIC, meaning that they are maintained permanently and  setup manually.  The “Office Network” could be automatically assigned using DHCP, or can be STATIC, although there are good reasons that the server interface to the “Office Network” should be STATIC also.

Below is a graphic showing a possible configuration of a Rivendell – zita-njbridge system in  a small radio station, or station cluster.  It is not yet set up for redundancy to provide high reliability, but later additions will permit this:

Network Layout
Rivendell – zita-njbridge Music and Office Networks###

Please note that this network will not work as shown.  The office network switch would have to be a layer 3 switch or router with routing for internet addresses or the two DHCP lines to the Rivendell Workstations should not be connected.   Internet connectivity to the Rivendell workstations can be achieved using a Squid Proxy (pretty good) or Double NAT (not such a good idea)

The “Music Network” should use Gigabyte Ethernet interfaces on the computers and switch.  It should use Cat-5e or Cat-6 cables in a unique color to distinguish it from the office network.  If patch panels are used, they should be separate panels from the office network to avoid confusion.  As you can see, only the machines that have real time functions are connected to this net.  There could be a Network Attached Storage device on this network also, but it should not be used for backups, etc.; only for music and playout traffic should be on this network.

In this installation I have arbitrarily assigned the “Music Network” to a class C non-routable set of addresses:

Parameters -192.168.60.0  netmask 255.255.255.0  Gateway 192. 168.60.1 (The server) Broadcast 192.168.60.255.

This means that any device on the “Music Network” assigned an address beginning with 192.168.60. will be a member of this network.  It does not require a router, just a switch since the knowledge of the members of this network and the needed data routes will be known by each of the computers involved.  This network could possibly have 254 devices attached, but you would never want that many.

The “Office Network” is a conventional internet connected network configured to be efficient for its size.  It carries all the regular business and computer traffic of the operation, in addition to providing audio file upload services and possibly streaming sources for Internet Streaming. Conventional network design considerations are appropriate here.  A small station could possibly use the firewall – router provided by the Internet Service Provider (ISP), or another solution with more than one ISP and a load balancing router, a router using DD-Wrt or other open source router software, or Cisco or other “heavy iron” solution.

Not shown here, but for radio stations that need to deliver programming to remote transmitters, there may be a third ethernet interface on the Rivendell Server for an “STL Network” whose exclusive purpose is program delivery, transmitter control and communications to the station transmitters.  The traffic on this network should be separated from the other networks. This network will interconnect using dedicated microwave channels, landline T-1, and/or other methods of data transport  requiring well thought out routing protocols for high reliability.


Where to get Ubuntu Studio

Ubuntu Studio 14.04.x is a distribution of Ubuntu that is available for download as a .iso file, which is a DVD image file.  You need to download the torrent or .iso from the UbuntuStudio.org download page.  A .iso is directly downloaded using Firefox, Chrome or IE.  A torrent will download a lot faster but you have to install and run a torrent client like uTorrent.  You can get uTorrent for Windows here.  There are two versions of Ubuntu Studio, the “i386” 32 bit processor version which will probably work ok, but I don’t recommend it, but if you have a 64 bit machine you REALLY want to load the  “amd64” 64 bit version.  (Yes it works on Intel processors)

Ubuntu Studio 14.04.x (at this time x is 2) is a Long Term Support (LTS) version.  This means that this version will have security and bug fixes coming out for a few years, but no new bells and whistles.  You want to use a LTS version because a high priority in a radio automation system is STABILITY.  The other releases of Ubuntu Studio have new stuff added (and subtracted) with each version coming out every nine months or so.  The way that a system that “used to work” could change, no longer providing the same controls and the people who use it can be confused.  You don’t want your everyday tool to break.

Ubuntu Studio 14.04 is designed as a workstation for audio, video, presentations, graphics, etc.  It has the bare bones of what you need for audio, the special part is that it has properly installed ALSA and Jack and mostly configured them.

Because it has Xfce (a very lightweight Graphical Interface) it also is a very good candidate as a server.  Many people don’t want any graphical interface on a server, but some of the things that are needed for an audio server (Like Jack and KXStudio) run in graphical mode only, so Ubuntu Server is not a good candidate because you would have to install a GUI that needs a lot of setup, and Ubuntu Desktop has just too many pretty gizmos clogging things up to hammer out audio production and automation.

As a server, you will have some work to do – putting in a webserver, samba file sharing, routing, etc., but that has to be set up for your configuration no matter what.  The installation part is simple.

After you download or torrent the file to your computer, it needs to burned to a bootable DVD or a 4 Gig or larger Flash Drive.  For DVDs, Windows 7 has this ability built in to Explorer, and for Ubuntu the instructions are here.  For flash drives, you can’t just copy the file over, it needs to be written as a bootable image.  There are lots of free programs out there to burn iso files to flash drives, but Google searching will bring up many listings for the utility that can only write Windows 7 or Windows 8 iso files.  Avoid that utility.

Some motherboards will not boot from a flash drive, and you need to play with the bios to get a DVD or Flash Drive to boot when there is an old operating system on the hard drive.  You will be making the machine a  Ubuntu Studio ONLY machine.  No dual boots or Virtual machines for audio!  You want to lock this machine into one mode only so it will be reliable and simple. Yes you can play with a virtual machine, but it will never be a real “workstation”, as would be the case with regular Ubuntu.

When the DVD or Flash Drive boots, make sure you check the disk before installing.  That is one of the selections on the first menu.  It would be really a shame to spend an hour or so setting up a Ubuntu Studio system only to find that half the stuff doesn’t work.

You will need to babysit the installation for a few minutes.  The machine needs to be connected to the Internet and a DHCP server.  I don’t install the photo finishing, graphics and presentations application installation, and you could drop the video apps if you are sure you will not be needing them.  If you are not going to use my script, let the system update all the files on installation.  You can walk away for a cup of coffee after the initial entries quiet down, then check back later when it is installing MySql for passwords and stuff.  It will stop and wait for the password entry.  When it is done –

Take out the DVD or Flashdrive and reboot – voila!  A fresh Ubuntu Studio installation.