Personal tools

Difference between revisions of "Debian9"

From Rivendell Wiki

Jump to: navigation, search
(create db + grant privileges to user)
(rc03 + launching rivendell service + a few details)
Line 1: Line 1:
Very synthetic howto install rd3 on Debian9 (Stretch) :
+
Synthetic howto install rd3 on Debian9 (Stretch) :
  
 
== get rivendell sources ==
 
== get rivendell sources ==
  wget https://github.com/ElvishArtisan/rivendell/releases/download/v3.0.0beta00/rivendell-3.0.0beta00.tar.gz
+
  wget https://github.com/ElvishArtisan/rivendell/releases/download/v3.0.0rc02/rivendell-3.0.0rc02.tar.gz
  tar xf rivendell-3.0.0beta00.tar.gz
+
  tar xf rivendell-3.0.0rc02.tar.gz
  cd rivendell-3.0.0beta00/
+
  cd rivendell-3.0.0rc02
  
or from git sources
+
or from git sources, with master branch for example :
 
  sudo apt install git
 
  sudo apt install git
 
  git clone -b master https://github.com/ElvishArtisan/rivendell.git
 
  git clone -b master https://github.com/ElvishArtisan/rivendell.git
Line 17: Line 17:
 
  sudo 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
 
  sudo 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
 
  sudo apt install libqt4-dev libexpat1-dev libtag1-dev
 
  sudo apt install libqt4-dev libexpat1-dev libtag1-dev
 +
export PATH=/sbin:$PATH (since runuser is required)
 
  ./configure --libexecdir=/var/www/rd-bin --sysconfdir=/etc/apache2/conf-available
 
  ./configure --libexecdir=/var/www/rd-bin --sysconfdir=/etc/apache2/conf-available
 
  sudo apt install docbook-xsl fop xsltproc
 
  sudo apt install docbook-xsl fop xsltproc
Line 25: Line 26:
 
  ./configure --libexecdir=/var/www/rd-bin --sysconfdir=/etc/apache2/conf-available --disable-docbook
 
  ./configure --libexecdir=/var/www/rd-bin --sysconfdir=/etc/apache2/conf-available --disable-docbook
 
  make
 
  make
 
since 3.0.0rc00, before the ./configure, because runuser is in /sbin :
 
export PATH=/sbin:$PATH
 
  
 
during this time...
 
during this time...
Line 34: Line 32:
 
  sudo apt install apache2
 
  sudo apt install apache2
 
  sudo a2enmod cgid
 
  sudo a2enmod cgid
  sudo systemctl restart apache2
+
  systemctl restart apache2
  
 
== prepare mysql server ==
 
== prepare mysql server ==
 
  sudo apt install mysql-server
 
  sudo apt install mysql-server
 +
sudo mysql
 +
> create database Rivendell;
 +
> grant Select, Insert, Update, Delete, Create, Drop, References, Index, Alter, Create Temporary Tables, Lock Tables on Rivendell.* to rduser@'%' identified by 'letmein';
 +
> \q
 +
This may not be required, but I previously had to use it :
 
  sudo mysql_secure_installation  
 
  sudo mysql_secure_installation  
 
  sudo mysql -uroot
 
  sudo mysql -uroot
Line 44: Line 47:
 
  > \q
 
  > \q
 
arf ! it is "plugin=quote+empty_string+quote" but mediawiki can't let me write it..
 
arf ! it is "plugin=quote+empty_string+quote" but mediawiki can't let me write it..
  mysql -uroot -p
+
 
  > create database Rivendell;
+
== prepare os ==
  > grant Select, Insert, Update, Delete, Create, Drop, References, Index, Create Temporary Tables, Lock Tables on Rivendell.* to rduser@'%' identified by 'letmein';
+
  sudo adduser --system --group --home=/var/snd rivendell
> \q
+
  sudo adduser bob rivendell
ok, let's rock !
+
  sudo chmod g+w /var/snd
 +
 
 +
ok, let's continue when the "make" made its job..
  
 
== install rivendell ==
 
== install rivendell ==
Line 54: Line 59:
 
  sudo ldconfig (or you'll get an error message about librd-3.0.0beta00.so)
 
  sudo ldconfig (or you'll get an error message about librd-3.0.0beta00.so)
 
  sudo cp conf/rd.conf-sample /etc/rd.conf
 
  sudo cp conf/rd.conf-sample /etc/rd.conf
sudo adduser --system --group --home=/var/snd rivendell
 
sudo adduser bob rivendell
 
sudo chmod g+w /var/snd
 
 
  sudo a2enconf rd-bin
 
  sudo a2enconf rd-bin
  sudo systemctl reload apache2
+
  systemctl reload apache2
  sudo rddbconfig
+
  sudo rddbmgr --create --generate-audio
 
  sudo rdalsaconfig
 
  sudo rdalsaconfig
 
  rdadmin
 
  rdadmin
 +
systemctl start rivendell
 +
rdairplay \o/
 +
And if you rivendell to run at boot :
 +
systemctl enable rivendell

Revision as of 08:50, 4 May 2019

Synthetic howto install rd3 on Debian9 (Stretch) :

get rivendell sources

wget https://github.com/ElvishArtisan/rivendell/releases/download/v3.0.0rc02/rivendell-3.0.0rc02.tar.gz
tar xf rivendell-3.0.0rc02.tar.gz
cd rivendell-3.0.0rc02

or from git sources, with master branch for example :

sudo apt install git
git clone -b master https://github.com/ElvishArtisan/rivendell.git
cd rivendell
sudo apt install libtool m4
./autogen.sh

compile rivendell

sudo apt install make gcc g++
sudo 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
sudo apt install libqt4-dev libexpat1-dev libtag1-dev
export PATH=/sbin:$PATH (since runuser is required)
./configure --libexecdir=/var/www/rd-bin --sysconfdir=/etc/apache2/conf-available
sudo apt install docbook-xsl fop xsltproc
export DOCBOOK_STYLESHEETS=/usr/share/xml/docbook/stylesheet/docbook-xsl
make

or if you don't want to compile the docs :

./configure --libexecdir=/var/www/rd-bin --sysconfdir=/etc/apache2/conf-available --disable-docbook
make

during this time...

prepare web server

sudo apt install apache2
sudo a2enmod cgid
systemctl restart apache2

prepare mysql server

sudo apt install mysql-server
sudo mysql
> create database Rivendell;
> grant Select, Insert, Update, Delete, Create, Drop, References, Index, Alter, Create Temporary Tables, Lock Tables on Rivendell.* to rduser@'%' identified by 'letmein';
> \q

This may not be required, but I previously had to use it :

sudo mysql_secure_installation 
sudo mysql -uroot
> update mysql.user set plugin= where user='root';
> flush privileges;
> \q

arf ! it is "plugin=quote+empty_string+quote" but mediawiki can't let me write it..

prepare os

sudo adduser --system --group --home=/var/snd rivendell
sudo adduser bob rivendell
sudo chmod g+w /var/snd

ok, let's continue when the "make" made its job..

install rivendell

sudo make install
sudo ldconfig (or you'll get an error message about librd-3.0.0beta00.so)
sudo cp conf/rd.conf-sample /etc/rd.conf
sudo a2enconf rd-bin
systemctl reload apache2
sudo rddbmgr --create --generate-audio
sudo rdalsaconfig
rdadmin
systemctl start rivendell
rdairplay \o/

And if you rivendell to run at boot :

systemctl enable rivendell