Personal tools


From Rivendell Wiki

Revision as of 23:49, 14 September 2018 by Alec423 (Talk | contribs)

Jump to: navigation, search

This page will shortly list all the commands you need in order to install Rivendell, with its source code being available at this page. It was tested with Debian 8.11 fresh install and rivendell-2.19.2.

Lines beginning with # are root instructions (and may be executed with sudo), the ones beginning with $ are user instructions, the ones beginning with > are just waiting for some more instructions, the ones beginning with : are vi instructions. vi is my common editor, use your preferred one. bob will be the user, replace with your own user login.

Jackd install and configuration is not treated in this page.

First steps

Download and install Debian 8.11 . I've used xfce cd iso and installed the minimal + xfce graphical environment.

After the install, remove the line concerning the "CD" repository and update.

# vi /etc/apt/sources.list
# apt update
# apt upgrade

Web and Database Servers install

# apt install apache2
# apt install mysql-server

Please remember the db password you choose for root when installing MySQL !

Compilation tools and other preparations

Compilation tools

# apt install make gcc g++

My user must be able to write in /usr/local (for Qt3 compilation)

# ls -d /usr/local
# adduser bob staff

I already care of rivendell user

# adduser --system --group --home=/var/snd rivendell
# chmod g+w /var/snd
# adduser bob rivendell 
# chmod ug+s /var/snd (not sure the last instruction is really required..)

Configure Qt3 environment variables

$ echo '# Qt3 env variables
> QTDIR=/usr/local/qt3
> ' >> ~/.bash_aliases


# reboot

or just log out and in..

Qt3 install

$ wget
$ cd /usr/local
$ tar xf ~/qt-x11-free-3.3.8b.tar.gz
$ ln -s qt-x11-free-3.3.8b/ qt3
$ cd qt3
# apt install libx11-dev libxext-dev libxt-dev libmysqlclient-dev
$ ./configure

At this point a few code lines have to be hacked.

$ vi include/qmap.h 

add just below line 55 : #include <stddef.h>

$ vi include/qvaluelist.h

add just below line 53 : #include <stddef.h>

$ vi src/sql/drivers/mysql/qsql_mysql.h

modify line 53 : #include <mysql/mysql.h>

$ make

Building the QT MySQL driver

$ cd /usr/local/qt3/plugins/src/sqldrivers/mysql
$ make
# make install

Rivendell install


$ cd
$ wget

or maybe a more recent version..

$ tar xf rivendell-2.19.2.tar.gz
$ cd rivendell-2.19.2/
# apt install libssh-dev libsamplerate0-dev libsndfile1-dev \
> libcdparanoia-dev libid3-3.8.3-dev libcurl4-openssl-dev \
> libpam0g-dev libsoundtouch-dev libasound2-dev libflac++-dev \
> libmp4v2-dev libmad0-dev libtwolame-dev libmp3lame-dev libfaad-dev
$ ./configure --libexecdir=/var/www/rd-bin --sysconfdir=/etc/apache2/conf-available
$ make

install and configure

# cd /home/leon/rivendell-2.19.2/
# make install
# cp conf/rd.conf-sample /etc/rd.conf
# vi /etc/rd.conf
# a2enconf rd-bin && a2enmod cgid && service apache2 restart
# vi /etc/init.d/rivendell
# update-rc.d rivendell defaults
# update-rc.d rdrepld defaults

Now you can launch rdadmin to create Rivendell database.

$ rdadmin

You're first asked for the db admin authentication : root is the Debian MySQL user and the password is the one you choose when installing the server. Rivendell DB and its tables are created, and a sound test file is created in /var/snd.

You also need to add yous sound card(s)

# rdalsaconfig