Personal tools

Difference between revisions of "Debian8"

From Rivendell Wiki

Jump to: navigation, search
m (Building the QT MySQL driver)
m (Point to Debian10 article.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
+
'''NOTICE''': This article is out of date. Consider using a more current version of [https://debian.org Debian] Linux and use the [[Debian10]] article for current (as of Mid 2020) instructions.
 +
<hr />
 +
 
 +
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.3.
  
 
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.
Line 69: Line 72:
 
==== compile ====
 
==== compile ====
 
  $ cd
 
  $ cd
  $ wget http://rivendellaudio.org/ftpdocs/rivendell/rivendell-2.19.2.tar.gz
+
  $ wget http://rivendellaudio.org/ftpdocs/rivendell/rivendell-2.19.3.tar.gz
 
or maybe a more recent version..
 
or maybe a more recent version..
  $ tar xf rivendell-2.19.2.tar.gz
+
  $ tar xf rivendell-2.19.3.tar.gz
  $ cd rivendell-2.19.2/
+
  $ cd rivendell-2.19.3/
 
  # apt install libssh-dev libsamplerate0-dev libsndfile1-dev \
 
  # apt install libssh-dev libsamplerate0-dev libsndfile1-dev \
 
  > libcdparanoia-dev libid3-3.8.3-dev libcurl4-openssl-dev \
 
  > libcdparanoia-dev libid3-3.8.3-dev libcurl4-openssl-dev \
Line 81: Line 84:
  
 
==== install and configure ====
 
==== install and configure ====
  # cd /home/leon/rivendell-2.19.2/
+
  # cd /home/bob/rivendell-2.19.3/
 
  # make install
 
  # make install
 
  # cp conf/rd.conf-sample /etc/rd.conf
 
  # cp conf/rd.conf-sample /etc/rd.conf

Latest revision as of 15:23, 16 September 2020

NOTICE: This article is out of date. Consider using a more current version of Debian Linux and use the Debian10 article for current (as of Mid 2020) instructions.


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.3.

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 -ld /usr/local

It is owned by 'staff' group, so :

# 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 ./plugins/src/sqldrivers/mysql
$ make
$ cd ../../../../

finish qt3 install

# make install

Rivendell install

compile

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

or maybe a more recent version..

$ tar xf rivendell-2.19.3.tar.gz
$ cd rivendell-2.19.3/
# 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/bob/rivendell-2.19.3/
# 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