Install under Ubuntu (debrfa)
From Rivendell Wiki
Contents |
Summary:
These are directions to install a Rivendell broadcast automation system on to a current Ubuntu system. The packages are hosted on techweb.rfa.org in the "debrfa" repository ( http://techweb.rfa.org/debrfa/ ).
These directions are still a work in progress. They are being tested with: Ubuntu Gutsy 7.10 (ubuntu-7.10-desktop-i386.iso); Rivendell 0.9.84-2
OS installation:
The first step is to install a basic OS onto the workstation using the standard Ubuntu installer. This should be a single user, the same one which will run Rivendell.
Rivendell prep and optional utilities installation:
In order to install the Rivendell packages, the RFA repository must be added to the list of available package repositories.
Start the Synaptic package manager:
main menu bar at the top of the screen /
System / Administration / Synaptic Package Manager
Add the RFA repository to the list of package repositories
Synaptic menu / Settings / Repositories
select the "Third-Party Software" tab
click the "Add..." button to bring up a popup dialog
add the following entry in the popup dialog:
deb http://techweb.rfa.org/debrfa/ gutsy main
click the "Add source" button to commit the changes from the popup dialog
click the "Close" button in the Software Sources dialog
one may prompted to reload the repository information because it has changed.
click on the reload button from the toolbar just in case
(DECISION POINT) One must decide if Rivendell will be installed as a stand-alone system on the local machine, or if it will be installed as a client connecting to a central Rivendell database and audio store.
If Rivendell will be installed stand-alone, then the MySQL database software needs to be installed.
Alternatively, if Rivendell will be installed as a client connecting to a central server then an NFS mount pointing to the central server audio store should be defined in /etc/fstab .
If doing a stand-alone install:
startup Synaptic if it's not already running click on the Search toolbar button search for mysql-server the results including mysql-server should show up in the window list click on the mysql-server entry within the list select "mark for installation" click the Apply toolbar button for the new packages to be installed. NOTE: keep track of the mysql "root" password entered during this step for later use.
Alternatively, if doing a client install with central database and/or audio store
# edit /etc/fstab # add an entry like the one below to mount the NFS share of the central server audio store # (make sure to replace the server name and server shared directory) mordor.foo.org:/var/storage/snd /var/snd nfs soft,intr 0 0
Install Rivendell:
The next step is to install the Rivendell package itself.
startup Synaptic if it's not already running click on the Search toolbar button search for rivendell the results including rivendell should show up in the window list click on the rivendell entry within the list select "mark for installation" Note: a warning about "Not Authenticated" will come up. For now ignore it, we are working on correct that problem. click the Apply toolbar button for the new packages to be installed.
Some configuration questions will popup which may be answered as below:
Configure Rivendell and rd.conf through debconf?
-> yes
Remove Rivendell audio store and database if purging Rivendell?
-> no
How daemons are started
-> pam_rd (or use local policy)
Password for Rivendell:
-> (check with policy)
UNIX user account for Rivendell:
-> (check with policy)
UNIX group account for Rivendell:
-> rivendell
Select the samplerate to use for Rivendell:
-> 44100 (or use local policy)
Enter the hostname of the Rivendell MySQL server:
-> (check with policy)
Enter the MySQL account with which to connect to the MySQL server:
-> (check with policy)
Enter the MySQL account password to use when connecting to the MySQL server:
-> (check with policy)
Rivendell introduction.
-> Ok
At this point, use of Synaptic should be complete.
Configure realtime scheduling:
Enable realtime support in the OS via PAM (especially useful if using ALSA or JACK) by editing the /etc/security/limits.conf file.
press <alt><f2> # to bring up the start Run Application popup enter the command: gksudo gedit /etc/security/limits.conf copy and paste the following lines some place in the file (near the bottom) this will give users in the audio group the ability to run programs at a higher priority: # limit realtime and memory locking access to users in the group audio # there is no way to say "allow locking all memory", 4G should be enough * - rtprio 0 * - nice 0 @audio - rtprio 100 @audio - nice -10 @audio - memlock 4000000
Save the changes and exit gedit. Reboot the machine and log back in to the Ubuntu workstation for these changes to take effect.
Rivendell configuration via RDAdmin
Startup the Rivendell rdadmin utility:
Ubuntu Applications menu / Sound & Video / rdadmin
enter MySQL root user id and password first time
root / <password configured during mysql-server installation>
At this point the Rivendell database should be created.
enter rivendell admin user id and password
admin / <blank password by default>
click Manage Hosts
select host and click Edit
in rdlibrary, rdcatch, rdairplay, rdlogedit
set INPUTs/OUTPUT to Card 0 / Port 0
in backups
set backups to 7
set path to wherever the backups are to be located
Check /etc/hostname - you may need to have a fully qualified hostname (if you see grayed out buttons in RDAirplay for example)
ISSUES
- login password entered twice : There is something "hinky" with the pam scripts when using pam_rd that requires the password to be entered twice. This is not an issue in our debian stable environment and I've (grauf@rfa.org) not yet had time to explore this more under Ubuntu.
- jackd dependency : while I added jackd as a "recommended dependency" to the rivendell package, I'm not sure if it's getting installed automatically. A manual installation of jackd may currently be required.

