Personal tools

Difference between revisions of "Debian8"

From Rivendell Wiki

Jump to: navigation, search
(Added the steps for the compilation of the Qt3 MySQL driver since it needs to be installed for rdadmin to be able to create the database)
m
Line 1: Line 1:
This page will shortly list all you need to install Rivendell with the source code available on [http://rivendellaudio.org/rivendell/download.shtml this page]. It was tested with Debian 8.11 fresh install and rivendell-2.19.2.
+
This page will shortly list all the commands you need in order to install Rivendell, with its source code being available at [http://rivendellaudio.org/rivendell/download.shtml 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.
 
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 an configuration is not treated in this page.
+
Jackd install and [http://wiki.rivendellaudio.org/index.php/Configuring_Jack_for_use_in_Rivendell configuration] is not treated in this page.
  
 
=== First steps ===
 
=== First steps ===
Download an install Debian 8. I've used xfce cd iso and installed the minimal + xfce graphical environment.
+
Download and install Debian 8.11 . I've used [https://cdimage.debian.org/cdimage/archive/8.11.0/amd64/iso-cd/debian-8.11.0-amd64-xfce-CD-1.iso xfce cd iso] and installed the minimal + xfce graphical environment.
  
 
After the install, remove the line concerning the "CD" repository and update.
 
After the install, remove the line concerning the "CD" repository and update.
Line 39: Line 39:
 
Reboot
 
Reboot
 
  # reboot
 
  # reboot
or just log out an in..
+
or just log out and in..
  
 
=== Qt3 install ===
 
=== Qt3 install ===
Line 50: Line 50:
 
  $ ./configure
 
  $ ./configure
 
At this point a few code lines have to be hacked.
 
At this point a few code lines have to be hacked.
  $ vi include/qmap.h include/qvaluelist.h
+
  $ vi include/qmap.h  
add near line 55 : #include <stddef.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
 
  $ vi src/sql/drivers/mysql/qsql_mysql.h
 
modify line 53 : #include <mysql/mysql.h>
 
modify line 53 : #include <mysql/mysql.h>
 
  $ make
 
  $ make
=== Building the QT MySQL driver ===
+
==== Building the QT MySQL driver ====
 
  $ cd /usr/local/qt3/plugins/src/sqldrivers/mysql
 
  $ cd /usr/local/qt3/plugins/src/sqldrivers/mysql
 
  $ make
 
  $ make

Revision as of 23:49, 14 September 2018

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
> PATH=$QTDIR/bin:$PATH
> MANPATH=$QTDIR/doc/man:$MANPATH
> LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
> export QTDIR PATH MANPATH LD_LIBRARY_PATH
> ' >> ~/.bash_aliases

Reboot

# reboot

or just log out and in..

Qt3 install

$ wget https://download.qt.io/archive/qt/3/qt-x11-free-3.3.8b.tar.gz
$ 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

compile

$ cd
$ wget http://rivendellaudio.org/ftpdocs/rivendell/rivendell-2.19.2.tar.gz

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
:%s/alsasound/alsa-utils/g
:%s/mariadb/mysql/g
:wq
# 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