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
Next revision Both sides next revision
howto:linux:install:centos [2012/09/02 18:24]
rumbles
howto:linux:install:centos [2012/09/02 19:17]
will
Line 1: Line 1:
 Based on [[howto:linux:install:fedora|Fedora Installation Guide]] and help from will on the forums. Based on [[howto:linux:install:fedora|Fedora Installation Guide]] and help from will on the forums.
 +
 +This was tested on CentOS 6.3 (Final)
  
 ==== Prerequisites ==== ==== Prerequisites ====
   * Java<code>yum install java-1.6.0-openjdk</code>   * Java<code>yum install java-1.6.0-openjdk</code>
-  * 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> <code>wget http://download.serviio.org/releases/serviio-1.0-linux.tar.gz</code>
Line 126: Line 127:
 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. Rebuild ffmpeg ====
Line 136: Line 138:
 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 145: Line 147:
 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 155: Line 157:
 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
-git clone --depth 1 git://git.videolan.org/ffmpeg+wget http://download.serviio.org/opensource/ffmpeg-N-42368-gbf53863.tar.gz 
 +tar xvf ffmpeg-N-42368-gbf53863.tar.gz
 cd ffmpeg cd ffmpeg
 ./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libtheora \ ./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libtheora \
Line 166: Line 171:
 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>
  
-  * At this point it should be working, I have this tested on an X Box 360, if you have any troubles you may find my the forum post here useful [[http://forum.serviio.org/viewtopic.php?f=7&t=7277&start=0]]+  * At this point it should be working, I have this tested on an XBox 360, if you have any troubles you may find my the forum post here useful [[http://forum.serviio.org/viewtopic.php?f=7&t=7277&start=0]]
  
 ~~NOTOC~~ ~~NOTOC~~
howto/linux/install/centos.txt · Last modified: 2015/01/14 15:50 (external edit)