User Tools

Site Tools


howto:linux:install:centos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:linux:install:centos [2012/09/02 18:44]
rumbles [9. Rebuild ffmpeg] typo
howto:linux:install:centos [2015/01/14 15:50] (current)
Line 4: Line 4:
  
 ==== Prerequisites ==== ==== Prerequisites ====
-  * Java<code>yum install java-1.6.0-openjdk</code> +  * Java<code>yum install java-1.6.0-openjdk</code> FIXME update for Java 8
-  * Ffmpeg<code>yum install ffmpeg</code>+
 ==== 1.Download Serviio ==== ==== 1.Download Serviio ====
-<code>wget http://download.serviio.org/releases/serviio-1.0-linux.tar.gz</code>+Always check http://www.serviio.org/download for the latest version first. 
 +<code>wget http://download.serviio.org/releases/serviio-1.1-linux.tar.gz</code>
 ==== 2.Extract Serviio ==== ==== 2.Extract Serviio ====
-<code>tar -C /opt -zxvf serviio-1.0-linux.tar.gz +<code>tar -C /opt -zxvf serviio-1.1-linux.tar.gz 
-mv /opt/serviio-1./opt/serviio</code>+mv /opt/serviio-1./opt/serviio</code>
 ==== 3.Create Serviio's user ==== ==== 3.Create Serviio's user ====
 <code>useradd -d /opt/serviio -r serviio <code>useradd -d /opt/serviio -r serviio
Line 128: Line 128:
 iptables -A INPUT -p tcp --dport 8895 -j ACCEPT -m comment --comment "Serviio" iptables -A INPUT -p tcp --dport 8895 -j ACCEPT -m comment --comment "Serviio"
 iptables -A INPUT -p tcp --dport 23423 -j ACCEPT -m comment --comment "Serviio" iptables -A INPUT -p tcp --dport 23423 -j ACCEPT -m comment --comment "Serviio"
 +iptables -A INPUT -p tcp --dport 23424 -j ACCEPT -m comment --comment "Serviio"
 </code> </code>
-==== 9. Rebuild ffmpeg ====+ 
 +==== 9. Build ffmpeg ==== 
 + 
 +As of Serviio v1.0, you need ffmpeg v0.11 or greater so in most cases you will need to build ffmpeg from source, rather than use the version from yum.
  
 As per [[:build_ffmpeg_linux|Building FFmpeg on Linux]] but edited slightly for CentOS: As per [[:build_ffmpeg_linux|Building FFmpeg on Linux]] but edited slightly for CentOS:
  
-  * Remove packages, adand install essential build packages for later<code>yum remove x264 ffmpeg -y+  * Remove existing packages, and install essential build packages for later<code>yum remove x264 ffmpeg -y
 yum install git libfaac-devel libmp3lame-devel libtheora-devel \ yum install git libfaac-devel libmp3lame-devel libtheora-devel \
 libva-devel libvdpau-devel libvorbis-devel libX11-devel libXfixes-devel texi2html yasm \ libva-devel libvdpau-devel libvorbis-devel libX11-devel libXfixes-devel texi2html yasm \
 libxvidcore-devel  libXext-devel libXfixes-devel librtmp-devel -y</code> libxvidcore-devel  libXext-devel libXfixes-devel librtmp-devel -y</code>
        
-  * x264<code>cd ~+  * x264 (optional)<code>cd ~
 mkdir src mkdir src
 cd src cd src
Line 147: Line 151:
 make install</code> make install</code>
  
-  * Libvpx<code>cd ~/src+  * Libvpx (optional)<code>cd ~/src
 git clone http://git.chromium.org/webm/libvpx.git git clone http://git.chromium.org/webm/libvpx.git
 cd libvpx cd libvpx
Line 157: Line 161:
 cd rtmpdump cd rtmpdump
 make SYS=posix</code> make SYS=posix</code>
 +
 +Some of the above libraries are optional, if you don't build them, remember to remove the equivilant --enable-libXXX from ./configure below.
  
   * ffmpeg<code>cd ~/src   * ffmpeg<code>cd ~/src
Line 169: Line 175:
 make install</code> make install</code>
  
-  * Add the ffmpeg location to /opt/serviio/bin/serviio.sh by updating the following line with the -Dffmpeg.location value as shown:+  * Add the ffmpeg location to /opt/serviio/bin/serviio.sh by updating the following line with the -Dffmpeg.location e.g.:
 <code># Setup Serviio specific properties <code># Setup Serviio specific properties
 JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=/usr/local/bin/ffmpeg"</code> JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=/usr/local/bin/ffmpeg"</code>
howto/linux/install/centos.1346611485.txt.gz · Last modified: 2012/09/02 18:44 by rumbles